code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
215 stars 80 forks source link

Bug with the Lagrangian module and restart on a different Mesh - CS 7.2-alpha revision fb85c8cdc #94

Open YohannEude opened 2 years ago

YohannEude commented 2 years ago

Hello,

I have a problem when I try to do a restart with the Lagrangian module (and Vof) with a different mesh. I am using CS 7.2-alpha revision fb85c8cdc. With the VoF module only, the restart on a different mesh works properly but when I add the Lagrangian module CS crashes. During my tests, I tried to do a restart (iso mesh) by specifying a "different mesh" in the GUI while I keep the same mesh in MESH and I get the same bug:

** Information on the lagrangian computation

Read restart file for particle values
  Start read

/home/yohann-ws2/Development/CS_MASTER/code_saturne/src/lagr/cs_lagr_restart.c:466: Fatal error.

Error reading main particle restart data.

Call stack: 1: 0x7fdfff83359d <cs_lagr_restart_read_particle_data+0x63d> (libsaturne-7.2.so) 2: 0x7fdfff88304a <cs_lagr_restart_read_p+0x3aa> (libsaturne-7.2.so) 3: 0x7fdfff81f68d <cs_lagr_solveinitialize+0x23d> (libsaturne-7.2.so) 4: 0x7fdffef2ff20 <caltri+0x14c5> (libsaturne-7.2.so) 5: 0x7fdfffff2b81 <main+0x721> (libcs_solver-7.2.so) 6: 0x7fdffeb450b3 <__libc_start_main+0xf3> (libc.so.6) 7: 0x557a23f4c12e <_start+0x2e> (cs_solver) End of stack

and if I deactivate in the GUI the choice for "different mesh", it works fine.

Let me know if you need more info.

Cheers,

Yohann EUDE

YvanFournier commented 1 year ago

Hello,

Sorry for not answering earlier.

The "restart on another mesh" feature currently handles only cell-based values, so does not yet work either with Lagrangian particles or ALE mesh deformation (based on vertex values).

We do need to add those features...