This function is used to load a self-consistent calculation from a NetCDF checkpoint file generated during the self-consistent iteration of a previous run. The restored calculation can be used as if it was obtained directly by calling the function executeSelfConsistentCalculation().
List of arguments:
The following two scripts are for all practical purposes equivalent and can be continued in exactly the same way (e.g. with some analysis commands, as shown in the example):
from ATK.KohnSham import * import ATK ATK.setCheckpointFilename('filename.nc') sc_calc = executeSelfConsistentCalculation(...) print calculateTotalEnergy(scf)
and
from ATK.KohnSham import * ... sc_calc = restoreSelfConsistentCalculation('filename.nc') print calculateTotalEnergy(scf)
The checkpoint file is generated during the self-consistent calculation, and its name and location is specified using either runtimeParameters() or the setCheckpointFilename() function.
|
|
Warning |
|---|---|
|
The inclusion in ATK 2008.02 of a
A fully self-consistent result for ATK 2008.02 can be obtained by using the function
executeSelfConsistentCalculation() with
the restored self-consistent calculation as |