[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 |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | !! * Modules used |
---|
| 15 | USE par_oce ! ocean parameters |
---|
| 16 | |
---|
| 17 | IMPLICIT NONE |
---|
| 18 | PUBLIC |
---|
| 19 | |
---|
| 20 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .TRUE. ! Ocean Boundary Condition flag |
---|
| 21 | |
---|
| 22 | # if defined key_eel_r5 |
---|
| 23 | !!---------------------------------------------------------------------- |
---|
| 24 | !! 'key_eel_r5' : EEL R5 configuration |
---|
| 25 | !!---------------------------------------------------------------------- |
---|
| 26 | # include "obc_par_EEL_R5.h90" |
---|
| 27 | |
---|
| 28 | # else |
---|
| 29 | !!--------------------------------------------------------------------- |
---|
| 30 | !! open boundary parameter |
---|
| 31 | !!--------------------------------------------------------------------- |
---|
| 32 | !! * EAST open boundary |
---|
| 33 | LOGICAL, PARAMETER :: & |
---|
| 34 | lpeastobc = .FALSE. ! to active or not the East open boundary |
---|
| 35 | INTEGER, PARAMETER :: & |
---|
| 36 | jpieob = jpiglo-2, & ! i-localization of the East open boundary (must be ocean U-point) |
---|
| 37 | jpjed = 2, & ! j-starting indice of the East open boundary (must be land T-point) |
---|
| 38 | jpjef = jpjglo-1, & ! j-ending indice of the East open boundary (must be land T-point) |
---|
| 39 | jpjedp1 = jpjed+1, & ! first ocean point " " |
---|
| 40 | jpjefm1 = jpjef-1 ! last ocean point " " |
---|
| 41 | |
---|
| 42 | !! * WEST open boundary |
---|
| 43 | LOGICAL, PARAMETER :: & |
---|
| 44 | lpwestobc = .FALSE. ! to active or not the West open boundary |
---|
| 45 | INTEGER, PARAMETER :: & |
---|
| 46 | jpiwob = 2, & ! i-localization of the West open boundary (must be ocean U-point) |
---|
| 47 | jpjwd = 2, & ! j-starting indice of the West open boundary (must be land T-point) |
---|
| 48 | jpjwf = jpjglo-1, & ! j-ending indice of the West open boundary (must be land T-point) |
---|
| 49 | jpjwdp1 = jpjwd+1, & ! first ocean point " " |
---|
| 50 | jpjwfm1 = jpjwf-1 ! last ocean point " " |
---|
| 51 | |
---|
| 52 | !! * NORTH open boundary |
---|
| 53 | LOGICAL, PARAMETER :: & |
---|
| 54 | lpnorthobc = .FALSE. ! to active or not the North open boundary |
---|
| 55 | INTEGER, PARAMETER :: & |
---|
| 56 | jpjnob = jpjglo-2, & ! j-localization of the North open boundary (must be ocean V-point) |
---|
| 57 | jpind = 2, & ! i-starting indice of the North open boundary (must be land T-point) |
---|
| 58 | jpinf = jpiglo-1, & ! i-ending indice of the North open boundary (must be land T-point) |
---|
| 59 | jpindp1 = jpind+1, & ! first ocean point " " |
---|
| 60 | jpinfm1 = jpinf-1 ! last ocean point " " |
---|
| 61 | |
---|
| 62 | !! * SOUTH open boundary |
---|
| 63 | LOGICAL, PARAMETER :: & |
---|
| 64 | lpsouthobc = .FALSE. ! to active or not the South open boundary |
---|
| 65 | INTEGER, PARAMETER :: & |
---|
| 66 | jpjsob = 2, & ! j-localization of the South open boundary (must be ocean V-point) |
---|
| 67 | jpisd = 2, & ! i-starting indice of the South open boundary (must be land T-point) |
---|
| 68 | jpisf = jpiglo-1, & ! i-ending indice of the South open boundary (must be land T-point) |
---|
| 69 | jpisdp1 = jpisd+1, & ! first ocean point " " |
---|
| 70 | jpisfm1 = jpisf-1 ! last ocean point " " |
---|
| 71 | |
---|
| 72 | INTEGER, PARAMETER :: & |
---|
| 73 | jpnic = 2700 ! maximum number of isolated coastlines points |
---|
| 74 | |
---|
| 75 | # endif |
---|
| 76 | |
---|
| 77 | #else |
---|
| 78 | !!---------------------------------------------------------------------- |
---|
| 79 | !! Default option : NO open boundary condition |
---|
| 80 | !!---------------------------------------------------------------------- |
---|
| 81 | LOGICAL, PUBLIC, PARAMETER :: lk_obc = .FALSE. ! Ocean Boundary Condition flag |
---|
| 82 | #endif |
---|
| 83 | |
---|
| 84 | !!====================================================================== |
---|
| 85 | END MODULE obc_par |
---|