wget https://github.com/MITgcm/MITgcm/archive/refs/tags/checkpoint67s.tar.gz mv checkpoint67s.tar.gz MITGCM-2020-mid.tar.gz tar xzvf MITGCM-2020-mid.tar.gz cd MITgcm-checkpoint67s
安装
需要先进入build目录,然后使用genmake2生成Makefile
1 2
cd verification/exp2/build ../../../tools/genmake2 -mods ../code -optfile «/PATH/TO/OPTFILE» # ../../../tools/build_options/linux_amd64_gfortran
# 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 * from os import system
classMitgcm(MakefilePackage): """FIXME: Put a proper description of your package here."""
# FIXME: Add a proper url for your package's homepage here. homepage = "https://github.com/MITgcm/MITgcm" url = "https://github.com/MITgcm/MITgcm/archive/refs/tags/checkpoint67s.tar.gz"
variant('mpi', default=False, description='Use the specified C++ standard when building.') variant('openmp', default=False, description='Use the specified C++ standard when building.')