- Timestamp:
- 2020-06-26T10:26:32+02:00 (4 years ago)
- Location:
- NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement
- Property svn:externals
-
old new 8 8 9 9 # SETTE 10 ^/utils/CI/sette@ HEADsette10 ^/utils/CI/sette@12931 sette
-
- Property svn:externals
-
NEMO/branches/2020/dev_r12563_ASINTER-06_ABL_improvement/src/OCE/nemogcm.F90
r12489 r13159 84 84 #endif 85 85 ! 86 USE in_out_manager ! I/O manager 86 87 USE lib_mpp ! distributed memory computing 87 88 USE mppini ! shared/distributed memory setting (mpp_init routine) … … 185 186 END DO 186 187 ! 187 IF( .NOT. Agrif_Root() ) THEN188 CALL Agrif_ParentGrid_To_ChildGrid()189 IF( ln_diaobs ) CALL dia_obs_wri190 IF( ln_timing ) CALL timing_finalize191 CALL Agrif_ChildGrid_To_ParentGrid()192 ENDIF193 !194 188 # else 195 189 ! … … 236 230 IF( nstop /= 0 .AND. lwp ) THEN ! error print 237 231 WRITE(ctmp1,*) ' ==>>> nemo_gcm: a total of ', nstop, ' errors have been found' 238 CALL ctl_stop( ctmp1 ) 232 IF( ngrdstop > 0 ) THEN 233 WRITE(ctmp9,'(i2)') ngrdstop 234 WRITE(ctmp2,*) ' E R R O R detected in Agrif grid '//TRIM(ctmp9) 235 WRITE(ctmp3,*) ' Look for "E R R O R" messages in all existing '//TRIM(ctmp9)//'_ocean_output* files' 236 CALL ctl_stop( ' ', ctmp1, ' ', ctmp2, ' ', ctmp3 ) 237 ELSE 238 WRITE(ctmp2,*) ' Look for "E R R O R" messages in all existing ocean_output* files' 239 CALL ctl_stop( ' ', ctmp1, ' ', ctmp2 ) 240 ENDIF 239 241 ENDIF 240 242 ! … … 248 250 #else 249 251 IF ( lk_oasis ) THEN ; CALL cpl_finalize ! end coupling and mpp communications with OASIS 250 ELSEIF( lk_mpp ) THEN ; CALL mppstop ! end mpp communications252 ELSEIF( lk_mpp ) THEN ; CALL mppstop ! end mpp communications 251 253 ENDIF 252 254 #endif … … 317 319 IF( lwm ) CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 318 320 ! open /dev/null file to be able to supress output write easily 321 IF( Agrif_Root() ) THEN 319 322 CALL ctl_opn( numnul, '/dev/null', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 320 ! 323 #ifdef key_agrif 324 ELSE 325 numnul = Agrif_Parent(numnul) 326 #endif 327 ENDIF 321 328 ! !--------------------! 322 329 ! ! Open listing units ! -> need sn_cfctl from namctl to define lwp … … 329 336 ! 330 337 ! finalize the definition of namctl variables 331 IF( sn_cfctl%l_allon ) THEN 332 ! Turn on all options. 333 CALL nemo_set_cfctl( sn_cfctl, .TRUE., .TRUE. ) 334 ! Ensure all processors are active 335 sn_cfctl%procmin = 0 ; sn_cfctl%procmax = 1000000 ; sn_cfctl%procincr = 1 336 ELSEIF( sn_cfctl%l_config ) THEN 337 ! Activate finer control of report outputs 338 ! optionally switch off output from selected areas (note this only 339 ! applies to output which does not involve global communications) 340 IF( ( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax ) .OR. & 341 & ( MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) ) & 342 & CALL nemo_set_cfctl( sn_cfctl, .FALSE., .FALSE. ) 343 ELSE 344 ! turn off all options. 345 CALL nemo_set_cfctl( sn_cfctl, .FALSE., .TRUE. ) 346 ENDIF 338 IF( narea < sn_cfctl%procmin .OR. narea > sn_cfctl%procmax .OR. MOD( narea - sn_cfctl%procmin, sn_cfctl%procincr ) /= 0 ) & 339 & CALL nemo_set_cfctl( sn_cfctl, .FALSE. ) 347 340 ! 348 341 lwp = (narea == 1) .OR. sn_cfctl%l_oceout ! control of all listing output print … … 528 521 WRITE(numout,*) '~~~~~~~~' 529 522 WRITE(numout,*) ' Namelist namctl' 530 WRITE(numout,*) ' sn_cfctl%l_glochk = ', sn_cfctl%l_glochk531 WRITE(numout,*) ' sn_cfctl%l_allon = ', sn_cfctl%l_allon532 WRITE(numout,*) ' finer control over o/p sn_cfctl%l_config = ', sn_cfctl%l_config533 523 WRITE(numout,*) ' sn_cfctl%l_runstat = ', sn_cfctl%l_runstat 534 524 WRITE(numout,*) ' sn_cfctl%l_trcstat = ', sn_cfctl%l_trcstat … … 678 668 679 669 680 SUBROUTINE nemo_set_cfctl(sn_cfctl, setto , for_all)670 SUBROUTINE nemo_set_cfctl(sn_cfctl, setto ) 681 671 !!---------------------------------------------------------------------- 682 672 !! *** ROUTINE nemo_set_cfctl *** 683 673 !! 684 674 !! ** Purpose : Set elements of the output control structure to setto. 685 !! for_all should be .false. unless all areas are to be686 !! treated identically.687 675 !! 688 676 !! ** Method : Note this routine can be used to switch on/off some 689 !! types of output for selected areas but any output types 690 !! that involve global communications (e.g. mpp_max, glob_sum) 691 !! should be protected from selective switching by the 692 !! for_all argument 693 !!---------------------------------------------------------------------- 694 LOGICAL :: setto, for_all 695 TYPE(sn_ctl) :: sn_cfctl 696 !!---------------------------------------------------------------------- 697 IF( for_all ) THEN 698 sn_cfctl%l_runstat = setto 699 sn_cfctl%l_trcstat = setto 700 ENDIF 677 !! types of output for selected areas. 678 !!---------------------------------------------------------------------- 679 TYPE(sn_ctl), INTENT(inout) :: sn_cfctl 680 LOGICAL , INTENT(in ) :: setto 681 !!---------------------------------------------------------------------- 682 sn_cfctl%l_runstat = setto 683 sn_cfctl%l_trcstat = setto 701 684 sn_cfctl%l_oceout = setto 702 685 sn_cfctl%l_layout = setto
Note: See TracChangeset
for help on using the changeset viewer.