diff options
author | Edward Hartnett <38856240+edwardhartnett@users.noreply.github.com> | 2021-09-24 11:14:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 11:14:16 -0600 |
commit | 73913a5d51f571b71ba7ed68a5ca5c2105c8a607 (patch) | |
tree | 415637657e23fa88b6dff0686f4c44f41bcc729d | |
parent | 45b70d979842dac04d6dc5932f2905b4decf48bd (diff) | |
download | spack-73913a5d51f571b71ba7ed68a5ca5c2105c8a607.tar.gz spack-73913a5d51f571b71ba7ed68a5ca5c2105c8a607.tar.bz2 spack-73913a5d51f571b71ba7ed68a5ca5c2105c8a607.tar.xz spack-73913a5d51f571b71ba7ed68a5ca5c2105c8a607.zip |
added GFDL FMS package (#26191)
-rw-r--r-- | var/spack/repos/builtin/packages/fms/package.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fms/package.py b/var/spack/repos/builtin/packages/fms/package.py new file mode 100644 index 0000000000..da31b5df46 --- /dev/null +++ b/var/spack/repos/builtin/packages/fms/package.py @@ -0,0 +1,40 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Fms(CMakePackage): + """GFDL's Flexible Modeling System (FMS) is a software environment + that supports the efficient development, construction, execution, + and scientific interpretation of atmospheric, oceanic, and climate + system models.""" + + homepage = "https://github.com/NOAA-GFDL/FMS" + url = "https://github.com/NOAA-GFDL/FMS/archive/refs/tags/2021.02.01.tar.gz" + + maintainers = ['kgerheiser', 'Hang-Lei-NOAA', 'edwardhartnett'] + + variant('64bit', default=True, description='64 bit?') + variant('gfs_phys', default=True, description='Use GFS Physics?') + variant('openmp', default=True, description='Use OpenMP?') + + version('2021.03.01', sha256='1f70e2a57f0d01e80fceb9ca9ce9661f5c1565d0437ab67618c2c4dfea0da6e9') + + depends_on('netcdf-c') + depends_on('netcdf-fortran') + + def cmake_args(self): + args = [ + self.define_from_variant('64BIT'), + self.define_from_variant('GFS_PHYS'), + self.define_from_variant('OPENMP') + ] + + args.append(self.define('CMAKE_C_COMPILER', self.spec['mpi'].mpicc)) + args.append(self.define('CMAKE_CXX_COMPILER', self.spec['mpi'].mpicxx)) + args.append(self.define('CMAKE_Fortran_COMPILER', self.spec['mpi'].mpifc)) + + return args |