pymatgen.io.abinit.events module¶
This module defines the events signaled by abinit during the execution. It also provides a parser to extract these events form the main output file and the log file.
-
class
EventsParser[source]¶ Bases:
objectParses the output or the log file produced by ABINIT and extract the list of events.
-
Error¶ alias of
EventsParserError
-
-
class
ScfConvergenceWarning(src_file, src_line, message)[source]¶ Bases:
pymatgen.io.abinit.events.AbinitCriticalWarningWarning raised when the GS SCF cycle did not converge.
Basic constructor for
AbinitEvent.- Parameters
message – String with human-readable message providing info on the event.
src_file – String with the name of the Fortran file where the event is raised.
Integer giving the line number in src_file. (src_line) –
-
yaml_tag= '!ScfConvergenceWarning'¶
-
class
NscfConvergenceWarning(src_file, src_line, message)[source]¶ Bases:
pymatgen.io.abinit.events.AbinitCriticalWarningWarning raised when the GS NSCF cycle did not converge.
Basic constructor for
AbinitEvent.- Parameters
message – String with human-readable message providing info on the event.
src_file – String with the name of the Fortran file where the event is raised.
Integer giving the line number in src_file. (src_line) –
-
yaml_tag= '!NscfConvergenceWarning'¶
-
class
RelaxConvergenceWarning(src_file, src_line, message)[source]¶ Bases:
pymatgen.io.abinit.events.AbinitCriticalWarningWarning raised when the structural relaxation did not converge.
Basic constructor for
AbinitEvent.- Parameters
message – String with human-readable message providing info on the event.
src_file – String with the name of the Fortran file where the event is raised.
Integer giving the line number in src_file. (src_line) –
-
yaml_tag= '!RelaxConvergenceWarning'¶
-
class
DilatmxError(src_file, src_line, message)[source]¶ Bases:
pymatgen.io.abinit.events.AbinitErrorThis Error occurs in variable cell calculations when the increase in the unit cell volume is too large.
Basic constructor for
AbinitEvent.- Parameters
message – String with human-readable message providing info on the event.
src_file – String with the name of the Fortran file where the event is raised.
Integer giving the line number in src_file. (src_line) –
-
yaml_tag= '!DilatmxError'¶
-
class
DilatmxErrorHandler(max_dilatmx=1.3)[source]¶ Bases:
pymatgen.io.abinit.events.ErrorHandlerHandle DilatmxError. Abinit produces a netcdf file with the last structure before aborting The handler changes the structure in the input with the last configuration and modify the value of dilatmx.
-
as_dict()[source]¶ Basic implementation of as_dict if __init__ has no arguments. Subclasses may need to overwrite.
-
can_change_physics= False¶
-
event_class¶ alias of
DilatmxError
-