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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,3 +38,8 @@ class Pflotran(AutotoolsPackage):
@property @property
def parallel(self): def parallel(self):
return self.spec.satisfies("@xsdk-0.4.0:") 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