When trying to continue a lammps job with the continue_with_restart_files function with manually changed queue settings
they were not correctly overwritten. In my case the queue itself was updated, but the number of cores was the max value of the old queue.
The code looked something like this:
The issue seems to be related to the order in which server.cores and server.queue are set. When manually calling cjob.to_hdf() locally a warning is put out that cores is set back to 8.
However, when submitting the job to a remote cluster the warning was not printed, i.e. this just silently failed to update to the given value.
Expected Behavior
Values that are updated manually are actually updated or the warning is printed also when submitting to a remote cluster.
Actual Behavior
Number of cores in the submit script does not correspond to the old values and not the value I set.
Instead the cores_max value from the old queue is taken.
Sorry for dropping this for so long. According to the code setting queue after cores should issue a warning if it changes the core setting. It should be issued when you run the example code from above.
Summary
When trying to continue a lammps job with the continue_with_restart_files function with manually changed queue settings they were not correctly overwritten. In my case the queue itself was updated, but the number of cores was the max value of the old queue. The code looked something like this:
The issue seems to be related to the order in which server.cores and server.queue are set. When manually calling cjob.to_hdf() locally a warning is put out that cores is set back to 8. However, when submitting the job to a remote cluster the warning was not printed, i.e. this just silently failed to update to the given value.
Expected Behavior
Values that are updated manually are actually updated or the warning is printed also when submitting to a remote cluster.
Actual Behavior
Number of cores in the submit script does not correspond to the old values and not the value I set. Instead the cores_max value from the old queue is taken.