Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User/jml/update fms2io tests #280

Merged
merged 26 commits into from
Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a99791b
removed .bats files
Feb 4, 2020
8aefbbf
changed input.nml to input_base.nml in makefile EXTRA_DIST definition
Feb 4, 2020
eb403ee
added calls to separate test_fms2_io and test_atmosphere_io scripts
Feb 4, 2020
6653506
added create_atmosphere_domain.inc to the makefile test_atmosphere_io…
Feb 4, 2020
50fb1c9
added missing .inc files to test_atmos_io_SOURCES in Makefile.am
Feb 6, 2020
5298ecd
removed subroutine open_check from test_fms2_io b/c already defined i…
Feb 6, 2020
4a30bb1
replaced write_restart with write_data calls
Feb 6, 2020
26cabd2
removed unsupported write_data call with timestamp argument
Feb 6, 2020
f793f00
replaced write_data with write_restart where restart file is written …
Feb 6, 2020
b74ebc7
appended .sh to test_fms2_io in makefile TESTS definition
Feb 6, 2020
afd2725
appended test_fms2_io.sh to makefile EXTRA_DIST definition
Feb 6, 2020
dc507f7
moved some .inc files to test_fms2_io_SOURCES definition
Feb 6, 2020
48deb1b
Merge branch 'master' into user/jml/update_fms2io_tests
wrongkindofdoctor Mar 13, 2020
317c031
Merge pull request #17 from NOAA-GFDL/master
wrongkindofdoctor Mar 16, 2020
71bb324
Merge branch 'master' into user/jml/update_fms2io_tests
wrongkindofdoctor Mar 17, 2020
f6457f6
Merge pull request #18 from NOAA-GFDL/master
wrongkindofdoctor Mar 24, 2020
a77bf23
fixed merge conflicts with master
Mar 25, 2020
1bc7818
updated authors, fixed directory patah, added lines to remove existin…
Mar 25, 2020
2f489f5
added lines to remove netcdf files from run directory
Mar 25, 2020
d61b5ac
removed whitespace from Makefile
Mar 26, 2020
ecb77cc
removed input_base.nml and statements to copy this file to input.nml …
Mar 27, 2020
862808f
removed input.nml from directory
Mar 27, 2020
a7556c2
added input.nml back to test_fms/fms2_io directory, removed input_bas…
Mar 27, 2020
a9e4844
removed input.nml and replaced with lines to create a dummy namelist …
Mar 27, 2020
a9178ec
Merge branch 'master' into user/jml/update_fms2io_tests
wrongkindofdoctor Mar 27, 2020
2614435
Merge branch 'master' into user/jml/update_fms2io_tests
wrongkindofdoctor Apr 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 18 additions & 26 deletions test_fms/fms2_io/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
# This is an automake file for the test_fms/diag_manager directory of the FMS
# This is an automake file for the test_fms/fms2_io directory of the FMS
# package.

LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/tap-driver.sh
# J.Liptak, R.Menzel

# Find the fms_mod.mod file.
AM_CPPFLAGS = -I${top_builddir}/mpp
AM_CPPFLAGS += -I${top_builddir}/fms2_io
AM_CPPFLAGS = -I${top_builddir}/mpp -I${top_builddir}/fms2_io

# Link to the FMS library.
LDADD = ${top_builddir}/libFMS/libFMS.la

# Build this test program.
check_PROGRAMS = test_atmosphere_io
check_PROGRAMS = test_fms2_io test_atmosphere_io

# This is the source code for the test.
test_atmosphere_io_SOURCES = argparse.F90 setup.F90 test_atmosphere_io.F90
test_atmosphere_io_LDADD = ${top_builddir}/libFMS/libFMS.la
EXTRA_DIST = test_atmosphere_io.sh test_atmosphere_io.bats input.nml
test_fms2_io_SOURCES = argparse.F90 test_fms2_io.F90 create_atmosphere_domain.inc \
create_land_domain.inc create_ocean_domain.inc \
ocean_restart_file_test.inc land_compressed_restart_file_test.inc \
land_unstructured_restart_file_test.inc
test_atmosphere_io_SOURCES = argparse.F90 setup.F90 test_atmosphere_io.F90 \
atmosphere_restart_file_test.inc

