From 8b414bf42059f64ec9c3eaa1ddfff6e73fcaf33b Mon Sep 17 00:00:00 2001 From: PeterHjortLauritzen Date: Thu, 24 Mar 2016 10:51:13 -0600 Subject: [PATCH] mods for Yellowstone --- Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f675d00..b47b620 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,10 @@ # machine=harmon machine=my_mac -#machine=yellowstone +machine=yellowstone #FC = ifort -FC = gfortran +#FC = gfortran +FC=ifort #FC = nagfor #FC = pgf95 DEBUG=FALSE @@ -18,7 +19,7 @@ DEBUG=FALSE # model=fv res=0.9x1.25 -raw_data=gmted2010_modis +raw_data=gtopo30 smoothing=cam_fv_smooth ncube=3000 aniso=no_anisoSGH @@ -108,7 +109,7 @@ cube_to_target: cube_to_target/output/$(model)_$(res)-$(raw_data)-$(smoothing)-i 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 echo cube_to_target/$(model)_$(res)-$(raw_data)-$(smoothing)-intermediate_ncube$(ncube)-$(aniso).nc echo ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso) - (cd cube_to_target; make; chmod +x run.sh; cube_to_target.nl; ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso)) + (cd cube_to_target; make; chmod +x run.sh; rm cube_to_target.nl; ./run.sh $(model)_$(res) $(raw_data) $(smoothing) $(ncube) $(aniso)) 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 # LIB_NETCDF := /opt/local/lib # INC_NETCDF := /opt/local/include +# +#------------------------------------------------------------------------ +# ifort +#------------------------------------------------------------------------ +# +ifeq ($(FC),ifort) + FFLAGS = -c -g -r8 -O1 -I$(INC_NETCDF) + LDFLAGS = -L$(LIB_NETCDF) -lnetcdf +endif + + #------------------------------------------------------------------------ # GFORTRAN #------------------------------------------------------------------------