Closed JacobLotz closed 5 months ago
@chldkdtn This is still causing serious issues. I can run a code similar to the above serial, but it returns the given error when running parallel. Do you perhaps have an idea who I can ask for insights into this matter? Kind regards, Jacob
Description I am creating a sample mesh using
SampleMeshManager
.I have sampled MFEM FiniteElementSpaces using the DEIM algorithm associated with 3 variables. This gives me an array of std::vectors containing the sampled dofs per variable in
sample_dofs
and a similar array of the number of sample dofs per process per variable innum_sample_dofs_per_proc
. Furthermore, I have an std::vector containingMFEM::ParFiniteElementSpace
instdfomfes
.I use the following code:
Error Uppon calling
smm->ConstructSampleMesh()
I get the following error inFinish_s2sp_augmented
:I have tried It fails as
s2sp_[i] = -1
. The error is not very descriptive, but I think it has to do with the sampled dof numbers in the DEIM algorithm.It only fails if I add the third variable, if I only register the first two variables it works fine.
Also, strangely it works if I only register the third variable and construct the
SampleMeshManager
with one FiniteElementSpace.I have also manually modified the number of the sampled variable by adding 1 and subtracting one and then it works..
Question What is going on here? What does it mean if
s2sp_[i] = -1
? How can I fix this?