Open ztdepztdep opened 4 weeks ago
I think the data buffer in MPI Bcast should be equal size in all processors. And v is better to be a temporal vector with a copy of data you want to bcast, other than the data reference from MFI. Therefore, the following resize is not proper. if (ParallelDescriptor::MyProc() != root) v.resize(1); ParallelDescriptor::Bcast(v.data(), v.size(), root);
I have the following function in my LBM_FVM class, which is supposed to get data from a specific cell (i, j) across different refinement levels. I want it to get data from the fineset level first. but it sometimes give a "zero" value, i am not sure what had happed.