Skip to content

Commit 555cf06

Browse files
committed
Add themochem build for CPU
1 parent bac089d commit 555cf06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolchain/mfc/run/input.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ..printer import cons
77
from .. import common, build
8-
from ..state import ARGS, ARG
8+
from ..state import ARGS, ARG, gpuConfigOptions
99
from ..case import Case
1010

1111
@dataclasses.dataclass(init=False)
@@ -73,10 +73,10 @@ def generate_fpp(self, target) -> None:
7373
# Determine the real type based on the single precision flag
7474
real_type = 'real(sp)' if ARG('single') else 'real(dp)'
7575

76-
gpu_type = None
77-
if (ARG("gpu") == "mp"):
76+
directive_str = None
77+
if (ARG("gpu") == gpuConfigOptions.MP.value):
7878
directive_str = 'mp'
79-
elif (ARG("gpu") == "acc"):
79+
elif (ARG("gpu") == gpuConfigOptions.ACC.value):
8080
directive_str = 'acc'
8181

8282
# Write the generated Fortran code to the m_thermochem.f90 file with the chosen precision

0 commit comments

Comments
 (0)