update_user_incar_settings

atomate2.vasp.powerups.update_user_incar_settings(flow, incar_updates, name_filter=None, class_filter=BaseVaspMaker)[source]

Update user INCAR settings in VaspInputGenerators.

Modifies the user_incar_settings attribute of VASP input generators within jobs, flows, or makers. Creates a copy of the input.

Parameters:
  • flow (Job or Flow or Maker) – A job, flow, or maker to update.

  • incar_updates (dict[str, Any]) – Dictionary mapping INCAR tags to their new values (e.g., {‘ENCUT’: 520, ‘EDIFF’: 1e-5}). Only specified keys are modified.

  • name_filter (str or None, optional) – Filter to apply updates only to jobs matching this name pattern. Default is None (no filtering).

  • class_filter (type[Maker] or None, optional) – Filter to apply updates only to makers of this class or its subclasses. Default is BaseVaspMaker.

Returns:

A deep copy of the input with updated INCAR settings.

Return type:

Job or Flow or Maker

Examples

>>> flow = update_user_incar_settings(flow, {"ENCUT": 520, "ISMEAR": 0})