Skip to content

Commit

Permalink
fixes for ci and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Jun 10, 2024
1 parent 7cf9293 commit 1198935
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mpp/mpp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ module mpp_mod
logical :: mpp_record_timing_data=.TRUE.
type(clock),save :: clocks(MAX_CLOCKS)
integer :: log_unit, etc_unit
integer :: warn_unit !< unit number of the warning log
integer :: warn_unit !< unit number of the warning log
character(len=32), parameter :: configfile='logfile'
character(len=32), parameter :: warnfile='warnfile' !< base name for warninglog (appends ".<PE>.out")
integer :: peset_num=0, current_peset_num=0
Expand Down
2 changes: 1 addition & 1 deletion test_fms/fms/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TESTS = test_fms2.sh
# These will also be included in the distribution.
EXTRA_DIST = test_fms2.sh

CLEANFILES = input.nml logfile.*.out *.mod *.o *.dpi *.spi *.dyn *.spl
CLEANFILES = input.nml *.out *.mod *.o *.dpi *.spi *.dyn *.spl

clean-local:
rm -rf RESTART
8 changes: 5 additions & 3 deletions test_fms/mpp/test_stdlog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
# Set common test settings.
. ../test-lib.sh

output_dir

# ensure input.nml file present
cat <<_EOF > input.nml
&test_stdlog_nml
Expand All @@ -35,16 +37,16 @@ cat <<_EOF > input.nml
_EOF
# Run test with one processor
test_expect_success "test stdlog and stdwarn" '
mpirun -n 2 ./test_stdlog
mpirun -n 2 ../test_stdlog
'
sed -i 's/1/2/' input.nml
test_expect_failure "test stdlog and stdwarn with fatal output" '
mpirun -n 2 ./test_stdlog
mpirun -n 2 ../test_stdlog
'
# move file so we don't overwrite
mv warnfile.000000.out warnfile.000000.out.old
sed -i 's/2/3/' input.nml
test_expect_success "check stdwarn output" '
mpirun -n 1 ./test_stdlog
mpirun -n 1 ../test_stdlog
'
test_done

0 comments on commit 1198935

Please sign in to comment.