diff --git a/common/Domain.cpp b/common/Domain.cpp index ee338d92..1ad99a55 100644 --- a/common/Domain.cpp +++ b/common/Domain.cpp @@ -495,7 +495,8 @@ void Domain::CommInit() recvData_YZ = new double [recvCount_YZ]; recvData_XZ = new double [recvCount_XZ]; //...................................................................................... - + // Guarantee consistency of ID labels in halo + CommHaloIDs(); } void Domain::ReadIDs(){ @@ -659,6 +660,158 @@ void Domain::CommunicateMeshHalo(DoubleArray &Mesh) UnpackMeshData(recvList_YZ, recvCount_YZ ,recvData_YZ, MeshData); } +void Domain::PackID(int *list, int count, char *sendbuf, char *ID){ + // Fill in the phase ID values from neighboring processors + // This packs up the values that need to be sent from one processor to another + int idx,n; + + for (idx=0; idx class PatchData { @@ -229,6 +233,7 @@ private: const Patch *d_patch; TYPE *d_data; TYPE *d_gcw; + }; void WriteCheckpoint(const char *FILENAME, const double *cDen, const double *cfq, int Np);