7 #include "WorkDistrib.decl.h"
17 #define MIN_DEBUG_LEVEL 4
26 for (
int i=0; i<2; i++) {
42 for (
int i=0; i<2; i++) {
59 for (
int i=0; i<2; i++) {
78 int myNode = CkMyPe();
121 for (
int i=0; i<2; i++) {
126 #if NAMD_SeparateWaters != 0
127 numWaterAtoms[i] =
patch[i]->getNumWaterAtoms();
139 CkPrintf(
"ComputePatchPair::doForce() - Dummy eval was sent\n");
140 CkPrintf(
" %d patch 1 atoms and %d patch 2 atoms\n",
numAtoms[0],
numAtoms[1] );
149 #if !defined(NAMD_CUDA) && !defined(NAMD_HIP)
155 for (
int i=0; i<2; i++) {
164 #if !defined(NAMD_CUDA) && !defined(NAMD_HIP)
175 for (
int i=0; i<2; i++) {
void setNumPatches(int n)
#define COMPUTE_PROXY_PRIORITY
#define GB1_COMPUTE_HOME_PRIORITY
#define GB2_COMPUTE_PROXY_PRIORITY
Box< Patch, CompAtom > * positionBox[2]
static PatchMap * Object()
void unregisterForceDeposit(Compute *cid, Box< Patch, Results > **const box)
void startWork(const LDObjHandle &handle)
virtual void initialize()
Patch * patch(PatchID pid)
void pauseWork(const LDObjHandle &handle)
Box< Patch, Results > * forceBox[2]
#define COMPUTE_HOME_PRIORITY
virtual void initialize()
virtual ~ComputePatchPair()
virtual void atomUpdate()
static LdbCoordinator * Object()
void unregisterPositionPickup(Compute *cid, Box< Patch, CompAtom > **const box)
void endWork(const LDObjHandle &handle)
#define GB1_COMPUTE_PROXY_PRIORITY
#define GB2_COMPUTE_HOME_PRIORITY
virtual void doForce(CompAtom *p[2], CompAtomExt *pExt[2], Results *r[2])
ComputePatchPair(ComputeID c, PatchID pid[], int t[])
void close(Data **const t)
Box< Patch, CompAtom > * registerPositionPickup(Compute *cid)
#define PATCH_PRIORITY(PID)
CompAtomExt * getCompAtomExtInfo()
Box< Patch, Results > * registerForceDeposit(Compute *cid)