-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile_gfortran
24 lines (20 loc) · 974 Bytes
/
Makefile_gfortran
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SHELL=bash
all: MIDAS
MIDAS: fms_build/libfms.a MOM6_ALE/build_ale/libale.a
-rm -rf build/*
python setup.py config_fc --f90flags="-i4 -r8 -DPY_SOLO" --fcompiler=gfortran \
--f90flags="-fcray-pointer -fdefault-real-8 \
-ffixed-line-length-132 -ffree-line-length-0 -DPY_SOLO" build
python setup.py install
fms_build/libfms.a:
(cd fms;tar xvf fms_env.tar)
(cd fms;rm -rf shared;git clone https://github.com/NOAA-GFDL/FMS.git shared)
(cd fms_build;cp build_fms.csh tmp;\
sed -e 's/#set platform = linux/set platform = linux/' < tmp > tmp2;\
sed -e 's/set platform = gfdl_hpcs/#set platform = gfdl_hpcs/' < tmp2 > build_fms.csh;\
chmod +x ./build_fms.csh;./build_fms.csh)
MOM6_ALE/build_ale/libale.a:
(cd MOM6_ALE/build_ale;cp build_ale.csh tmp;\
sed -e 's/#set platform = linux/set platform = linux/' < tmp > tmp2;\
sed -e 's/set platform = gfdl_hpcs/#set platform = gfdl_hpcs/' < tmp2 > build_ale.csh;\
chmod +x ./build_ale.csh;./build_ale.csh)