pflotran: fix build errors with gfortran@10: (#33527)

>> 38    Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
This commit is contained in:
Satish Balay
2022-10-26 12:33:52 -05:00
committed by GitHub
parent 117a82117d
commit b497581ce7

View File

@@ -38,3 +38,8 @@ class Pflotran(AutotoolsPackage):
@property
def parallel(self):
return self.spec.satisfies("@xsdk-0.4.0:")
def flag_handler(self, name, flags):
if "%gcc@10:" in self.spec and name == "fflags":
flags.append("-fallow-argument-mismatch")
return flags, None, None