Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Long time integration in linux across several batch jobs?

Please login with a confirmed email address before reporting spam

Hi all,

I'm trying to run a long time integration on a linux cluster. The time integration takes about 10 days of wall clock time. The maximum wall clock time of a job on the cluster is 5 days. Therefore, I'll need to calculate part of the time integration in the first job, stop COMSOL and then somehow restart COMSOL in the next batch job with the latest state from the first job. How can I do this?

I'm using the following command to start COMSOL in the batch job:

comsol batch -nn 2 -np 12 -mpmode turnaround -mpi intel -inputfile inputfile.mph -outputfile out.mph -batchlog out.log -job b1

I have tried 3 options:
1. To use the recovery files, but I have been unable to. When I take the recovery file, the simulation starts again at the beginning.
2. an 'explicit event', but I can't set it to stop the simulation and write a state file.
3. a 'stop condition', but I don't know how to set the simulation to stop at a defined time and write a state file.

I'd prefer a solution where I don't need to open the GUI to fiddle with the .mph-file before restarting the file, but any suggestions are welcome.

I'm a newbie to COMSOL, since I only provide support for users of the linux cluster. Any help would be highly appreciated.

0 Replies Last Post 13 févr. 2015, 08:51 UTC−5
COMSOL Moderator

Hello John Donners

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.