run_cp2k

atomate2.cp2k.run.run_cp2k(job_type=JobType.NORMAL, cp2k_cmd=SETTINGS.CP2K_CMD, max_errors=SETTINGS.CP2K_CUSTODIAN_MAX_ERRORS, scratch_dir=SETTINGS.CUSTODIAN_SCRATCH_DIR, handlers=_DEFAULT_HANDLERS, validators=_DEFAULT_VALIDATORS, cp2k_job_kwargs=None, custodian_kwargs=None)[source]

Run CP2K.

Supports running CP2K with or without custodian (see JobType).

Parameters:
  • job_type (str or .JobType) – The job type.

  • cp2k_cmd (str) – The command used to run cp2k.

  • max_errors (int) – The maximum number of errors allowed by custodian.

  • scratch_dir (str) – The scratch directory used by custodian.

  • handlers (list of .ErrorHandler) – The error handlers used by custodian.

  • validators (list of .Validator) – The validators handlers used by custodian.

  • wall_time (int) – The maximum wall time. If set, a WallTimeHandler will be added to the list of handlers.

  • cp2k_job_kwargs (dict) – Keyword arguments that are passed to Cp2kJob.

  • custodian_kwargs (dict) – Keyword arguments that are passed to Custodian.

Return type:

None