Skip to content

Commit 8b414bf

Browse files
mods for Yellowstone
1 parent 89d5f87 commit 8b414bf

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
#
44
machine=harmon
55
machine=my_mac
6-
#machine=yellowstone
6+
machine=yellowstone
77
#FC = ifort
8-
FC = gfortran
8+
#FC = gfortran
9+
FC=ifort
910
#FC = nagfor
1011
#FC = pgf95
1112
DEBUG=FALSE
@@ -18,7 +19,7 @@ DEBUG=FALSE
1819
#
1920
model=fv
2021
res=0.9x1.25
21-
raw_data=gmted2010_modis
22+
raw_data=gtopo30
2223
smoothing=cam_fv_smooth
2324
ncube=3000
2425
aniso=no_anisoSGH
@@ -108,7 +109,7 @@ cube_to_target: cube_to_target/output/$(model)_$(res)-$(raw_data)-$(smoothing)-i
108109
cube_to_target/output/fv_$(res)-$(raw_data)-$(smoothing)-intermediate_ncube$(ncube)-$(aniso).nc: bin_to_cube/$(raw_data)-ncube$(ncube).nc cam_fv_topo-smoothing/$(raw_data)-$(model)_$(res)-$(smoothing).nc
109110
echo cube_to_target/$(model)_$(res)-$(raw_data)-$(smoothing)-intermediate_ncube$(ncube)-$(aniso).nc
110111
echo ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso)
111-
(cd cube_to_target; make; chmod +x run.sh; cube_to_target.nl; ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso))
112+
(cd cube_to_target; make; chmod +x run.sh; rm cube_to_target.nl; ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso))
112113

113114

114115
cube_to_target/output/se_$(res)-$(raw_data)-$(smoothing)-intermediate_ncube$(ncube)-$(aniso).nc: bin_to_cube/$(raw_data)-ncube$(ncube).nc
@@ -200,6 +201,17 @@ export FC
200201
# LIB_NETCDF := /opt/local/lib
201202
# INC_NETCDF := /opt/local/include
202203

204+
#
205+
#------------------------------------------------------------------------
206+
# ifort
207+
#------------------------------------------------------------------------
208+
#
209+
ifeq ($(FC),ifort)
210+
FFLAGS = -c -g -r8 -O1 -I$(INC_NETCDF)
211+
LDFLAGS = -L$(LIB_NETCDF) -lnetcdf
212+
endif
213+
214+
203215
#------------------------------------------------------------------------
204216
# GFORTRAN
205217
#------------------------------------------------------------------------

0 commit comments

Comments
 (0)