Skip to content

Commit

Permalink
Translate pysisyphus keywords to CFOUR keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
greghjones committed Feb 19, 2024
1 parent 107becf commit 2ea7848
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pysisyphus/calculators/CFOUR.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def __init__(
"""CFOUR calculator.
Wrapper handling CFOUR ground state energy and gradient calculations.
Memory must be specified as a CFOUR keyword (not checked).
Parameters
----------
Expand Down Expand Up @@ -53,6 +52,18 @@ def __init__(

self.float_regex = r"([-]?\d+\.\d+)" ## CFOUR doesn't use scientific notation for final energy or gradient.

## Convert pysisyphus keywords to CFOUR keywords
## Explicitly not adding support for managing CFOUR parallelism -
## user-configured cmd script in .pysisyphusrc should set either OMP_NUM_THREADS
## or the environment variable they defined at compile-time for MPI parallelism
if 'mem' in kwargs:
cfour_input['MEM_SIZE'] = kwargs['mem']
cfour_input['MEM_UNIT'] = 'MB'
if 'charge' in kwargs:
cfour_input['CHARGE'] = kwargs['charge']
if 'mult' in kwargs:
cfour_input['MULT'] = kwargs['mult']

def prepare(self, inp):
path = super().prepare(inp)
if self.initden:
Expand Down

0 comments on commit 2ea7848

Please sign in to comment.