[Dart-dev] DART/branches Revision: 12959

dart at ucar.edu dart at ucar.edu
Tue Jan 29 10:49:03 MST 2019


hendric at ucar.edu
2019-01-29 10:49:03 -0700 (Tue, 29 Jan 2019)
72

adding rttov flags and files to build scripts so that we can run mmc.




Modified: DART/branches/radiance/models/wrf/work/mkmf_model_mod_check
===================================================================
--- DART/branches/radiance/models/wrf/work/mkmf_model_mod_check	2019-01-29 17:47:59 UTC (rev 12958)
+++ DART/branches/radiance/models/wrf/work/mkmf_model_mod_check	2019-01-29 17:49:03 UTC (rev 12959)
@@ -33,6 +33,41 @@
 # or the subroutines which really call mpi.
 cp -f path_names_model_mod_check path_names_model_mod_check.back
 
+set XTRALIBS_BASE = /Users/hendric
+
+set JPGDIR = ${XTRALIBS_BASE}/eos
+set HDFDIR = ${XTRALIBS_BASE}/eos
+set EOSDIR = ${XTRALIBS_BASE}/eos
+set RTTOV = ${XTRALIBS_BASE}/rttov122
+
+
+set JPGINC = ${JPGDIR}/include
+set JPGLIB = ${JPGDIR}/lib
+
+set HDFINC = ${HDFDIR}/include
+set HDFLIB = ${HDFDIR}/lib
+
+set EOSINC = ${EOSDIR}/include
+set EOSLIB = ${EOSDIR}/lib
+
+set RTINC = "${RTTOV}/include"
+set RTMOD = "${RTTOV}/mod"
+set RTLIB = "${RTTOV}/lib"
+set RTSRC = "${RTTOV}/src"
+set RTLIBS = "-lrttov_main -lrttov_brdf_atlas -lrttov_coef_io -lrttov_emis_atlas -lrttov_mw_scatt -lrttov_mw_scatt_coef -lrttov_other"
+
+# leaving this out for now: rttov_parallel
+
+set MYLIBS = "${RTLIBS} -lhdfeos -lmfhdf -ldf -ljpeg -lz  -lm"
+
+set MYINCDIRS = "-I${RTINC} -I${RTMOD} -I${EOSINC} -I${HDFINC} -I${JPGINC} -I${RTSRC}"
+set MYLIBDIRS = "-L${RTLIB} -L${EOSLIB} -L${HDFLIB} -L${JPGLIB}"
+
+# is -cpp compiler specific?  on a mac with a case-insensitive filesystem
+# we have to tell it to call cpp to build files with #if and #include lines.
+
+set MYFLAGS = "-cpp ${MYINCDIRS}"
+
 if ( $usingmpi ) then
 
   echo "Making Makefile with MPI"
@@ -62,7 +97,8 @@
 # remove temp file and now really call mkmf to generate makefile
 rm -f path_names_model_mod_check.back
 
-../../../build_templates/mkmf -p model_mod_check -t ../../../build_templates/mkmf.template   \
+../../../build_templates/mkmf -p model_mod_check -t ../../../build_templates/mkmf.template \
+ -o "${MYFLAGS}" -l "${MYFLAGS} ${MYINCDIRS} ${MYLIBDIRS} ${MYLIBS}" \
         -a "../../.." ${wrapper_arg} path_names_model_mod_check
 
 exit $status

Modified: DART/branches/radiance/models/wrf/work/path_names_model_mod_check
===================================================================
--- DART/branches/radiance/models/wrf/work/path_names_model_mod_check	2019-01-29 17:47:59 UTC (rev 12958)
+++ DART/branches/radiance/models/wrf/work/path_names_model_mod_check	2019-01-29 17:49:03 UTC (rev 12959)
@@ -39,4 +39,8 @@
 models/wrf/module_map_utils.f90
 observations/forward_operators/obs_def_mod.f90
 observations/forward_operators/obs_def_utilities_mod.f90
+observations/forward_operators/parkind1.f90
+observations/forward_operators/rttov_const_mod.f90
+observations/forward_operators/rttov_interface_mod.f90
+observations/forward_operators/rttov_types.f90
 assimilation_code/modules/utilities/null_win_mod.f90


More information about the Dart-dev mailing list