Skip to content

WIP [bugfix] duplicate the communicator in the generator - barrier still failing

Andreas Dedner requested to merge bugfix/failingGeneratorBarrier into master

tried if duplicating the communicator in cmakegenerator fixes a synchronization problem. Added some debug output to show the issue with the following test script:

from dune.grid import structuredGrid
gridView = structuredGrid([0,0],[1,1],[10,10])

Run with mpirun -np 2 given the following output:

Rank 0
2021-12-05 11:13:03,694 - dune.generator.cmakebuilder - INFO - Generating HierarchicalGrid
hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a pre barrier 0
hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a post barrier 0
add reference element 0
referenceElement module
referenceelements_de274310a0055100b832a0e8892b0258 pre barrier 0
referenceelements_de274310a0055100b832a0e8892b0258 post barrier 0
add reference element 1
referenceElement module
referenceelements_0fff57b283123cc055345ec95574c857 pre barrier 0
referenceelements_0fff57b283123cc055345ec95574c857 post barrier 0
add reference element 2
referenceElement module
[Detaching after fork from child process 432150]
referenceelements_f4457f35395151d83a965d4cf5fce70d pre barrier 0
referenceelements_f4457f35395151d83a965d4cf5fce70d post barrier 0

Rank 1
hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a pre barrier 1
hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a post barrier 1
add reference element 0
referenceElement module
referenceelements_de274310a0055100b832a0e8892b0258 pre barrier 1
referenceelements_de274310a0055100b832a0e8892b0258 post barrier 1
add reference element 1
referenceElement module
referenceelements_0fff57b283123cc055345ec95574c857 pre barrier 1

Merge request reports

Loading