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

update CICE test output #38

Merged
merged 1 commit into from
Nov 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions configuration/scripts/cice.build
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ if ($status != 0) then
if ( ${ICE_TEST} != ${ICE_SPVAL} ) then
# This is a test case. Write output to test_output file
echo "FAIL ${ICE_TESTNAME} build" >> ${ICE_CASEDIR}/test_output
echo "FAIL ${ICE_TESTNAME} run" >> ${ICE_CASEDIR}/test_output
endif
exit 99
endif
Expand All @@ -109,5 +110,6 @@ echo "`date` ${0}:${ICE_CASENAME} build completed ${ICE_BLDLOG_FILE}" >> ${ICE_
echo "${0}: COMPILE SUCCESSFUL, ${ICE_LOGDIR}/${ICE_BLDLOG_FILE}"
if ( ${ICE_TEST} != ${ICE_SPVAL} ) then
echo "PASS ${ICE_TESTNAME} build" >> ${ICE_CASEDIR}/test_output
echo "PEND ${ICE_TESTNAME} run" >> ${ICE_CASEDIR}/test_output
endif

6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.conrad
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ SCC:= icc
SFC:= ifort

ifeq ($(ICE_THREADED), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
LDFLAGS += -qopenmp
CFLAGS += -qopenmp
FFLAGS += -qopenmp
endif

### if using parallel I/O, load all 3 libraries. PIO must be first!
Expand Down
6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.gordon
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ SCC:= icc
SFC:= ifort

ifeq ($(ICE_THREADED), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
LDFLAGS += -qopenmp
CFLAGS += -qopenmp
FFLAGS += -qopenmp
endif

### if using parallel I/O, load all 3 libraries. PIO must be first!
Expand Down
6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.onyx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ SCC:= icc
SFC:= ifort

ifeq ($(ICE_THREADED), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
LDFLAGS += -qopenmp
CFLAGS += -qopenmp
FFLAGS += -qopenmp
endif

### if using parallel I/O, load all 3 libraries. PIO must be first!
Expand Down
10 changes: 10 additions & 0 deletions configuration/scripts/tests/test_restart.script
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ cp ice_in ice_in.0
${ICE_CASEDIR}/casescripts/parse_namelist.sh ice_in ${ICE_CASEDIR}/casescripts/test_nml.restart1
cp ice_in ice_in.1

mv -f ${ICE_CASEDIR}/test_output ${ICE_CASEDIR}/test_output.prev
cat ${ICE_CASEDIR}/test_output.prev | grep -iv "${ICE_TESTNAME} run" >! ${ICE_CASEDIR}/test_output
echo "RUN ${ICE_TESTNAME} run" >> ${ICE_CASEDIR}/test_output
echo "PEND ${ICE_TESTNAME} exact-restart" >> ${ICE_CASEDIR}/test_output

./cice.run

mv -f ${ICE_CASEDIR}/test_output ${ICE_CASEDIR}/test_output.prev
cat ${ICE_CASEDIR}/test_output.prev | grep -iv "${ICE_TESTNAME} run" >! ${ICE_CASEDIR}/test_output
if ( $? != 0 ) then
echo "FAIL ${ICE_TESTNAME} run-initial" >> ${ICE_CASEDIR}/test_output
exit 99
Expand Down Expand Up @@ -42,6 +49,9 @@ endif

#-----------------------------------------------------------

mv -f ${ICE_CASEDIR}/test_output ${ICE_CASEDIR}/test_output.prev
cat ${ICE_CASEDIR}/test_output.prev | grep -iv "${ICE_TESTNAME} exact-restart" >! ${ICE_CASEDIR}/test_output

echo "Exact Restart Comparison Mode:"
echo "Performing binary comparison between files:"
echo "base: $base_data"
Expand Down
6 changes: 6 additions & 0 deletions configuration/scripts/tests/test_smoke.script
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
# Run the CICE model
# cice.run returns -1 if run did not complete successfully

mv -f ${ICE_CASEDIR}/test_output ${ICE_CASEDIR}/test_output.prev
cat ${ICE_CASEDIR}/test_output.prev | grep -iv "${ICE_TESTNAME} run" >! ${ICE_CASEDIR}/test_output
echo "RUN ${ICE_TESTNAME} run" >> ${ICE_CASEDIR}/test_output

./cice.run

mv -f ${ICE_CASEDIR}/test_output ${ICE_CASEDIR}/test_output.prev
cat ${ICE_CASEDIR}/test_output.prev | grep -iv "${ICE_TESTNAME} run" >! ${ICE_CASEDIR}/test_output
if ( $? != 0 ) then
# Run failed
echo "FAIL ${ICE_TESTNAME} run" >> ${ICE_CASEDIR}/test_output
Expand Down