[mpas-model] Only add options for double precision when requested (#43547)
As in the original makefile "FFLAGS_PROMOTION = -fdefault-real-8 -fdefault-double-8" is only used when `precision=double`. This is the default for the Spack package, so no change if `precision` is left unset.
This commit is contained in:
parent
fb6741cf85
commit
4c9816f10c
1 changed files with 3 additions and 9 deletions
|
@ -104,15 +104,9 @@ def target(self, model, action):
|
|||
fflags = [self.compiler.openmp_flag]
|
||||
cppflags = ["-D_MPI"]
|
||||
if satisfies("%gcc"):
|
||||
fflags.extend(
|
||||
[
|
||||
"-ffree-line-length-none",
|
||||
"-fconvert=big-endian",
|
||||
"-ffree-form",
|
||||
"-fdefault-real-8",
|
||||
"-fdefault-double-8",
|
||||
]
|
||||
)
|
||||
fflags.extend(["-ffree-line-length-none", "-fconvert=big-endian", "-ffree-form"])
|
||||
if satisfies("precision=double"):
|
||||
fflags.extend(["-fdefault-real-8", "-fdefault-double-8"])
|
||||
cppflags.append("-DUNDERSCORE")
|
||||
elif satisfies("%fj"):
|
||||
fflags.extend(["-Free", "-Fwide", "-CcdRR8"])
|
||||
|
|
Loading…
Reference in a new issue