andrico pushed a change to branch partitions_initiation. from 8bd82f1 thread based partitioning: - flag in mesh region needs to atomic, not distributed, not to depend on the thread policy used - initializing threads to 1, to be able to expand it to the desired number (setting them to any large number prevents later setting to 1, as shrinking partitions is not possible) new 467ae55 1) partitioning can be changed only once; 2) flag in the region should be atomic; 3) starting from one thread, if more desired, this should be specified
Summary of changes: src/getfem_mesh_region.cc | 6 +++--- src/getfem_omp.cc | 13 ++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-)