[3] | 1 | MODULE obc_par |
---|
| 2 | !!============================================================================== |
---|
| 3 | !! *** MODULE obc_par *** |
---|
| 4 | !! Open Boundary Cond. : define related parameters |
---|
| 5 | !!============================================================================== |
---|
| 6 | #if defined key_obc |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! 'key_obc' : Open Boundary Condition |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! history : |
---|
| 11 | !! 8.0 01/91 (CLIPPER) Original code |
---|
| 12 | !! 9.0 06/02 (C. Talandier) modules |
---|
[353] | 13 | !! 06/04 (F. Durand) ORCA_R2_ZIND config |
---|
| 14 | !! 06/04 (F. Durand) jptobc is defined as a parameter, |
---|
| 15 | !! in order to allow time-dependent OBCs fields on input |
---|
[3] | 16 | !!---------------------------------------------------------------------- |
---|
| 17 | !! * Modules used |
---|
| 18 | USE par_oce ! ocean parameters |
---|
| 19 | |
---|
| 20 | IMPLICIT NONE |
---|
| 21 | PUBLIC |
---|
[247] | 22 | !!---------------------------------------------------------------------- |
---|
| 23 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
[1152] | 24 | !! $Id$ |
---|
[247] | 25 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
| 26 | !!---------------------------------------------------------------------- |
---|
[1876] | 27 | #if ! defined key_agrif |
---|
| 28 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .TRUE. !: Ocean Boundary Condition flag |
---|
| 29 | #else |
---|
| 30 | LOGICAL, PUBLIC :: lk_obc = .TRUE. !: Ocean Boundary Condition flag |
---|
| 31 | #endif |
---|
[3] | 32 | |
---|
| 33 | # if defined key_eel_r5 |
---|
| 34 | !!---------------------------------------------------------------------- |
---|
| 35 | !! 'key_eel_r5' : EEL R5 configuration |
---|
| 36 | !!---------------------------------------------------------------------- |
---|
| 37 | # include "obc_par_EEL_R5.h90" |
---|
| 38 | |
---|
[1647] | 39 | # elif defined key_pomme_r025 |
---|
| 40 | !!---------------------------------------------------------------------- |
---|
| 41 | !! 'key_pomme_r025' : POMME R025 configuration |
---|
| 42 | !!---------------------------------------------------------------------- |
---|
| 43 | # include "obc_par_POMME_R025.h90" |
---|
| 44 | |
---|
[3] | 45 | # else |
---|
| 46 | !!--------------------------------------------------------------------- |
---|
| 47 | !! open boundary parameter |
---|
| 48 | !!--------------------------------------------------------------------- |
---|
[2031] | 49 | INTEGER, PARAMETER :: & !: time dimension of the BCS fields on input |
---|
[353] | 50 | jptobc = 2 |
---|
[3] | 51 | !! * EAST open boundary |
---|
[2031] | 52 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 53 | lp_obc_east = .FALSE. !: to active or not the East open boundary |
---|
[2031] | 54 | INTEGER & |
---|
| 55 | #if !defined key_agrif |
---|
| 56 | , PARAMETER & |
---|
| 57 | #endif |
---|
| 58 | :: & |
---|
[32] | 59 | jpieob = jpiglo-2, & !: i-localization of the East open boundary (must be ocean U-point) |
---|
| 60 | jpjed = 2, & !: j-starting indice of the East open boundary (must be land T-point) |
---|
| 61 | jpjef = jpjglo-1, & !: j-ending indice of the East open boundary (must be land T-point) |
---|
| 62 | jpjedp1 = jpjed+1, & !: first ocean point " " |
---|
| 63 | jpjefm1 = jpjef-1 !: last ocean point " " |
---|
[3] | 64 | |
---|
| 65 | !! * WEST open boundary |
---|
[2031] | 66 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 67 | lp_obc_west = .FALSE. !: to active or not the West open boundary |
---|
[2031] | 68 | INTEGER & |
---|
| 69 | #if !defined key_agrif |
---|
| 70 | , PARAMETER & |
---|
| 71 | #endif |
---|
| 72 | :: & |
---|
[32] | 73 | jpiwob = 2, & !: i-localization of the West open boundary (must be ocean U-point) |
---|
| 74 | jpjwd = 2, & !: j-starting indice of the West open boundary (must be land T-point) |
---|
| 75 | jpjwf = jpjglo-1, & !: j-ending indice of the West open boundary (must be land T-point) |
---|
| 76 | jpjwdp1 = jpjwd+1, & !: first ocean point " " |
---|
| 77 | jpjwfm1 = jpjwf-1 !: last ocean point " " |
---|
[3] | 78 | |
---|
| 79 | !! * NORTH open boundary |
---|
[2031] | 80 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 81 | lp_obc_north = .FALSE. !: to active or not the North open boundary |
---|
[2031] | 82 | INTEGER & |
---|
| 83 | #if !defined key_agrif |
---|
| 84 | , PARAMETER & |
---|
| 85 | #endif |
---|
| 86 | :: & |
---|
[32] | 87 | jpjnob = jpjglo-2, & !: j-localization of the North open boundary (must be ocean V-point) |
---|
| 88 | jpind = 2, & !: i-starting indice of the North open boundary (must be land T-point) |
---|
| 89 | jpinf = jpiglo-1, & !: i-ending indice of the North open boundary (must be land T-point) |
---|
| 90 | jpindp1 = jpind+1, & !: first ocean point " " |
---|
| 91 | jpinfm1 = jpinf-1 !: last ocean point " " |
---|
[3] | 92 | |
---|
| 93 | !! * SOUTH open boundary |
---|
[2031] | 94 | LOGICAL, PARAMETER :: & !: |
---|
[78] | 95 | lp_obc_south = .FALSE. !: to active or not the South open boundary |
---|
[2031] | 96 | INTEGER & |
---|
| 97 | #if !defined key_agrif |
---|
| 98 | , PARAMETER & |
---|
| 99 | #endif |
---|
| 100 | :: & |
---|
[32] | 101 | jpjsob = 2, & !: j-localization of the South open boundary (must be ocean V-point) |
---|
| 102 | jpisd = 2, & !: i-starting indice of the South open boundary (must be land T-point) |
---|
| 103 | jpisf = jpiglo-1, & !: i-ending indice of the South open boundary (must be land T-point) |
---|
| 104 | jpisdp1 = jpisd+1, & !: first ocean point " " |
---|
| 105 | jpisfm1 = jpisf-1 !: last ocean point " " |
---|
[3] | 106 | |
---|
[32] | 107 | INTEGER, PARAMETER :: & !: |
---|
| 108 | jpnic = 2700 !: maximum number of isolated coastlines points |
---|
[3] | 109 | |
---|
| 110 | # endif |
---|
| 111 | |
---|
| 112 | #else |
---|
| 113 | !!---------------------------------------------------------------------- |
---|
| 114 | !! Default option : NO open boundary condition |
---|
| 115 | !!---------------------------------------------------------------------- |
---|
[32] | 116 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .FALSE. !: Ocean Boundary Condition flag |
---|
[3] | 117 | #endif |
---|
| 118 | |
---|
| 119 | !!====================================================================== |
---|
| 120 | END MODULE obc_par |
---|