.msh file is not read

Posted by Leon Robers on
URL: http://forum.featool.com/msh-file-is-not-read-tp179.html

Hi

Once in a while, the execution of my code stops after the meshing file is generated, so at this point:
...
Info: Done meshing 2D (5.23438 s)
Info: 52639 vertices 55186 elements
Info: Writing 'featool_gmsh_XQCERAFLVKG3.msh'...
Info: Done writing 'featool_gmsh_XQCERAFLVKG3.msh'
Info: Done reading 'featool_gmsh_XQCERAFLVKG3.geo'
Info: Stopped on Tue Feb 18 17:54:47 2020
(now it stops!)

Normally, it continues with the following line and the normal fea calculation:
Reading file C:\Users\lerobers\AppData\Local\Temp\featool_gmsh_XQCERAFLVKG3.msh
...

So Matlab does not crash but just stays "busy" without continuing the computation.
Since I implemented my fea-computation in a loop which runs over several days and my geometry is changed with each loop-iteration, I would like to be able to terminate the meshing process automatically if it takes longer than a certain threshold. So ideally, i could just end the gridgen.m function after a certain time limit is reached and continue with my matlab code, even though no mesh has been imported. My code then can handle any error which occurs and just skips the computation. Is this possible?

The error is independent of the geometry (it really just occurs rarely and only on one of the 2 computers where I am running the simulations)

If you can help me, thanks, if this is beyond the fea-tool related questions, I understand that too
thanks
Leon