Thanks for providing the link, however, I cannot find the option for English, so I have no idea where I should click to access the file. Could you maybe upload it on a site where it is possible to change the language to English?
I am so sorry to reply you so late because I just realized there were two page in my post!!!. :-[ :-[ :-[ .
I made a test to verify my thoughts of solving this problem. Here are two block codes, the first one is origin input script( I modified interval time and store path ), the second one is the restarting script.
the first block:
#----------------------------------------
# Device Calculator
#----------------------------------------
checkpoint_handler=CheckpointHandler('/nobackup/wangzq/toy/cutoff/checkpoint.nc', 3*Minute)
calculator = DeviceLCAOCalculator(
iteration_control_parameters=device_iteration_control_parameters,
contour_parameters=contour_parameters,
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
checkpoint_handler=checkpoint_handler,
)
device_configuration.setCalculator(calculator)
nlprint(device_configuration)
device_configuration.update()
nlsave('toy-iv.nc', device_configuration)
the second block:
#----------------------------------------
# Device Calculator
#----------------------------------------
checkpoint_handler=CheckpointHandler('/nobackup/wangzq/toy/cutoff/checkpoint.nc', 3*Minute)
calculator = DeviceLCAOCalculator(
iteration_control_parameters=device_iteration_control_parameters,
contour_parameters=contour_parameters,
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
checkpoint_handler=checkpoint_handler,
)
device_configuration.setCalculator(calculator)
nlprint(device_configuration)
device_configuration = nlread("checkpoint.nc")[0]
device_configuration.update(force_restart=True)
nlsave('toy-iv.nc', device_configuration)
Finally, I got results by submiting the second script(checkpoint.nc ,of course, in the same work file with the second script) to clusters. Did my methods take effect for restarting calculation?
Sorry again for my carelessness :-[ :-[ :-[ :-[