Skip to content

Commit

Permalink
Merge pull request #38 from apcraig/cicetestB
Browse files Browse the repository at this point in the history
update CICE test output
  • Loading branch information
apcraig authored Nov 15, 2017
2 parents 6e538e5 + a262506 commit c797b67
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 9 deletions.
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

0 comments on commit c797b67

Please sign in to comment.