EXTRA_DIST = test_fms2_io.sh test_atmosphere_io.sh

argparse.mod: argparse.$(OBJEXT)
setup.mod: setup.$(OBJEXT)
setup.$(OBJEXT): argparse.mod
test_atmosphere_io.$(OBJEXT): setup.mod
test_fms2_io.$(OBJEXT): argparse.mod

# Run the test program.
TESTS = test_atmosphere_io.sh
TESTS = test_fms2_io.sh test_atmosphere_io.sh

# Set srcdir as evironment variable to be reference in the job script
TESTS_ENVIRONMENT = srcdir="$(top_srcdir)"

CLEANFILES = *.mod *.nc logfile.000000.out

## Build this test program.
#check_PROGRAMS = test_fms2_io
#
## This is the source code for the test.
#test_fms2_io_SOURCES = argparse.F90 test_fms2_io.F90
#test_fms2_io_LDADD = ${top_builddir}/libFMS/libFMS.la
#
#argparse.mod: argparse.$(OBJEXT)
#test_fms2_io.$(OBJEXT): argparse.mod
#
#CLEANFILES = *.mod
#
## Run the test program.
#TESTS = test_fms2_io.sh
CLEANFILES = *.mod *.nc *.nc.* input.nml logfile.000000.out
5 changes: 0 additions & 5 deletions test_fms/fms2_io/atmosphere_restart_file_test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ subroutine atmosphere_restart_file(domain, nz, nt, debug_flag)

!Write out the times of each "time step".
call write_data(fileobj, "time", 1950. + real(i,kind=real32), unlim_dim_level=i)

!Write out "intermdiate" restart files.
tstamp = ""
write(tstamp, *) i
call write_restart(fileobj, unlim_dim_level=1, timestamp=trim(tstamp))
enddo

!Write out the restart file.
Expand Down
1 change: 0 additions & 1 deletion test_fms/fms2_io/input.nml

This file was deleted.

14 changes: 0 additions & 14 deletions test_fms/fms2_io/test_atmosphere_io.bats

This file was deleted.

10 changes: 9 additions & 1 deletion test_fms/fms2_io/test_atmosphere_io.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
#!/bin/sh
bats ${srcdir}/test_fms/fms2_io/test_atmosphere_io.bats
# This is part of the GFDL FMS package. This is a shell script to
# execute tests in the test_fms/fms2_io directory.

# Set common test settings.
. ../test_common.sh
# make an input.nml for mpp_init to read
printf "EOF\n&dummy\nEOF" | cat > input.nml
# run the tests
run_test test_atmosphere_io 6 skip
11 changes: 0 additions & 11 deletions test_fms/fms2_io/test_fms2_io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,6 @@ subroutine mpi_check(err)
endif
end subroutine mpi_check


subroutine open_check(flag)

logical, intent(in) :: flag

if (.not. flag) then
call mpp_error(fatal, "Error occured while opening file.")
endif
end subroutine open_check


subroutine chksum_match(out_chksum, in_chksum, var_name, debug)

integer(kind=int64), intent(in) :: out_chksum
Expand Down
11 changes: 0 additions & 11 deletions test_fms/fms2_io/test_fms2_io.bats

This file was deleted.

15 changes: 13 additions & 2 deletions test_fms/fms2_io/test_fms2_io.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/bin/sh
export PATH="$PATH:../bats/bin"
bats test_fms2_io.bats

# This is part of the GFDL FMS package. This is a shell script to
# execute tests in the test_fms/fms2_io directory.

# Authors: Raymond Menzel
# Jessica Liptak
#
# Set common test settings.
. ../test_common.sh
# make a dummy file for mpp_init to read
printf "EOF\n&dummy\nEOF" | cat > input.nml
# run the tests
run_test test_fms2_io 6 skip