Skip to content

Commit

Permalink
Fixed warning message if restart_format is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclemenssewall committed Feb 2, 2023
1 parent 48fb918 commit 07e32c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions columnphysics/icepack_intfc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ module icepack_intfc
use icepack_warnings, only: icepack_warnings_print
use icepack_warnings, only: icepack_warnings_flush
use icepack_warnings, only: icepack_warnings_aborted
use icepack_warnings, only: icepack_warnings_add
use icepack_warnings, only: warnstr

!autodocument_end icepack_intfc.F90

Expand Down
5 changes: 1 addition & 4 deletions configuration/driver/icedrv_restart.F90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module icedrv_restart
use icepack_intfc, only: icepack_query_tracer_flags, icepack_query_tracer_indices
use icepack_intfc, only: icepack_query_parameters
use icedrv_system, only: icedrv_system_abort
use icepack_intfc, only: icepack_warnings_add, warnstr
#ifdef USE_NETCDF
use netcdf
#endif
Expand Down Expand Up @@ -445,9 +444,7 @@ subroutine dumpfile
call icedrv_system_abort(string=subname//' ERROR: restart_format = "nc" requires USE_NETCDF',file=__FILE__,line=__LINE__)
#endif
else
write(warnstr,*) subname, 'Restart format must be either "bin" or "nc", no restart file written'
call icepack_warnings_add(warnstr)
call icepack_warnings_flush(nu_diag)
write (nu_diag,*) 'WARNING: Restart format must be either "bin" or "nc", no restart file written'
endif

end subroutine dumpfile
Expand Down

0 comments on commit 07e32c5

Please sign in to comment.