MmgTools / mmg

open source software for bidimensional and tridimensional remeshing
http://www.mmgtools.org
Other
369 stars 118 forks source link

Fix bug ci test 12 in ParMmg + improve consistencies of functions #226

Closed laetitia-m closed 1 year ago

laetitia-m commented 1 year ago

This PR fixes a bug in the ci test 12 in ParMmg when compile without SCOTCH library (Point 1). This PR also fixes some minor typos/style inconsistencies (Points 2-5) and factorizes some part of the code (Point 6).

In src/mmg3d/split_3d.c:

  1. Move MMG3D_split*_cfg function before creation of new tetra MMG3D_crea_NewTetra. This fixes the bug in ci test 12 of ParMmg.
  2. Rename MMG3D_configSplit5 by MMG3D_split5_cfg for name consistency with the other MMG3D_split*_cfg functions.
  3. Remove return; at the end of function MMG3D_split1_cfg, MMG3D_split3op_cfg and MMG3D_update_qual as they are defined as void and the return; is at the end of the function and does nothing (and for consistency with the other MMG3D_split*_cfg functions).
  4. Initialized taued as NULL in all functions.
  5. Improve some comments.
  6. In MMG3D_split3cone_sim uses now directly the function MMG3D_split3cone_cfg.
Algiane commented 1 year ago

Thanks!