Hello everyone,
I have been using MMG3D to remesh accurately 3D geometries generated with NetGen.
The tool appeared to work just fine on my MacBook for small test meshes, until I encountered a Segmentation error for larger meshes. I intuited that this came from memory management and a lack of space on my laptop, since moving to a larger computer at my lab solved the issue. That way I could generate meshes typically up to 60M cells. Now the problem is I need to refine even more (so a factor of 8 is to be expected, and another 8 later because this is not even the whole geometry…) and the famous Segmentation error occured again. I tried to launch MMG on a supercomputer on a preprocessor partition which has very large memory capacity, typically up to 3 To per node. This is coherent with what MMG tells me (1523001 Mb “detected”) :
– INPUT DATA
%% /gpfsscratch/rech/fls/uxp62jq/PAM/MESH_S30_1_cropped/3d_fluid.msh OPENED
MAXIMUM MEMORY AUTHORIZED (MB) 1523001
MMG3D_NPMAX 9032172
MMG3D_NTMAX 2000000
MMG3D_NEMAX 60269955
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
BAD ORIENTATION : vol < 0 -- 40179970 element(s) reoriented
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
NUMBER OF VERTICES 6021448
NUMBER OF TETRAHEDRA 40179970
NUMBER OF TRIANGLES 925928
– DATA READING COMPLETED. 45.264s
[note] : The bad orientation error does not seem to be problematic and just comes from NetGen’s inability to write GMSH2 files with the correct format for MMG. I do not believe this is the origin or the problem, but who knows…
The interesting feature I have seen is on my lab’s computer, the MMG3D_NEMAX is actually larger even though the detected memory is much lower (typically 96000Mb). Thereby, I do not see any correlation between the machine I use, thus its capacity, and my possibility to process larger meshes. The command -m does not really help. To what I have tried, all it does is increase or decrease a bit the MMG3D_NEMAX but up to some point the number put in -m does not really matter and the MMG3D_NEMAX converges towards a maximum value, which changes between my lab’s computers and the supercomputer ! This is so freaking weird !
Can anyone help me around this issue ? Is MMG limited intrinsically in terms of mesh size ? If so, what are my alternative possibilities ?
Let me thank you in advance for you kind help,
PA M