par_oce.F90 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. MODULE par_oce
  2. !!======================================================================
  3. !! *** par_oce ***
  4. !! Ocean : set the ocean parameters
  5. !!======================================================================
  6. !! History : OPA ! 1991 (Imbard, Levy, Madec) Original code
  7. !! NEMO 1.0 ! 2004-01 (G. Madec, J.-M. Molines) Free form and module
  8. !! 3.3 ! 2010-09 (C. Ethe) TRA-TRC merge: add jpts, jp_tem & jp_sal
  9. !!----------------------------------------------------------------------
  10. USE par_kind ! kind parameters
  11. IMPLICIT NONE
  12. PUBLIC
  13. !!----------------------------------------------------------------------
  14. !! Domain decomposition
  15. !!----------------------------------------------------------------------
  16. !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj
  17. INTEGER, PUBLIC :: jpni !: number of processors following i
  18. INTEGER, PUBLIC :: jpnj !: number of processors following j
  19. INTEGER, PUBLIC :: jpnij !: nb of local domain = nb of processors ( <= jpni x jpnj )
  20. INTEGER, PUBLIC, PARAMETER :: jpr2di = 0 !: number of columns for extra outer halo
  21. INTEGER, PUBLIC, PARAMETER :: jpr2dj = 0 !: number of rows for extra outer halo
  22. INTEGER, PUBLIC, PARAMETER :: jpreci = 1 !: number of columns for overlap
  23. INTEGER, PUBLIC, PARAMETER :: jprecj = 1 !: number of rows for overlap
  24. !!----------------------------------------------------------------------
  25. !! namcfg namelist parameters
  26. !!----------------------------------------------------------------------
  27. CHARACTER(lc) :: cp_cfg !: name of the configuration
  28. CHARACTER(lc) :: cp_cfz !: name of the zoom of configuration
  29. INTEGER :: jp_cfg !: resolution of the configuration
  30. ! data size !!! * size of all input files *
  31. INTEGER :: jpidta !: 1st lateral dimension ( >= jpi )
  32. INTEGER :: jpjdta !: 2nd " " ( >= jpj )
  33. INTEGER :: jpkdta !: number of levels ( >= jpk )
  34. ! global or zoom domain size !!! * computational domain *
  35. INTEGER :: jpiglo !: 1st dimension of global domain --> i
  36. INTEGER :: jpjglo !: 2nd - - --> j
  37. ! zoom starting position
  38. INTEGER :: jpizoom !: left bottom (i,j) indices of the zoom
  39. INTEGER :: jpjzoom !: in data domain indices
  40. ! Domain characteristics
  41. INTEGER :: jperio !: lateral cond. type (between 0 and 6)
  42. ! ! = 0 closed ; = 1 cyclic East-West
  43. ! ! = 2 equatorial symmetric ; = 3 North fold T-point pivot
  44. ! ! = 4 cyclic East-West AND North fold T-point pivot
  45. ! ! = 5 North fold F-point pivot
  46. ! ! = 6 cyclic East-West AND North fold F-point pivot
  47. ! Input file read offset
  48. LOGICAL :: ln_use_jattr !: Use file global attribute: open_ocean_jstart to determine start j-row
  49. ! when reading input from those netcdf files that have the
  50. ! attribute defined. This is designed to enable input files associated
  51. ! with the extended grids used in the under ice shelf configurations to
  52. ! be used without redundant rows when the ice shelves are not in use.
  53. !! Values set to pp_not_used indicates that this parameter is not used in THIS config.
  54. !! Values set to pp_to_be_computed indicates that variables will be computed in domzgr
  55. REAL(wp) :: pp_not_used = 999999._wp !: vertical grid parameter
  56. REAL(wp) :: pp_to_be_computed = 999999._wp !: - - -
  57. !!---------------------------------------------------------------------
  58. !! Active tracer parameters
  59. !!---------------------------------------------------------------------
  60. INTEGER, PUBLIC, PARAMETER :: jpts = 2 !: Number of active tracers (=2, i.e. T & S )
  61. INTEGER, PUBLIC, PARAMETER :: jp_tem = 1 !: indice for temperature
  62. INTEGER, PUBLIC, PARAMETER :: jp_sal = 2 !: indice for salinity
  63. !!---------------------------------------------------------------------
  64. !! Domain Matrix size (if AGRIF, they are not all parameters)
  65. !!---------------------------------------------------------------------
  66. #if defined key_agrif
  67. INTEGER, PUBLIC, PARAMETER :: nbghostcells = 1 !: number of ghost cells
  68. INTEGER, PUBLIC :: nbcellsx = jpiglo - 2 - 2*nbghostcells !: number of cells in i-direction
  69. INTEGER, PUBLIC :: nbcellsy = jpjglo - 2 - 2*nbghostcells !: number of cells in j-direction
  70. !
  71. #endif
  72. INTEGER, PUBLIC :: jpi ! = ( jpiglo-2*jpreci + (jpni-1) ) / jpni + 2*jpreci !: first dimension
  73. INTEGER, PUBLIC :: jpj ! = ( jpjglo-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj !: second dimension
  74. INTEGER, PUBLIC :: jpk ! = jpkdta
  75. INTEGER, PUBLIC :: jpim1 ! = jpi-1 !: inner domain indices
  76. INTEGER, PUBLIC :: jpjm1 ! = jpj-1 !: - - -
  77. INTEGER, PUBLIC :: jpkm1 ! = jpk-1 !: - - -
  78. INTEGER, PUBLIC :: jpij ! = jpi*jpj !: jpi x jpj
  79. !!---------------------------------------------------------------------
  80. !! Optimization/control flags
  81. !!---------------------------------------------------------------------
  82. #if defined key_esopa
  83. LOGICAL, PUBLIC, PARAMETER :: lk_esopa = .TRUE. !: flag to activate the all options
  84. #else
  85. LOGICAL, PUBLIC, PARAMETER :: lk_esopa = .FALSE. !: flag to activate the all options
  86. #endif
  87. !!----------------------------------------------------------------------
  88. !! NEMO/OPA 3.3 , NEMO Consortium (2010)
  89. !! $Id: par_oce.F90 4990 2014-12-15 16:42:49Z timgraham $
  90. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  91. !!======================================================================
  92. END MODULE par_oce