# Makefile.am for ropp_1dvar/tests # ================================ # 1. Useful settings # ------------------ SUFFIXES = .sh .pl # 2. Some scripts for testing # --------------------------- noinst_SCRIPTS = test_1dvar.sh \ test_1dvar_GRAS_bangle.sh test_1dvar_GRAS_refrac.sh \ test_1dvar_COSMIC_bangle.sh test_1dvar_COSMIC_refrac.sh \ test_1dvar_iono.sh if HAVE_ROPP_IO bin_PROGRAMS = ropp_1dvar_compare ropp_1dvar_summary ropp_1dvar_compare_SOURCES = ropp_1dvar_compare.f90 ropp_1dvar_summary_SOURCES = ropp_1dvar_summary.f90 endif # 3. Libraries to link in # ----------------------- LDADD = ../build/libropp_1dvar.a # 4. Files to be cleaned # ---------------------- if CM_FC_UC_MODNAMES MODULES = else MODULES = endif CLEANFILES = *.stb $(MODULES) DISTCLEANFILES = *.dat *.nc *_ba.jpg *_ref.jpg # 5. Stuff to go into the distribution # ------------------------------------ EXTRA_DIST = close_jpgfile.pro klegend_d.pro \ plot_1dvar.pro ncdf_getvar.pro open_jpgfile.pro \ test_1dvar.sh \ test_1dvar_GRAS_bangle.sh test_1dvar_GRAS_refrac.sh \ test_1dvar_COSMIC_bangle.sh test_1dvar_COSMIC_refrac.sh \ test_1dvar_iono.sh # 6. Compilation rules for scripts (currently not needed, but maybe later) # ------------------------------------------------------------------------ editsh = sed \ -e 's,@''etcdir''@,$(etcdir),g' \ -e 's,@''datadir''@,$(datadir),g' \ -e 's,@''pkgdatadir''@,$(pkgdatadir),g' \ -e 's,@''defaultcenter''@,$(defaultcenter),g' \ -e 's,@''M4''@,$(M4),g' \ -e 's,@''AWK''@,$(AWK),g' \ -e 's,@''SHELL''@,$(SHELL),g' \ -e 's,@''VERSION''@,$(VERSION),g' \ -e 's,@''PACKAGE''@,$(PACKAGE),g' editpl = sed \ -e 's,@''etcdir''@,$(etcdir),g' \ -e 's,@''datadir''@,$(datadir),g' \ -e 's,@''pkgdatadir''@,$(pkgdatadir),g' \ -e 's,@''perldir''@,$(perldir),g' \ -e 's,@''defaultcenter''@,$(defaultcenter),g' \ -e 's,@''PERL''@,$(PERL),g' \ -e 's,@''VERSION''@,$(VERSION),g' \ -e 's,@''PACKAGE''@,$(PACKAGE),g' .sh: rm -f $@ $@.tmp $(editsh) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ .pl: rm -f $@ $@.tmp $(editpl) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ # 7. Dependencies # --------------- ropp_1dvar_compare.$(OBJEXT) : ropp_1dvar_compare.f90 ropp_1dvar_summary.$(OBJEXT) : ropp_1dvar_summary.f90 # 8. Additional things to do # --------------------------- test: test_1dvar if HAVE_ROPP_IO test_1dvar: @ rm -f ./compare.txt @ echo "" @ echo "Testing basic 1D-Var functionality" @ echo "" @ ./test_1dvar.sh @ echo "" @ echo "Testing 1D-Var using GRAS bending angles with colocated ECMWF backgrounds" @ echo "" @ ./test_1dvar_GRAS_bangle.sh @ echo "" @ echo "Testing 1D-Var using GRAS refractivities and colocated ECMWF backgrounds" @ echo "" @ ./test_1dvar_GRAS_refrac.sh @ echo "" @ echo "Testing 1D-Var using COSMIC bending angles and colocated Met Office backgrounds" @ echo "" @ ./test_1dvar_COSMIC_bangle.sh @ echo "" @ echo "Testing 1D-Var using COSMIC refractivities and colocated Met Office backgrounds" @ echo "" @ ./test_1dvar_COSMIC_refrac.sh @ echo "" @ echo "Testing 1D-Var L1 & L2 retrievals using GRAS observations and colocated ECMWF backgrounds" @ echo "" @ ./test_1dvar_iono.sh @ echo "" @ echo "Making summary of test result" @ echo "" @ ./ropp_1dvar_summary @ echo "" @ cat ropp_1dvar_summary.txt @ echo "" @ echo "This table is saved in ropp_1dvar_summary.txt." @ echo "Each test has its own log file." @ echo "" else test_1dvar: @ echo "" @ echo "*********** ROPP_1DVAR TESTING ***********************" @ echo "" @ echo "Configure detects that the ROPP_IO library has not been correctly installed." @ echo "The ropp_1dvar test routine requires ropp_io and netcdf to be installed first. " @ echo "See ROPP release notes for installation instructions." @ echo "" @ echo "NOTE: " @ echo " ROPP_IO AND NETCDF LIBRARIES ARE ONLY REQUIRED FOR STAND-ALONE" @ echo " ROPP_1DVAR TOOLS AND TEST ROUTINES. USERS WISHING TO LINK ROPP_1DVAR" @ echo " TO THEIR OWN APPLICATIONS NOT REQUIRING INPUT/OUTPUT FUNCTIONS DO" @ echo " NOT NEED TO INSTALL THESE ADDITIONAL LIBRARIES OTHER THAN TO RUN " @ echo " STAND-ALONE TOOLS AND TESTING. See ROPP User Guide for more details." @ echo "" endif