- Timestamp:
- 2020-04-11T15:38:38+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/SBC/sbcrnf.F90
r12586 r12738 159 159 & iom_varid( numror, 'rnf_b', ldstop = .FALSE. ) > 0 ) THEN 160 160 IF(lwp) WRITE(numout,*) ' nit000-1 runoff forcing fields red in the restart file', lrxios 161 CALL iom_get( numror, jpdom_auto glo, 'rnf_b', rnf_b, ldxios = lrxios ) ! before runoff162 CALL iom_get( numror, jpdom_auto glo, 'rnf_hc_b', rnf_tsc_b(:,:,jp_tem), ldxios = lrxios ) ! before heat content of runoff163 CALL iom_get( numror, jpdom_auto glo, 'rnf_sc_b', rnf_tsc_b(:,:,jp_sal), ldxios = lrxios ) ! before salinity content of runoff161 CALL iom_get( numror, jpdom_auto, 'rnf_b', rnf_b, ldxios = lrxios ) ! before runoff 162 CALL iom_get( numror, jpdom_auto, 'rnf_hc_b', rnf_tsc_b(:,:,jp_tem), ldxios = lrxios ) ! before heat content of runoff 163 CALL iom_get( numror, jpdom_auto, 'rnf_sc_b', rnf_tsc_b(:,:,jp_sal), ldxios = lrxios ) ! before salinity content of runoff 164 164 ELSE !* no restart: set from nit000 values 165 165 IF(lwp) WRITE(numout,*) ' nit000-1 runoff forcing fields set to nit000' … … 355 355 IF( sn_dep_rnf%cltype == 'monthly' ) WRITE(rn_dep_file, '(a,"m",i2)' ) TRIM( rn_dep_file ), nmonth ! add month 356 356 ENDIF 357 CALL iom_open ( rn_dep_file, inum ) ! open file358 CALL iom_get ( inum, jpdom_ data, sn_dep_rnf%clvar, h_rnf ) ! read the river mouth array359 CALL iom_close( inum ) ! close file357 CALL iom_open ( rn_dep_file, inum ) ! open file 358 CALL iom_get ( inum, jpdom_global, sn_dep_rnf%clvar, h_rnf ) ! read the river mouth array 359 CALL iom_close( inum ) ! close file 360 360 ! 361 361 nk_rnf(:,:) = 0 ! set the number of level over which river runoffs are applied … … 390 390 CALL iom_open( TRIM( sn_rnf%clname ), inum ) ! open runoff file 391 391 nbrec = iom_getszuld( inum ) 392 zrnfcl(:,:,1) = 0._wp ! init the max to 0. in 1392 zrnfcl(:,:,1) = 0._wp ! init the max to 0. in 1 393 393 DO jm = 1, nbrec 394 CALL iom_get( inum, jpdom_ data, TRIM( sn_rnf%clvar ), zrnfcl(:,:,2), jm ) ! read the value in 2395 zrnfcl(:,:,1) = MAXVAL( zrnfcl(:,:,:), DIM=3 ) ! store the maximum value in time in 1394 CALL iom_get( inum, jpdom_global, TRIM( sn_rnf%clvar ), zrnfcl(:,:,2), jm ) ! read the value in 2 395 zrnfcl(:,:,1) = MAXVAL( zrnfcl(:,:,:), DIM=3 ) ! store the maximum value in time in 1 396 396 END DO 397 397 CALL iom_close( inum ) … … 522 522 ! 523 523 ! horizontal mask (read in NetCDF file) 524 CALL iom_open ( cl_rnfile, inum ) ! open file525 CALL iom_get ( inum, jpdom_ data, sn_cnf%clvar, rnfmsk ) ! read the river mouth array526 CALL iom_close( inum ) ! close file524 CALL iom_open ( cl_rnfile, inum ) ! open file 525 CALL iom_get ( inum, jpdom_global, sn_cnf%clvar, rnfmsk ) ! read the river mouth array 526 CALL iom_close( inum ) ! close file 527 527 ! 528 528 IF( l_clo_rnf ) CALL clo_rnf( rnfmsk ) ! closed sea inflow set as river mouth
Note: See TracChangeset
for help on using the changeset viewer.