[2496] | 1 | MODULE nemogcm |
---|
[2442] | 2 | !!====================================================================== |
---|
[2496] | 3 | !! *** MODULE nemogcm *** |
---|
| 4 | !! Ocean system : NEMO GCM (ocean dynamics, on-line tracers, biochemistry and sea-ice) |
---|
[2442] | 5 | !!====================================================================== |
---|
[9598] | 6 | !! History : 3.6 ! 2015-12 (A. Ryan) Original code (from OCE/) |
---|
[7646] | 7 | !! 4.0 ! 2016-11 (G. Madec, S. Flavoni) domain configuration / user defined interface |
---|
[1593] | 8 | !!---------------------------------------------------------------------- |
---|
[3] | 9 | |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
[7646] | 11 | !! nemo_gcm : solve ocean dynamics, tracer, biogeochemistry and/or sea-ice |
---|
| 12 | !! nemo_init : initialization of the NEMO system |
---|
| 13 | !! nemo_ctl : initialisation of the contol print |
---|
| 14 | !! nemo_closefile: close remaining open files |
---|
| 15 | !! nemo_alloc : dynamical allocation |
---|
[3] | 16 | !!---------------------------------------------------------------------- |
---|
[7646] | 17 | USE step_oce ! module used in the ocean time stepping module (step.F90) |
---|
| 18 | USE domain ! domain initialization (dom_init & dom_cfg routines) |
---|
| 19 | USE istate ! initial state setting (istate_init routine) |
---|
| 20 | USE phycst ! physical constant (par_cst routine) |
---|
| 21 | USE step ! NEMO time-stepping (stp routine) |
---|
| 22 | USE cpl_oasis3 ! OASIS3 coupling |
---|
| 23 | USE diaobs ! Observation diagnostics (dia_obs_init routine) |
---|
[3625] | 24 | #if defined key_nemocice_decomp |
---|
| 25 | USE ice_domain_size, only: nx_global, ny_global |
---|
| 26 | #endif |
---|
[7646] | 27 | ! ! Stand Alone Observation operator modules |
---|
| 28 | USE sao_data |
---|
| 29 | USE sao_intp |
---|
| 30 | ! |
---|
[13286] | 31 | USE prtctl ! Print control |
---|
[12641] | 32 | USE in_out_manager ! I/O manager |
---|
[7646] | 33 | USE lib_mpp ! distributed memory computing |
---|
| 34 | USE mppini ! shared/distributed memory setting (mpp_init routine) |
---|
| 35 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
[14239] | 36 | #if defined key_xios |
---|
[7646] | 37 | USE xios ! xIOserver |
---|
[1359] | 38 | #endif |
---|
[13286] | 39 | USE halo_mng |
---|
[268] | 40 | |
---|
[2715] | 41 | IMPLICIT NONE |
---|
[3] | 42 | PRIVATE |
---|
| 43 | |
---|
[4829] | 44 | PUBLIC nemo_gcm ! called by model.F90 |
---|
[2496] | 45 | PUBLIC nemo_init ! needed by AGRIF |
---|
[3764] | 46 | PUBLIC nemo_alloc ! needed by TAM |
---|
[467] | 47 | |
---|
[2498] | 48 | CHARACTER(lc) :: cform_aaa="( /, 'AAAAAAAA', / ) " ! flag for output listing |
---|
[1593] | 49 | |
---|
[3] | 50 | !!---------------------------------------------------------------------- |
---|
[9598] | 51 | !! NEMO/OCE 4.0 , NEMO Consortium (2018) |
---|
[2392] | 52 | !! $Id$ |
---|
[10068] | 53 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
[3] | 54 | !!---------------------------------------------------------------------- |
---|
| 55 | CONTAINS |
---|
| 56 | |
---|
[4120] | 57 | SUBROUTINE nemo_gcm |
---|
| 58 | !!---------------------------------------------------------------------- |
---|
| 59 | !! *** SUBROUTINE offline_obs_oper *** |
---|
| 60 | !! |
---|
| 61 | !! ** Purpose : To use NEMO components to interpolate model fields |
---|
| 62 | !! to observation space. |
---|
| 63 | !! |
---|
| 64 | !! ** Method : 1. Initialise NEMO |
---|
| 65 | !! 2. Initialise offline obs_oper |
---|
| 66 | !! 3. Cycle through match ups |
---|
| 67 | !! 4. Write results to file |
---|
| 68 | !!---------------------------------------------------------------------- |
---|
[7646] | 69 | ! |
---|
| 70 | CALL nemo_init ! Initialise NEMO |
---|
| 71 | ! |
---|
| 72 | CALL sao_data_init ! Initialise Stand Alone Observation operator data |
---|
| 73 | ! |
---|
| 74 | CALL dia_obs_init ! Initialise obs_operator |
---|
| 75 | ! |
---|
| 76 | CALL sao_interp ! Interpolate to observation space |
---|
| 77 | ! |
---|
| 78 | CALL dia_obs_wri ! Pipe to output files |
---|
| 79 | ! |
---|
| 80 | CALL dia_obs_dealloc ! Reset the obs_oper between |
---|
| 81 | ! |
---|
| 82 | IF(lk_mpp) CALL mppstop ! Safely stop MPI (end mpp communications) |
---|
| 83 | ! |
---|
[4120] | 84 | END SUBROUTINE nemo_gcm |
---|
[389] | 85 | |
---|
[4829] | 86 | |
---|
[2496] | 87 | SUBROUTINE nemo_init |
---|
[389] | 88 | !!---------------------------------------------------------------------- |
---|
[2496] | 89 | !! *** ROUTINE nemo_init *** |
---|
[389] | 90 | !! |
---|
[2496] | 91 | !! ** Purpose : initialization of the NEMO GCM |
---|
[389] | 92 | !!---------------------------------------------------------------------- |
---|
[7646] | 93 | INTEGER :: ios, ilocal_comm ! local integer |
---|
[5600] | 94 | ! |
---|
[13286] | 95 | NAMELIST/namctl/ sn_cfctl, ln_timing, ln_diacfl, & |
---|
| 96 | & nn_isplt, nn_jsplt, nn_ictls, nn_ictle, nn_jctls, nn_jctle |
---|
[9436] | 97 | NAMELIST/namcfg/ ln_read_cfg, cn_domcfg, ln_closea, ln_write_cfg, cn_domcfg_out, ln_use_jattr |
---|
[3] | 98 | !!---------------------------------------------------------------------- |
---|
[1593] | 99 | ! |
---|
[5600] | 100 | cxios_context = 'nemo' |
---|
[13286] | 101 | nn_hls = 1 |
---|
[2496] | 102 | ! |
---|
[11536] | 103 | ! !-------------------------------------------------! |
---|
| 104 | ! ! set communicator & select the local rank ! |
---|
| 105 | ! ! must be done as soon as possible to get narea ! |
---|
| 106 | ! !-------------------------------------------------! |
---|
[1593] | 107 | ! |
---|
[14239] | 108 | #if defined key_xios |
---|
[2200] | 109 | IF( Agrif_Root() ) THEN |
---|
[5600] | 110 | IF( lk_oasis ) THEN |
---|
[11536] | 111 | CALL cpl_init( "oceanx", ilocal_comm ) ! nemo local communicator given by oasis |
---|
| 112 | CALL xios_initialize( "not used" , local_comm =ilocal_comm ) ! send nemo communicator to xios |
---|
[5600] | 113 | ELSE |
---|
[11536] | 114 | CALL xios_initialize( "for_xios_mpi_id", return_comm=ilocal_comm ) ! nemo local communicator given by xios |
---|
[5600] | 115 | ENDIF |
---|
[2200] | 116 | ENDIF |
---|
[11536] | 117 | CALL mpp_start( ilocal_comm ) |
---|
[532] | 118 | #else |
---|
[5600] | 119 | IF( lk_oasis ) THEN |
---|
| 120 | IF( Agrif_Root() ) THEN |
---|
[11536] | 121 | CALL cpl_init( "oceanx", ilocal_comm ) ! nemo local communicator given by oasis |
---|
[5600] | 122 | ENDIF |
---|
[11536] | 123 | CALL mpp_start( ilocal_comm ) |
---|
[5600] | 124 | ELSE |
---|
[11536] | 125 | CALL mpp_start( ) |
---|
[2236] | 126 | ENDIF |
---|
[532] | 127 | #endif |
---|
[11536] | 128 | ! |
---|
| 129 | narea = mpprank + 1 ! mpprank: the rank of proc (0 --> mppsize -1 ) |
---|
| 130 | lwm = (narea == 1) ! control of output namelists |
---|
| 131 | ! |
---|
| 132 | ! !---------------------------------------------------------------! |
---|
| 133 | ! ! Open output files, reference and configuration namelist files ! |
---|
| 134 | ! !---------------------------------------------------------------! |
---|
| 135 | ! |
---|
| 136 | ! open ocean.output as soon as possible to get all output prints (including errors messages) |
---|
| 137 | IF( lwm ) CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) |
---|
| 138 | ! open reference and configuration namelist files |
---|
[12377] | 139 | CALL load_nml( numnam_ref, 'namelist_ref', -1, lwm ) |
---|
| 140 | CALL load_nml( numnam_cfg, 'namelist_cfg', -1, lwm ) |
---|
[11536] | 141 | IF( lwm ) CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) |
---|
| 142 | ! open /dev/null file to be able to supress output write easily |
---|
[12641] | 143 | IF( Agrif_Root() ) THEN |
---|
[11536] | 144 | CALL ctl_opn( numnul, '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) |
---|
[12641] | 145 | #ifdef key_agrif |
---|
| 146 | ELSE |
---|
| 147 | numnul = Agrif_Parent(numnul) |
---|
| 148 | #endif |
---|
| 149 | ENDIF |
---|
[11536] | 150 | ! |
---|
| 151 | ! !--------------------! |
---|
[12377] | 152 | ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp |
---|
[11536] | 153 | ! !--------------------! |
---|
| 154 | ! |
---|
| 155 | READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) |
---|
| 156 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist' ) |
---|
| 157 | READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) |
---|
| 158 | 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist' ) |
---|
| 159 | ! |
---|
[12377] | 160 | ! finalize the definition of namctl variables |
---|
[12933] | 161 | IF( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax .OR. MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) & |
---|
| 162 | & CALL nemo_set_cfctl( sn_cfctl, .FALSE. ) |
---|
[11536] | 163 | ! |
---|
[12377] | 164 | lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print |
---|
| 165 | ! |
---|
[11536] | 166 | IF(lwp) THEN ! open listing units |
---|
[1593] | 167 | ! |
---|
[11536] | 168 | IF( .NOT. lwm ) & ! alreay opened for narea == 1 |
---|
| 169 | & CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE., narea ) |
---|
[1593] | 170 | ! |
---|
[1579] | 171 | WRITE(numout,*) |
---|
[11536] | 172 | WRITE(numout,*) ' CNRS - NERC - Met OFFICE - MERCATOR-ocean - CMCC' |
---|
[1593] | 173 | WRITE(numout,*) ' NEMO team' |
---|
[5042] | 174 | WRITE(numout,*) ' Stand Alone Observation operator' |
---|
[10570] | 175 | WRITE(numout,*) ' NEMO version 4.0 (2019) ' |
---|
[1579] | 176 | WRITE(numout,*) |
---|
[10570] | 177 | WRITE(numout,*) " ._ ._ ._ ._ ._ " |
---|
| 178 | WRITE(numout,*) " _.-._)`\_.-._)`\_.-._)`\_.-._)`\_.-._)`\_ " |
---|
[1579] | 179 | WRITE(numout,*) |
---|
[10570] | 180 | WRITE(numout,*) " o _, _, " |
---|
| 181 | WRITE(numout,*) " o .' ( .-' / " |
---|
| 182 | WRITE(numout,*) " o _/..._'. .' / " |
---|
| 183 | WRITE(numout,*) " ( o .-'` ` '-./ _.' " |
---|
| 184 | WRITE(numout,*) " ) ( o) ;= <_ ( " |
---|
| 185 | WRITE(numout,*) " ( '-.,\\__ __.-;`\ '. ) " |
---|
| 186 | WRITE(numout,*) " ) ) \) |`\ \) '. \ ( ( " |
---|
| 187 | WRITE(numout,*) " ( ( \_/ '-._\ ) ) " |
---|
[11536] | 188 | WRITE(numout,*) " ) ) jgs ` ( ( " |
---|
[10570] | 189 | WRITE(numout,*) " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ " |
---|
| 190 | WRITE(numout,*) |
---|
[1593] | 191 | ! |
---|
[7646] | 192 | WRITE(numout,cform_aaa) ! Flag AAAAAAA |
---|
| 193 | ! |
---|
[473] | 194 | ENDIF |
---|
[11536] | 195 | ! |
---|
| 196 | IF(lwm) WRITE( numond, namctl ) |
---|
| 197 | ! |
---|
| 198 | ! !------------------------------------! |
---|
| 199 | ! ! Set global domain size parameters ! |
---|
| 200 | ! !------------------------------------! |
---|
| 201 | ! |
---|
| 202 | READ ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) |
---|
| 203 | 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist' ) |
---|
| 204 | READ ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) |
---|
| 205 | 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist' ) |
---|
| 206 | ! |
---|
| 207 | IF( ln_read_cfg ) THEN ! Read sizes in domain configuration file |
---|
[14433] | 208 | CALL domain_cfg ( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, l_Iperio, l_Jperio, l_NFold, c_NFtype ) |
---|
[11536] | 209 | ELSE ! user-defined namelist |
---|
[14433] | 210 | CALL usr_def_nam( cn_cfg, nn_cfg, Ni0glo, Nj0glo, jpkglo, l_Iperio, l_Jperio, l_NFold, c_NFtype ) |
---|
[11536] | 211 | ENDIF |
---|
| 212 | ! |
---|
| 213 | IF(lwm) WRITE( numond, namcfg ) |
---|
| 214 | ! |
---|
| 215 | ! !-----------------------------------------! |
---|
| 216 | ! ! mpp parameters and domain decomposition ! |
---|
| 217 | ! !-----------------------------------------! |
---|
| 218 | CALL mpp_init |
---|
[2715] | 219 | |
---|
[13286] | 220 | CALL halo_mng_init() |
---|
[7646] | 221 | ! Now we know the dimensions of the grid and numout has been set: we can allocate arrays |
---|
[2715] | 222 | CALL nemo_alloc() |
---|
| 223 | |
---|
[2496] | 224 | ! !-------------------------------! |
---|
| 225 | ! ! NEMO general initialization ! |
---|
| 226 | ! !-------------------------------! |
---|
[473] | 227 | |
---|
[9436] | 228 | CALL nemo_ctl ! Control prints |
---|
[2382] | 229 | ! |
---|
[9436] | 230 | ! ! General initialization |
---|
| 231 | IF( ln_timing ) CALL timing_init ! timing |
---|
| 232 | IF( ln_timing ) CALL timing_start( 'nemo_init') |
---|
[3294] | 233 | ! |
---|
[9019] | 234 | CALL phy_cst ! Physical constants |
---|
| 235 | CALL eos_init ! Equation of state |
---|
[13970] | 236 | CALL dom_init( Nbb, Nnn, Naa ) ! Domain |
---|
[413] | 237 | |
---|
[3294] | 238 | |
---|
[12377] | 239 | IF( sn_cfctl%l_prtctl ) & |
---|
| 240 | & CALL prt_ctl_init ! Print control |
---|
[2027] | 241 | |
---|
[12377] | 242 | CALL istate_init ! ocean initial state (Dynamics and tracers) |
---|
[2496] | 243 | END SUBROUTINE nemo_init |
---|
[467] | 244 | |
---|
| 245 | |
---|
[2496] | 246 | SUBROUTINE nemo_ctl |
---|
[467] | 247 | !!---------------------------------------------------------------------- |
---|
[2496] | 248 | !! *** ROUTINE nemo_ctl *** |
---|
[467] | 249 | !! |
---|
[3764] | 250 | !! ** Purpose : control print setting |
---|
[467] | 251 | !! |
---|
[12377] | 252 | !! ** Method : - print namctl and namcfg information and check some consistencies |
---|
[467] | 253 | !!---------------------------------------------------------------------- |
---|
[2442] | 254 | ! |
---|
[2496] | 255 | IF(lwp) THEN ! control print |
---|
[531] | 256 | WRITE(numout,*) |
---|
[7646] | 257 | WRITE(numout,*) 'nemo_ctl: Control prints' |
---|
[9436] | 258 | WRITE(numout,*) '~~~~~~~~' |
---|
[1593] | 259 | WRITE(numout,*) ' Namelist namctl' |
---|
[10570] | 260 | WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat |
---|
| 261 | WRITE(numout,*) ' sn_cfctl%l_trcstat = ', sn_cfctl%l_trcstat |
---|
| 262 | WRITE(numout,*) ' sn_cfctl%l_oceout = ', sn_cfctl%l_oceout |
---|
| 263 | WRITE(numout,*) ' sn_cfctl%l_layout = ', sn_cfctl%l_layout |
---|
[12377] | 264 | WRITE(numout,*) ' sn_cfctl%l_prtctl = ', sn_cfctl%l_prtctl |
---|
| 265 | WRITE(numout,*) ' sn_cfctl%l_prttrc = ', sn_cfctl%l_prttrc |
---|
| 266 | WRITE(numout,*) ' sn_cfctl%l_oasout = ', sn_cfctl%l_oasout |
---|
[10570] | 267 | WRITE(numout,*) ' sn_cfctl%procmin = ', sn_cfctl%procmin |
---|
| 268 | WRITE(numout,*) ' sn_cfctl%procmax = ', sn_cfctl%procmax |
---|
| 269 | WRITE(numout,*) ' sn_cfctl%procincr = ', sn_cfctl%procincr |
---|
| 270 | WRITE(numout,*) ' sn_cfctl%ptimincr = ', sn_cfctl%ptimincr |
---|
[9019] | 271 | WRITE(numout,*) ' timing by routine ln_timing = ', ln_timing |
---|
| 272 | WRITE(numout,*) ' CFL diagnostics ln_diacfl = ', ln_diacfl |
---|
[531] | 273 | ENDIF |
---|
[2442] | 274 | ! |
---|
[13286] | 275 | IF( .NOT.ln_read_cfg ) ln_closea = .false. ! dealing possible only with a domcfg file |
---|
[4829] | 276 | IF(lwp) THEN ! control print |
---|
| 277 | WRITE(numout,*) |
---|
| 278 | WRITE(numout,*) ' Namelist namcfg' |
---|
[7646] | 279 | WRITE(numout,*) ' read domain configuration file ln_read_cfg = ', ln_read_cfg |
---|
| 280 | WRITE(numout,*) ' filename to be read cn_domcfg = ', TRIM(cn_domcfg) |
---|
[9436] | 281 | WRITE(numout,*) ' keep closed seas in the domain (if exist) ln_closea = ', ln_closea |
---|
[10570] | 282 | WRITE(numout,*) ' create a configuration definition file ln_write_cfg = ', ln_write_cfg |
---|
[7646] | 283 | WRITE(numout,*) ' filename to be written cn_domcfg_out = ', TRIM(cn_domcfg_out) |
---|
| 284 | WRITE(numout,*) ' use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr |
---|
[4829] | 285 | ENDIF |
---|
[9436] | 286 | ! |
---|
[10570] | 287 | IF( 1._wp /= SIGN(1._wp,-0._wp) ) CALL ctl_stop( 'nemo_ctl: The intrinsec SIGN function follows f2003 standard.', & |
---|
| 288 | & 'Compile with key_nosignedzero enabled:', & |
---|
| 289 | & '--> add -Dkey_nosignedzero to the definition of %CPP in your arch file' ) |
---|
[3764] | 290 | ! |
---|
[2496] | 291 | END SUBROUTINE nemo_ctl |
---|
[467] | 292 | |
---|
| 293 | |
---|
[2496] | 294 | SUBROUTINE nemo_closefile |
---|
[467] | 295 | !!---------------------------------------------------------------------- |
---|
[2496] | 296 | !! *** ROUTINE nemo_closefile *** |
---|
[467] | 297 | !! |
---|
| 298 | !! ** Purpose : Close the files |
---|
| 299 | !!---------------------------------------------------------------------- |
---|
[1593] | 300 | ! |
---|
| 301 | IF( lk_mpp ) CALL mppsync |
---|
| 302 | ! |
---|
[1685] | 303 | CALL iom_close ! close all input/output files managed by iom_* |
---|
[1593] | 304 | ! |
---|
[4829] | 305 | IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file |
---|
[9019] | 306 | IF( numrun /= -1 ) CLOSE( numrun ) ! run statistics file |
---|
[4829] | 307 | IF( lwm.AND.numond /= -1 ) CLOSE( numond ) ! oce output namelist |
---|
| 308 | IF( lwm.AND.numoni /= -1 ) CLOSE( numoni ) ! ice output namelist |
---|
| 309 | IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) |
---|
| 310 | IF( numout /= 6 ) CLOSE( numout ) ! standard model output file |
---|
| 311 | IF( numdct_vol /= -1 ) CLOSE( numdct_vol ) ! volume transports |
---|
| 312 | IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports |
---|
| 313 | IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports |
---|
[1593] | 314 | ! |
---|
[2442] | 315 | numout = 6 ! redefine numout in case it is used after this point... |
---|
| 316 | ! |
---|
[2496] | 317 | END SUBROUTINE nemo_closefile |
---|
[467] | 318 | |
---|
[2715] | 319 | |
---|
| 320 | SUBROUTINE nemo_alloc |
---|
| 321 | !!---------------------------------------------------------------------- |
---|
| 322 | !! *** ROUTINE nemo_alloc *** |
---|
| 323 | !! |
---|
[14227] | 324 | !! ** Purpose : Allocate all the dynamic arrays of the OCE modules |
---|
[2715] | 325 | !! |
---|
| 326 | !! ** Method : |
---|
| 327 | !!---------------------------------------------------------------------- |
---|
| 328 | USE diawri , ONLY: dia_wri_alloc |
---|
| 329 | USE dom_oce , ONLY: dom_oce_alloc |
---|
| 330 | ! |
---|
| 331 | INTEGER :: ierr |
---|
| 332 | !!---------------------------------------------------------------------- |
---|
| 333 | ! |
---|
[3764] | 334 | ierr = oce_alloc () ! ocean |
---|
[2715] | 335 | ierr = ierr + dia_wri_alloc () |
---|
| 336 | ierr = ierr + dom_oce_alloc () ! ocean domain |
---|
| 337 | ! |
---|
[10425] | 338 | CALL mpp_sum( 'nemogcm', ierr ) |
---|
[2715] | 339 | IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'nemo_alloc : unable to allocate standard ocean arrays' ) |
---|
| 340 | ! |
---|
| 341 | END SUBROUTINE nemo_alloc |
---|
| 342 | |
---|
[12933] | 343 | SUBROUTINE nemo_set_cfctl(sn_cfctl, setto ) |
---|
[10570] | 344 | !!---------------------------------------------------------------------- |
---|
| 345 | !! *** ROUTINE nemo_set_cfctl *** |
---|
| 346 | !! |
---|
| 347 | !! ** Purpose : Set elements of the output control structure to setto. |
---|
| 348 | !! |
---|
| 349 | !! ** Method : Note this routine can be used to switch on/off some |
---|
[12933] | 350 | !! types of output for selected areas. |
---|
[10570] | 351 | !!---------------------------------------------------------------------- |
---|
[12933] | 352 | TYPE(sn_ctl), INTENT(inout) :: sn_cfctl |
---|
| 353 | LOGICAL , INTENT(in ) :: setto |
---|
[10570] | 354 | !!---------------------------------------------------------------------- |
---|
[12933] | 355 | sn_cfctl%l_runstat = setto |
---|
| 356 | sn_cfctl%l_trcstat = setto |
---|
[10570] | 357 | sn_cfctl%l_oceout = setto |
---|
| 358 | sn_cfctl%l_layout = setto |
---|
[12377] | 359 | sn_cfctl%l_prtctl = setto |
---|
| 360 | sn_cfctl%l_prttrc = setto |
---|
| 361 | sn_cfctl%l_oasout = setto |
---|
[10570] | 362 | END SUBROUTINE nemo_set_cfctl |
---|
| 363 | |
---|
[3] | 364 | !!====================================================================== |
---|
[2496] | 365 | END MODULE nemogcm |
---|
[4829] | 366 | |
---|