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