Mmg3d with strong anisotropic mesh

Hi

I don’t know what to do…mmg3d crashes when performing anisotropic adaptation to a solution (exported using freefem)

The geometry is about 2 walls with layers and 1 slab, that’s whay some layers are thin. Here the zip file which contains the mesh file, the metric and solution scalar field, and also the freefem script in case of.

mmd3d.exe temp.mesh -sol metric.sol -hgrad 3

– PHASE 2 : ANISOTROPIC MESHING
Assertion failed: MG_GET(pxt1->ori,voyq ), file C:/builds/workspace/deployEXE/3rdparty/ff-petsc/petsc-3.15.0/fr/externalpackages/git.mmg/src/mmg3d/colver_3d.c, line 1131
Unexpected error: *** potential lack of memory.

-sol needs the metric (metric.sol, generated with mshmet) or the solution (in my case solution.sol contains the temperature) ?

Thank you for helping.

adapt3d.zip (184.2 KB)

Hello,
The usage is right (only the metric needs to be passed) and I can reproduce the problem also on a Mac system, we are looking at why it happens.

Are you using a debug version of Mmg on purpose? Your test is failing in a check that is present only in the debug version, while it seems to work fine in the optimized one (we are also checking if this behaviour is correct).

Yours,
Luca

Hello Luca, thanks for answering. I use the official binaries 5.5.2 from the website…
image

Hello,
Thanks! I don’t get the failed assertion with the binaries downloaded from github…
Anyway this failed assertion shows an error, we are testing a fix for it right now.
We will come back to you shortly.

Yours,
Luca