Trying to fix bug with MPI communication

This commit is contained in:
Mark Berrill
2020-03-12 10:26:17 -04:00
parent 57156d16fc
commit 94156e066e
21 changed files with 777 additions and 795 deletions

View File

@@ -205,7 +205,7 @@ void ScaLBL_DFHModel::Create(){
if (rank==0) printf ("Set up memory efficient layout, %i | %i | %i \n", Np, Npad, N);
Map.resize(Nx,Ny,Nz); Map.fill(-2);
auto neighborList= new int[18*Npad];
Np = ScaLBL_Comm->MemoryOptimizedLayoutAA(Map,neighborList,Mask->id,Np);
Np = ScaLBL_Comm->MemoryOptimizedLayoutAA(Map,neighborList,Mask->id.data(),Np);
comm.barrier();
//...........................................................................