mpas-model: support Intel compiler (#24905)

This commit is contained in:
Timothy Brown 2021-07-19 05:15:16 -06:00 committed by GitHub
parent feb229a5f9
commit 1bf9c10f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ class MpasModel(MakefilePackage):
homepage = "https://mpas-dev.github.io/"
url = "https://github.com/MPAS-Dev/MPAS-Model/archive/v7.0.tar.gz"
maintainers = ['t-brown']
version('7.0', sha256='f898ce257e66cff9e29320458870570e55721d16cb000de7f2cc27de7fdef14f')
version('6.3', sha256='e7f1d9ebfeb6ada37d42a286aaedb2e69335cbc857049dc5c5544bb51e7a8db8')
@ -55,6 +56,12 @@ def target(self, model, action):
'-Fwide',
'-CcdRR8',
])
elif satisfies('%intel'):
fflags.extend([
'-r8',
'-convert big_endian',
'-FR',
])
cppflags.append('-DUNDERSCORE')
targets = [
'FC_PARALLEL={0}'.format(spec['mpi'].mpifc),