Changeset 2442
- Timestamp:
- 2010-11-27T19:05:38+01:00 (13 years ago)
- Location:
- branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 1 added
- 1 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/opa.F90
r2435 r2442 1 1 MODULE opa 2 !!====================================================================== ========2 !!====================================================================== 3 3 !! *** MODULE opa *** 4 4 !! Ocean system : OPA ocean dynamics (including on-line tracers and sea-ice) 5 !!====================================================================== ========5 !!====================================================================== 6 6 !! History : OPA ! 1990-10 (C. Levy, G. Madec) Original code 7 7 !! 7.0 ! 1991-11 (M. Imbard, C. Levy, G. Madec) … … 179 179 !! 180 180 !!---------------------------------------------------------------------- 181 INTEGER :: ilocal_comm182 CHARACTER(len=80),dimension(10) :: cltxt = ''183 INTEGER :: ji ! local loop indices181 INTEGER :: ji ! dummy loop indices 182 INTEGER :: ilocal_comm ! local integer 183 CHARACTER(len=80), DIMENSION(10) :: cltxt = '' 184 184 !! 185 185 NAMELIST/namctl/ ln_ctl , nn_print, nn_ictls, nn_ictle, & … … 198 198 IF( Agrif_Root() ) THEN 199 199 # if defined key_oasis3 || defined key_oasis4 200 CALL cpl_prism_init( ilocal_comm ) 200 CALL cpl_prism_init( ilocal_comm ) ! nemo local communicator given by oasis 201 201 # endif 202 CALL init_ioclient( ilocal_comm ) 202 CALL init_ioclient( ilocal_comm ) ! exchange io_server nemo local communicator with the io_server 203 203 ENDIF 204 204 narea = mynode( cltxt, ilocal_comm ) ! Nodes selection … … 206 206 # if defined key_oasis3 || defined key_oasis4 207 207 IF( Agrif_Root() ) THEN 208 CALL cpl_prism_init( ilocal_comm ) 208 CALL cpl_prism_init( ilocal_comm ) ! nemo local communicator given by oasis 209 209 ENDIF 210 210 narea = mynode( cltxt, ilocal_comm ) ! Nodes selection (control print return in cltxt) … … 321 321 SUBROUTINE opa_ctl 322 322 !!---------------------------------------------------------------------- 323 !! *** ROUTINE opa *** 324 !! 325 !! ** Purpose : Initialise logical flags that control the choice of 326 !! some algorithm or control print 327 !! 328 !! ** Method : - print namctl information 329 !! - Read in namilist namflg logical flags 330 !!---------------------------------------------------------------------- 331 NAMELIST/namdyn_hpg/ ln_hpg_zco , ln_hpg_zps , ln_hpg_sco, ln_hpg_hel, & 332 & ln_hpg_wdj , ln_hpg_djc , ln_hpg_rot, rn_gamma , & 333 & ln_dynhpg_imp, nn_dynhpg_rst 334 !!---------------------------------------------------------------------- 335 336 IF(lwp) THEN ! Parameter print 323 !! *** ROUTINE opa_ctl *** 324 !! 325 !! ** Purpose : control print setting 326 !! 327 !! ** Method : - print namctl information and check some consistencies 328 !!---------------------------------------------------------------------- 329 ! 330 IF(lwp) THEN ! Parameter print 337 331 WRITE(numout,*) 338 332 WRITE(numout,*) 'opa_ctl: Control prints & Benchmark' … … 349 343 WRITE(numout,*) ' benchmark parameter (0/1) nn_bench = ', nn_bench 350 344 ENDIF 351 345 ! 352 346 nprint = nn_print ! convert DOCTOR namelist names into OLD names 353 347 nictls = nn_ictls … … 358 352 jsplt = nn_jsplt 359 353 nbench = nn_bench 360 361 ! ! Parameter control 354 ! ! Parameter control 362 355 ! 363 356 IF( ln_ctl ) THEN ! sub-domain area indices for the control prints … … 397 390 ENDIF 398 391 ENDIF 399 400 IF( nbench == 1 ) THEN! Benchmark392 ! 393 IF( nbench == 1 ) THEN ! Benchmark 401 394 SELECT CASE ( cp_cfg ) 402 395 CASE ( 'gyre' ) ; CALL ctl_warn( ' The Benchmark is activated ' ) … … 406 399 ENDIF 407 400 ! 408 IF( lk_c1d .AND. .NOT. lk_iomput )&409 CALL ctl_stop( ' The 1D vertical configuration must be used in conjunction', &410 & ' with the IOM Input/Output manager.Compile with key_iomput enabled' )401 IF( lk_c1d .AND. .NOT.lk_iomput ) CALL ctl_stop( 'opa_ctl: The 1D configuration must be used ', & 402 & 'with the IOM Input/Output manager. ' , & 403 & 'Compile with key_iomput enabled' ) 411 404 ! 412 405 END SUBROUTINE opa_ctl … … 430 423 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) 431 424 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file 432 numout = 6 ! redefine numout in case it is used after this point... 425 ! 426 numout = 6 ! redefine numout in case it is used after this point... 433 427 ! 434 428 END SUBROUTINE opa_closefile
Note: See TracChangeset
for help on using the changeset viewer.