[11637] | 1 | MODULE usrdef_zgr |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE usrdef_zgr *** |
---|
| 4 | !! |
---|
| 5 | !! === STATION_ASF case === |
---|
| 6 | !! |
---|
| 7 | !! user defined : vertical coordinate system of a user configuration |
---|
| 8 | !!====================================================================== |
---|
| 9 | !! History : 4.0 ! 2019-10 (L. Brodeau) Original code |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! usr_def_zgr : user defined vertical coordinate system (required) |
---|
| 14 | !!--------------------------------------------------------------------- |
---|
| 15 | USE oce ! ocean variables |
---|
| 16 | !USE dom_oce ! ocean domain |
---|
| 17 | !USE depth_e3 ! depth <=> e3 |
---|
| 18 | USE usrdef_nam ! User defined : namelist variables |
---|
| 19 | ! |
---|
| 20 | USE in_out_manager ! I/O manager |
---|
| 21 | USE lbclnk ! ocean lateral boundary conditions (or mpp link) |
---|
| 22 | USE lib_mpp ! distributed memory computing library |
---|
| 23 | USE timing ! Timing |
---|
| 24 | |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | PRIVATE |
---|
| 27 | |
---|
| 28 | PUBLIC usr_def_zgr ! called by domzgr.F90 |
---|
| 29 | |
---|
| 30 | !!---------------------------------------------------------------------- |
---|
| 31 | !! NEMO/OCE 4.0 , NEMO Consortium (2018) |
---|
| 32 | !! $Id: usrdef_zgr.F90 10072 2018-08-28 15:21:50Z nicolasmartin $ |
---|
| 33 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
| 34 | !!---------------------------------------------------------------------- |
---|
| 35 | CONTAINS |
---|
| 36 | |
---|
| 37 | SUBROUTINE usr_def_zgr( ld_zco , ld_zps , ld_sco , ld_isfcav, & ! type of vertical coordinate |
---|
| 38 | & pdept_1d, pdepw_1d, pe3t_1d , pe3w_1d , & ! 1D reference vertical coordinate |
---|
| 39 | & pdept , pdepw , & ! 3D t & w-points depth |
---|
| 40 | & pe3t , pe3u , pe3v , pe3f , & ! vertical scale factors |
---|
| 41 | & pe3w , pe3uw , pe3vw , & ! - - - |
---|
| 42 | & k_top , k_bot ) ! top & bottom ocean level |
---|
| 43 | !!--------------------------------------------------------------------- |
---|
| 44 | !! *** ROUTINE usr_def_zgr *** |
---|
| 45 | !! |
---|
| 46 | !! ** Purpose : User defined the vertical coordinates |
---|
| 47 | !! |
---|
| 48 | !!---------------------------------------------------------------------- |
---|
| 49 | LOGICAL , INTENT( out) :: ld_zco, ld_zps, ld_sco ! vertical coordinate flags ( read in namusr_def ) |
---|
| 50 | LOGICAL , INTENT( out) :: ld_isfcav ! under iceshelf cavity flag |
---|
| 51 | REAL(wp), DIMENSION(:) , INTENT( out) :: pdept_1d, pdepw_1d ! 1D grid-point depth [m] |
---|
| 52 | REAL(wp), DIMENSION(:) , INTENT( out) :: pe3t_1d , pe3w_1d ! 1D grid-point depth [m] |
---|
| 53 | REAL(wp), DIMENSION(:,:,:), INTENT( out) :: pdept, pdepw ! grid-point depth [m] |
---|
| 54 | REAL(wp), DIMENSION(:,:,:), INTENT( out) :: pe3t , pe3u , pe3v , pe3f ! vertical scale factors [m] |
---|
| 55 | REAL(wp), DIMENSION(:,:,:), INTENT( out) :: pe3w , pe3uw, pe3vw ! i-scale factors |
---|
| 56 | INTEGER , DIMENSION(:,:) , INTENT( out) :: k_top, k_bot ! first & last ocean level |
---|
| 57 | !!---------------------------------------------------------------------- |
---|
| 58 | ! |
---|
| 59 | IF(lwp) WRITE(numout,*) |
---|
[12038] | 60 | IF(lwp) WRITE(numout,*) 'usr_def_zgr : STATION_ASF configuration, setting first level properties.' |
---|
[11637] | 61 | IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' |
---|
| 62 | ! |
---|
| 63 | |
---|
| 64 | ld_zco = .TRUE. ! z-coordinate without ocean cavities |
---|
| 65 | ld_zps = .FALSE. |
---|
| 66 | ld_sco = .FALSE. |
---|
| 67 | ld_isfcav = .FALSE. |
---|
| 68 | |
---|
| 69 | pdept_1d(1) = rn_dept1 ! depth (m) at which the SST is taken/measured == depth of first T point! |
---|
| 70 | pdepw_1d(1) = 0._wp |
---|
| 71 | pe3t_1d(1) = 2._wp*rn_dept1 |
---|
| 72 | pe3w_1d(1) = rn_dept1 ! LB??? |
---|
| 73 | |
---|
| 74 | pdept(:,:,:) = rn_dept1 |
---|
| 75 | pdepw(:,:,:) = 0._wp |
---|
| 76 | pe3t(:,:,:) = 2._wp*rn_dept1 |
---|
| 77 | pe3u(:,:,:) = 2._wp*rn_dept1 |
---|
| 78 | pe3v(:,:,:) = 2._wp*rn_dept1 |
---|
| 79 | pe3f(:,:,:) = 2._wp*rn_dept1 |
---|
| 80 | pe3w(:,:,:) = rn_dept1 ! LB??? |
---|
| 81 | pe3uw(:,:,:) = rn_dept1 ! LB??? |
---|
| 82 | pe3vw(:,:,:) = rn_dept1 ! LB??? |
---|
| 83 | k_top = 1 |
---|
| 84 | k_bot = 1 |
---|
| 85 | ! |
---|
| 86 | END SUBROUTINE usr_def_zgr |
---|
| 87 | !!====================================================================== |
---|
| 88 | END MODULE usrdef_zgr |
---|