Page 1 of 1
Elmer does not tag when calculation is finished in multicore
Posted: 11 May 2021, 20:35
by lmehdizadegannam
Hello,
I am running an Elmer code in Windows and multicore. When the calculation finishes, I do not receive any message in the terminal indicating it has finished. I just should periodically check the output file to see if it is still running. Can anyone guide me how I can resolve this issue?
Thank you so much.
Kindest regards,
Lida
Re: Elmer does not tag when calculation is finished in multicore
Posted: 07 Jul 2021, 02:50
by raback
Hi Lida,
Elmer is terminated when succesful basically with "STOP 0". We could also try "CALL EXIT(0)". Would this make a difference on your platform? Maybe you can try with a minimal routine. We could perhaps add some options. STOP is part of standard but might not return a value whereas the 2nd option may be gfortran specific.
For more info see:
https://stackoverflow.com/questions/344 ... n/34476302
-Peter
Re: Elmer does not tag when calculation is finished in multicore
Posted: 07 Jul 2021, 16:43
by mark smith
Hi Peter,
Is there a call of some sort that could be added to the end of the sif file that terminates the run?
Regards
Mark
Re: Elmer does not tag when calculation is finished in multicore
Posted: 12 Jul 2021, 18:03
by lmehdizadegannam
Hi Peter,
Thanks so much for your reply. Should I add the exit or stop statement to my Fortran code? I have my sif file, Fortran and Python codes. My Fortran code consists of functions. I am not quite certain where I should add the exit statement. Can you guide me further.
Thanks so much.
Kindest regards,
Lida
Re: Elmer does not tag when calculation is finished in multicore
Posted: 20 Jul 2021, 00:43
by raback
Hi Lida,
No I don't it is that easy to alter the exit style of Elmer. I could do it, but I would need a confirmation that it really helps.
What is the code reading the exit code and how? You could make a three-line Fortran program that exits with different styles (eg. "STOP 0" or "CALL EXIT(0)") and report back if they work.
-Peter