MmgTools / ParMmg

Distributed parallelization of 3D volume mesh adaptation
Other
34 stars 19 forks source link

A point shared by at least 2 groups has 2 positions in the internal communicator #120

Closed Algiane closed 2 months ago

Algiane commented 2 months ago

Issue description

When build in debug mode, ParMmg fails with the following error message:

## Error: PMMG_check_intNodeComm: rank <n>:
       A point shared by at least 2 groups has 2 positions  (<k1> and <k2>) in the internal communicator (dist = <dist>):
  ...

Steps to reproduce the issue

Investigation

The error is linked to inconsistencies when sorting the coor_list array that contains the list of the coordinates of the points stored in the internal communicators and when travelling this sorted array to remove the duplicated points (https://github.com/MmgTools/ParMmg/blob/beb4147b7b29a2891e1a55745ff95863e93bcc0d/src/communicators_pmmg.c#L1788-L1811):