Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit b9448e8

Browse files
committed
For core_atmosphere, a sanity check routine for the surface update stream is called during model initialisation
1 parent 4f42e22 commit b9448e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/driver/mpas_subdriver.F

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ subroutine mpas_init()
4949
use mpas_c_interfacing, only : mpas_f_to_c_string, mpas_c_to_f_string
5050
use mpas_timekeeping, only : mpas_get_clock_time, mpas_get_time
5151
use mpas_bootstrapping, only : mpas_bootstrap_framework_phase1, mpas_bootstrap_framework_phase2
52-
52+
#ifdef CORE_ATMOSPHERE
53+
use atm_core, only: atm_sanity_check_sfc_update
54+
#endif
55+
5356
implicit none
5457

5558
integer :: iArg, nArgs
@@ -298,7 +301,12 @@ end subroutine xml_stream_get_attributes
298301
if (c_ierr /= 0) then
299302
call mpas_dmpar_abort(domain_ptr % dminfo)
300303
end if
304+
#ifdef CORE_ATMOSPHERE
305+
write(0,*) " ** Performing sanity check of surface update stream properties for atmosphere core"
306+
call atm_sanity_check_sfc_update(domain_ptr)
307+
#endif
301308

309+
!
302310
!
303311
! Finalize the setup of blocks and fields
304312
!

0 commit comments

Comments
 (0)