[4213] | 1 | !---------------------------------------------------------------------- |
---|
| 2 | ! NEMO system team, System and Interface for oceanic RElocable Nesting |
---|
| 3 | !---------------------------------------------------------------------- |
---|
| 4 | ! |
---|
| 5 | ! MODULE: global |
---|
| 6 | ! |
---|
| 7 | ! DESCRIPTION: |
---|
[5036] | 8 | !> @brief This module defines global variables and parameters. |
---|
[4213] | 9 | ! |
---|
| 10 | !> @author |
---|
| 11 | !> J.paul |
---|
| 12 | ! REVISION HISTORY: |
---|
[5036] | 13 | !> @date November, 2013 - Initial Version |
---|
[4213] | 14 | ! |
---|
| 15 | !> @note Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 16 | !---------------------------------------------------------------------- |
---|
| 17 | MODULE global |
---|
| 18 | USE kind ! F90 kind parameter |
---|
| 19 | USE netcdf |
---|
| 20 | |
---|
| 21 | IMPLICIT NONE |
---|
| 22 | |
---|
[5036] | 23 | PUBLIC :: dp_fill !< default fill value |
---|
| 24 | PUBLIC :: ip_nsep !< number of separator listed |
---|
| 25 | PUBLIC :: ip_ncom !< number of comment character listed |
---|
| 26 | PUBLIC :: cp_sep !< list of separator |
---|
| 27 | PUBLIC :: cp_com !< list of comment character |
---|
[4213] | 28 | |
---|
[5036] | 29 | PUBLIC :: ip_npoint !< number of point on ARAKAWA C-grid |
---|
| 30 | PUBLIC :: jp_T !< indice for T-point on ARAKAWA C-grid |
---|
| 31 | PUBLIC :: jp_U !< indice for U-point on ARAKAWA C-grid |
---|
| 32 | PUBLIC :: jp_V !< indice for V-point on ARAKAWA C-grid |
---|
| 33 | PUBLIC :: jp_F !< indice for F-point on ARAKAWA C-grid |
---|
| 34 | PUBLIC :: cp_grid_point !< list of grid_point character |
---|
[4213] | 35 | |
---|
[5036] | 36 | PUBLIC :: ip_maxdim !< maximum number of dimension to be used |
---|
| 37 | PUBLIC :: jp_I !< indice for I-direction |
---|
| 38 | PUBLIC :: jp_J !< indice for J-direction |
---|
| 39 | PUBLIC :: jp_K !< indice for K-direction |
---|
| 40 | PUBLIC :: jp_L !< indice for L-direction |
---|
| 41 | PUBLIC :: cp_dimorder !< dimension order |
---|
[4213] | 42 | |
---|
[5036] | 43 | PUBLIC :: ip_maxvar !< maximum number of variable |
---|
| 44 | PUBLIC :: ip_maxmtx !< matrix variable maximum dimension |
---|
| 45 | PUBLIC :: ip_maxseg !< maximum number of segment |
---|
| 46 | PUBLIC :: ip_ghost !< number of ghost cell |
---|
[4213] | 47 | |
---|
[5036] | 48 | PUBLIC :: ip_ninterp !< number of available interpolation method |
---|
| 49 | PUBLIC :: cp_interp_list !< list of interpolation name |
---|
[4213] | 50 | |
---|
[5036] | 51 | PUBLIC :: ip_nextrap !< number of available extrapolation method |
---|
| 52 | PUBLIC :: cp_extrap_list !< list of extrapolation name |
---|
[4213] | 53 | |
---|
[5036] | 54 | PUBLIC :: ip_nfilter !< number of available filter |
---|
| 55 | PUBLIC :: cp_filter_list !< list of filter name |
---|
[4213] | 56 | |
---|
[5036] | 57 | PUBLIC :: ip_ncard !< number of cardinal point |
---|
| 58 | PUBLIC :: cp_card !< array of cardinal point |
---|
| 59 | PUBLIC :: jp_north !< indice for north boundary |
---|
| 60 | PUBLIC :: jp_south !< indice for south boundary |
---|
| 61 | PUBLIC :: jp_east !< indice for east boundary |
---|
| 62 | PUBLIC :: jp_west !< indice for west boundary |
---|
| 63 | |
---|
[4213] | 64 | ! NOTE_avoid_public_variables_if_possible |
---|
| 65 | |
---|
[5036] | 66 | INTEGER(i4) , PARAMETER :: ip_maxvar =200 !< maximum number of variable |
---|
| 67 | INTEGER(i4) , PARAMETER :: ip_maxmtx =100 !< matrix variable maximum dimension (cf create_bathy) |
---|
| 68 | INTEGER(i4) , PARAMETER :: ip_maxseg =50 !< maximum number of segment for each boundary |
---|
[4213] | 69 | |
---|
[5036] | 70 | INTEGER(i4) , PARAMETER :: ip_nsep=2 !< number of separator listed |
---|
| 71 | CHARACTER(1) , DIMENSION(ip_nsep) , PARAMETER :: cp_sep = (/'.','_'/) !< list of separator |
---|
[4213] | 72 | |
---|
[5036] | 73 | INTEGER(i4) , PARAMETER :: ip_ncom=2 !< number of comment character listed |
---|
| 74 | CHARACTER(1) , DIMENSION(ip_ncom) , PARAMETER :: cp_com = (/'#','!'/) !< list of comment character |
---|
[4213] | 75 | |
---|
[5036] | 76 | INTEGER(i4) , PARAMETER :: ip_ghost=1 !< number of ghost cell |
---|
[4213] | 77 | |
---|
[5036] | 78 | INTEGER(i4) , PARAMETER :: ip_ninterp=3 |
---|
| 79 | CHARACTER(LEN=lc), DIMENSION(ip_ninterp), PARAMETER :: cp_interp_list = & |
---|
[4213] | 80 | & (/ 'nearest', & |
---|
| 81 | & 'cubic ', & |
---|
| 82 | & 'linear ' /) |
---|
| 83 | |
---|
[5036] | 84 | INTEGER(i4) , PARAMETER :: ip_nextrap=2 |
---|
| 85 | CHARACTER(LEN=lc), DIMENSION(ip_nextrap), PARAMETER :: cp_extrap_list = & |
---|
[4213] | 86 | & (/ 'dist_weight', & |
---|
| 87 | & 'min_error ' /) |
---|
| 88 | |
---|
[5036] | 89 | INTEGER(i4) , PARAMETER :: ip_nfilter=5 |
---|
| 90 | CHARACTER(LEN=lc), DIMENSION(ip_nfilter), PARAMETER :: cp_filter_list = & |
---|
[4213] | 91 | & (/ 'butterworth', & |
---|
| 92 | & 'blackman ', & |
---|
| 93 | & 'hamming ', & |
---|
| 94 | & 'hann ', & |
---|
| 95 | & 'gauss '/) |
---|
| 96 | |
---|
[5036] | 97 | REAL(dp) , PARAMETER :: dp_fill=NF90_FILL_DOUBLE !< default fill value |
---|
[4213] | 98 | |
---|
[5036] | 99 | INTEGER(i4) , PARAMETER :: ip_npoint=4 |
---|
[4213] | 100 | INTEGER(i4) , PARAMETER :: jp_T=1 |
---|
| 101 | INTEGER(i4) , PARAMETER :: jp_U=2 |
---|
| 102 | INTEGER(i4) , PARAMETER :: jp_V=3 |
---|
| 103 | INTEGER(i4) , PARAMETER :: jp_F=4 |
---|
[5036] | 104 | CHARACTER(LEN=1), DIMENSION(ip_npoint) , PARAMETER :: cp_grid_point = & |
---|
| 105 | & (/ 'T', 'U', 'V', 'F' /) |
---|
[4213] | 106 | |
---|
[5036] | 107 | |
---|
| 108 | INTEGER(i4) , PARAMETER :: ip_maxdim=4 |
---|
[4213] | 109 | INTEGER(i4) , PARAMETER :: jp_I=1 |
---|
| 110 | INTEGER(i4) , PARAMETER :: jp_J=2 |
---|
| 111 | INTEGER(i4) , PARAMETER :: jp_K=3 |
---|
| 112 | INTEGER(i4) , PARAMETER :: jp_L=4 |
---|
[5036] | 113 | CHARACTER(LEN=ip_maxdim) , PARAMETER :: cp_dimorder = 'xyzt' !< dimension order to output |
---|
[4213] | 114 | |
---|
[5036] | 115 | INTEGER(i4), PARAMETER :: ip_ncard=4 |
---|
| 116 | CHARACTER(LEN=lc), DIMENSION(ip_ncard), PARAMETER :: cp_card = & |
---|
| 117 | & (/ 'north', & |
---|
| 118 | & 'south', & |
---|
| 119 | & 'east ', & |
---|
| 120 | & 'west ' /) |
---|
| 121 | |
---|
| 122 | INTEGER(i4), PARAMETER :: jp_north=1 |
---|
| 123 | INTEGER(i4), PARAMETER :: jp_south=2 |
---|
| 124 | INTEGER(i4), PARAMETER :: jp_east =3 |
---|
| 125 | INTEGER(i4), PARAMETER :: jp_west =4 |
---|
| 126 | |
---|
| 127 | |
---|
| 128 | |
---|
[4213] | 129 | END MODULE global |
---|
| 130 | |
---|