Changeset 13294
- Timestamp:
- 2020-07-10T20:15:20+02:00 (5 years ago)
- Location:
- NEMO/branches/2020/ticket2487/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/ticket2487/src/ICE/iceistate.F90
r13180 r13294 60 60 INTEGER , PARAMETER :: jp_hpd = 9 ! index of pnd depth (m) 61 61 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: si ! structure of input fields (file informations, fields read) 62 ! 63 #if defined key_agrif 64 REAL(wp), PUBLIC :: rsshadj !: initial mean ssh adjustment due to initial ice+snow mass 65 #endif 62 66 ! 63 67 !!---------------------------------------------------------------------- … … 427 431 z1_area = 1.0_wp / glob_sum( 'iceistate', e1e2t(:,:) ) 428 432 zsshadj = glob_sum( 'iceistate', e1e2t(:,:) * snwice_mass(:,:) ) * r1_rau0 * z1_area 433 #if defined key_agrif 434 ! Override ssh adjustment in nested domains by the root-domain ssh 435 ! adjustment; store the adjustment value in a global module variable to 436 ! make it retrievable in nested domains 437 IF( .NOT. Agrif_Root() ) zsshadj = Agrif_Parent(rsshadj) 438 rsshadj = zsshadj 439 #endif 429 440 WRITE(ctmp1,'(A34,F10.6,A32)') 'iceistate: mean ssh adjusted by ', -1.0_wp * zsshadj, ' m to compensate for the initial' 430 441 CALL ctl_warn( ctmp1, ' ice+snow mass' ) -
NEMO/branches/2020/ticket2487/src/OCE/SBC/sbcice_cice.F90
r13180 r13294 87 87 88 88 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:), PRIVATE :: png ! local array used in sbc_cice_ice 89 90 #if defined key_agrif 91 REAL(wp), PUBLIC :: rsshadj !: initial mean ssh adjustment due to initial ice+snow mass 92 #endif 89 93 90 94 !!---------------------------------------------------------------------- … … 270 274 z1_area = 1.0_wp / glob_sum( 'sbcice_cice', e1e2t(:,:) ) 271 275 zsshadj = glob_sum( 'sbcice_cice', e1e2t(:,:) * snwice_mass(:,:) ) * r1_rau0 * z1_area 276 #if defined key_agrif 277 ! Override ssh adjustment in nested domains by the root-domain ssh 278 ! adjustment; store the adjustment value in a global module variable to 279 ! make it retrievable in nested domains 280 IF( .NOT. Agrif_Root() ) zsshadj = Agrif_Parent(rsshadj) 281 rsshadj = zsshadj 282 #endif 272 283 WRITE(ctmp1,'(A36,F10.6,A24)') 'sbcice_cice: mean ssh adjusted by ', -1.0_wp * zsshadj, ' m to compensate for the' 273 284 CALL ctl_warn( ctmp1, ' initial ice+snow mass' )
Note: See TracChangeset
for help on using the changeset viewer.