-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to stop PositiveEnergyErrorHandler #639
Comments
Hey @YuanbinLiu , You can use the kwargs for run vasp: atomate2/src/atomate2/vasp/jobs/base.py Line 168 in bd434a6
Specificially, you have to pass a dict with the handlers: atomate2/src/atomate2/vasp/run.py Line 88 in bd434a6
|
Customising the custodian error handlers is possible using the from custodian.vasp.handlers import (
FrozenJobErrorHandler,
IncorrectSmearingHandler,
LargeSigmaHandler,
MeshSymmetryErrorHandler,
NonConvergingErrorHandler,
PotimErrorHandler,
StdErrHandler,
UnconvergedErrorHandler,
VaspErrorHandler,
)
custom_handlers = (
VaspErrorHandler(),
MeshSymmetryErrorHandler(),
UnconvergedErrorHandler(),
NonConvergingErrorHandler(),
PotimErrorHandler(),
FrozenJobErrorHandler(),
StdErrHandler(),
LargeSigmaHandler(),
IncorrectSmearingHandler(),
)
job = RelaxMaker(run_vasp_kwargs={"handlers": custom_handlers}).make(structure) Alternatively, if you want to adjust the handlers for all VASP calculations in a flow, you can do: from atomate2.vasp.jobs.base import BaseVaspMaker
flow = DoubleRelaxMaker().make(structure)
flow.update_maker_kwargs(
{"_set": {"run_vasp_kwargs->handlers": custom_handlers}},
dict_mod=True,
class_filter=BaseVaspMaker
) |
@utf thanks for the detailed answer. (maybe also something for the documentation as I assume this might be a frequently asked question in the future?) |
Thanks all, it works for me |
We need to do VASP calculations re high-energy structures whose energy is above 0. How to disable PositiveEnergyErrorHandler? Otherwise, the calculation cannot stop.
The text was updated successfully, but these errors were encountered: