Changeset 12080 for utils/tools/SIREN/src/interp_nearest.f90
- Timestamp:
- 2019-12-06T10:30:14+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/SIREN/src/interp_nearest.f90
r9598 r12080 2 2 ! NEMO system team, System and Interface for oceanic RElocable Nesting 3 3 !---------------------------------------------------------------------- 4 !5 ! MODULE: interp6 4 ! 7 5 ! DESCRIPTION: … … 23 21 !> @author 24 22 !> J.Paul 25 ! REVISION HISTORY:23 !> 26 24 !> @date September, 2014 - Initial version 27 25 !> 28 !> @note Software governed by the CeCILL licence ( ./LICENSE)26 !> @note Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 29 27 !---------------------------------------------------------------------- 30 28 MODULE interp_nearest … … 49 47 PRIVATE :: interp_nearest__1D_fill !< fill value using nearest interpolation 50 48 51 CONTAINS 49 CONTAINS 50 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51 SUBROUTINE interp_nearest_fill(dd_value, id_detect, id_rho) 52 52 !------------------------------------------------------------------- 53 53 !> @brief … … 61 61 !> @param[in] id_rho array of refinment factor 62 62 !------------------------------------------------------------------- 63 SUBROUTINE interp_nearest_fill(dd_value, id_detect, id_rho ) 64 IMPLICIT NONE 63 64 IMPLICIT NONE 65 65 66 ! Argument 66 67 REAL(dp) , DIMENSION(:,:,:,:), INTENT(INOUT) :: dd_value … … 118 119 119 120 END SUBROUTINE interp_nearest_fill 121 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 122 SUBROUTINE interp_nearest__2D(dd_value, id_detect, id_rhoi, id_rhoj) 120 123 !------------------------------------------------------------------- 121 124 !> @brief … … 131 134 !> @param[in] id_rhok refinment factor in k-direction 132 135 !------------------------------------------------------------------- 133 SUBROUTINE interp_nearest__2D( dd_value, id_detect, & 134 & id_rhoi, id_rhoj ) 135 136 IMPLICIT NONE 136 137 IMPLICIT NONE 138 137 139 ! Argument 138 140 REAL(dp) , DIMENSION(:,:), INTENT(INOUT) :: dd_value … … 173 175 174 176 END SUBROUTINE interp_nearest__2D 177 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 178 SUBROUTINE interp_nearest__1D(dd_value, id_detect, id_rhoi) 175 179 !------------------------------------------------------------------- 176 180 !> @brief … … 184 188 !> @param[in] id_rhoi refinment factor 185 189 !------------------------------------------------------------------- 186 SUBROUTINE interp_nearest__1D( dd_value, id_detect, & 187 & id_rhoi ) 188 189 IMPLICIT NONE 190 191 IMPLICIT NONE 192 190 193 ! Argument 191 194 REAL(dp) , DIMENSION(:), INTENT(INOUT) :: dd_value … … 198 201 ! loop indices 199 202 INTEGER(i4) :: ji 200 201 203 !---------------------------------------------------------------- 202 204 … … 218 220 219 221 END SUBROUTINE interp_nearest__1D 222 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 223 SUBROUTINE interp_nearest__2D_fill(dd_value, id_detect) 220 224 !------------------------------------------------------------------- 221 225 !> @brief … … 228 232 !> @param[inout] id_detect 2D array of point to be interpolated 229 233 !------------------------------------------------------------------- 230 SUBROUTINE interp_nearest__2D_fill( dd_value, id_detect ) 231 IMPLICIT NONE 234 235 IMPLICIT NONE 236 232 237 ! Argument 233 238 REAL(dp) , DIMENSION(:,:) , INTENT(INOUT) :: dd_value … … 302 307 303 308 END SUBROUTINE interp_nearest__2D_fill 309 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 310 SUBROUTINE interp_nearest__1D_fill(dd_value, id_detect) 304 311 !------------------------------------------------------------------- 305 312 !> @brief … … 312 319 !> @param[inout] id_detect 1D array of point to be interpolated 313 320 !------------------------------------------------------------------- 314 SUBROUTINE interp_nearest__1D_fill( dd_value, id_detect ) 315 IMPLICIT NONE 321 322 IMPLICIT NONE 323 316 324 ! Argument 317 325 REAL(dp) , DIMENSION(:), INTENT(INOUT) :: dd_value … … 358 366 359 367 END SUBROUTINE interp_nearest__1D_fill 368 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 360 369 END MODULE interp_nearest
Note: See TracChangeset
for help on using the changeset viewer.