Changeset 9799 for NEMO/trunk/src/OCE/LBC/lbclnk.F90
- Timestamp:
- 2018-06-14T11:54:23+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/LBC/lbclnk.F90
r9598 r9799 109 109 CONTAINS 110 110 111 # if defined key_c1d112 !!======================================================================113 !! 'key_c1d' 1D configuration114 !!======================================================================115 !! central point value replicated over the 8 surrounding points116 !!----------------------------------------------------------------------117 118 SUBROUTINE lbc_lnk_3d( pt3d, cd_type, psgn, cd_mpp, pval )119 !!---------------------------------------------------------------------120 !! *** ROUTINE lbc_lnk_3d ***121 !!122 !! ** Purpose : set lateral boundary conditions on a 3D array (C1D case)123 !!124 !! ** Method : 1D case, the central water column is set everywhere125 !!----------------------------------------------------------------------126 REAL(wp), DIMENSION(:,:,:), INTENT(inout) :: pt3d ! 3D array on which the lbc is applied127 CHARACTER(len=1) , INTENT(in ) :: cd_type ! nature of pt3d grid-points128 REAL(wp) , INTENT(in ) :: psgn ! sign used across north fold129 CHARACTER(len=3) , INTENT(in ), OPTIONAL :: cd_mpp ! MPP only (here do nothing)130 REAL(wp) , INTENT(in ), OPTIONAL :: pval ! background value (for closed boundaries)131 !132 INTEGER :: jk ! dummy loop index133 REAL(wp) :: ztab ! local scalar134 !!----------------------------------------------------------------------135 !136 DO jk = 1, SIZE( pt3d, 3 )137 ztab = pt3d(2,2,jk)138 pt3d(:,:,jk) = ztab139 END DO140 !141 END SUBROUTINE lbc_lnk_3d142 143 144 SUBROUTINE lbc_lnk_2d( pt2d, cd_type, psgn, cd_mpp, pval )145 !!---------------------------------------------------------------------146 !! *** ROUTINE lbc_lnk_2d ***147 !!148 !! ** Purpose : set lateral boundary conditions on a 2D array (non mpp case)149 !!150 !! ** Method : 1D case, the central water column is set everywhere151 !!----------------------------------------------------------------------152 REAL(wp), DIMENSION(jpi,jpj), INTENT(inout) :: pt2d ! 2D array on which the lbc is applied153 CHARACTER(len=1) , INTENT(in ) :: cd_type ! nature of pt3d grid-points154 REAL(wp) , INTENT(in ) :: psgn ! sign used across north fold155 CHARACTER(len=3) , INTENT(in ), OPTIONAL :: cd_mpp ! MPP only (here do nothing)156 REAL(wp) , INTENT(in ), OPTIONAL :: pval ! background value (for closed boundaries)157 !158 REAL(wp) :: ztab ! local scalar159 !!----------------------------------------------------------------------160 !161 ztab = pt2d(2,2)162 pt2d(:,:) = ztab163 !164 END SUBROUTINE lbc_lnk_2d165 166 #else167 111 !!====================================================================== 168 112 !! Default option 3D shared memory computing … … 224 168 # undef DIM_4d 225 169 226 #endif227 228 170 !!====================================================================== 229 171 !! identical routines in both C1D and shared memory computing
Note: See TracChangeset
for help on using the changeset viewer.