File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
66from ..printer import cons
77from .. import common , build
8- from ..state import ARGS , ARG
8+ from ..state import ARGS , ARG , gpuConfigOptions
99from ..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
You can’t perform that action at this time.
0 commit comments