New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 258 for trunk/NEMO/OPA_SRC/SBC – NEMO

Changeset 258 for trunk/NEMO/OPA_SRC/SBC


Ignore:
Timestamp:
2005-09-02T17:48:36+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_004 : CT : Integration of the control print option for debugging work

Location:
trunk/NEMO/OPA_SRC/SBC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/bulk.F90

    r247 r258  
    2121   USE phycst          ! physical constants 
    2222   USE in_out_manager  ! I/O manager 
     23   USE prtctl          ! Print control 
    2324 
    2425   IMPLICIT NONE 
     
    9798 
    9899# if ! defined key_ice_lim 
    99          IF(l_ctl) THEN         ! print mean trends (used for debugging) 
    100             WRITE(numout,*) ' Forcings ' 
    101             WRITE(numout,*) ' qsr_oce  : ', SUM( qsr_oce (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    102             WRITE(numout,*) ' qsr_ice  : ', SUM( qsr_ice (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    103             WRITE(numout,*) ' qnsr_oce : ', SUM( qnsr_oce(1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    104             WRITE(numout,*) ' qnsr_ice : ', SUM( qnsr_ice(1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    105             WRITE(numout,*) ' evap     : ', SUM( evap    (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    106             WRITE(numout,*) ' precip   : ', SUM( tprecip (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) / rday 
    107             WRITE(numout,*) ' Snow     : ', SUM( sprecip (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) / rday 
    108             WRITE(numout,*) ' u-stress : ', SUM( taux    (1:nictl+1,1:njctl+1) * umask(1:nictl+1,1:njctl+1,1) ) 
    109             WRITE(numout,*) ' v-stress : ', SUM( tauy    (1:nictl+1,1:njctl+1) * vmask(1:nictl+1,1:njctl+1,1) ) 
    110             WRITE(numout,*) ' sst      : ', SUM( zsst    (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    111             WRITE(numout,*) ' sss      : ', SUM( zsss    (1:nictl+1,1:njctl+1) * tmask(1:nictl+1,1:njctl+1,1) ) 
    112             WRITE(numout,*) 
     100         IF(ln_ctl) THEN         ! print mean trends (used for debugging) 
     101            CALL prt_ctl_info(' Forcings ') 
     102            CALL prt_ctl(tab2d_1=qsr_oce , clinfo1=' qsr_oce   : ', mask1=tmask, ovlap=1) 
     103            CALL prt_ctl(tab2d_1=qsr_ice , clinfo1=' qsr_ice   : ', mask1=tmask, ovlap=1) 
     104            CALL prt_ctl(tab2d_1=qnsr_oce, clinfo1=' qnsr_oce  : ', mask1=tmask, ovlap=1) 
     105            CALL prt_ctl(tab2d_1=qnsr_ice, clinfo1=' qnsr_ice  : ', mask1=tmask, ovlap=1) 
     106            CALL prt_ctl(tab2d_1=evap    , clinfo1=' evap      : ', mask1=tmask, ovlap=1) 
     107            CALL prt_ctl(tab2d_1=tprecip , clinfo1=' precip    : ', mask1=tmask, ovlap=1) 
     108            CALL prt_ctl(tab2d_1=sprecip , clinfo1=' Snow      : ', mask1=tmask, ovlap=1) 
     109            CALL prt_ctl(tab2d_1=taux    , clinfo1=' u-stress  : ', mask1=tmask, ovlap=1) 
     110            CALL prt_ctl(tab2d_1=tauy    , clinfo1=' v-stress  : ', mask1=tmask, ovlap=1) 
     111            CALL prt_ctl(tab2d_1=zsst    , clinfo1=' sst       : ', mask1=tmask, ovlap=1) 
     112            CALL prt_ctl(tab2d_1=zsss    , clinfo1=' sss       : ', mask1=tmask, ovlap=1) 
    113113         ENDIF 
    114114# endif    
  • trunk/NEMO/OPA_SRC/SBC/flxblk.F90

    r247 r258  
    2424   USE lbclnk 
    2525   USE albedo 
     26   USE prtctl          ! Print control 
    2627 
    2728   IMPLICIT NONE 
     
    319320 
    320321      iday   = INT( zxday ) 
    321       IF(l_ctl)   WRITE(numout,*) ' declin : iday ', iday, ' nfbulk= ', nfbulk 
     322 
     323      IF(ln_ctl) CALL prt_ctl_info('declin : iday ', ivar1=iday, clinfo2=' nfbulk= ', ivar2=nfbulk) 
     324 
    322325      !   computation of the solar declination, his sine and his cosine 
    323326      CALL flx_blk_declin( indaet, iday, zdecl ) 
  • trunk/NEMO/OPA_SRC/SBC/ocesbc.F90

    r247 r258  
    1313   USE dom_oce        ! ocean space domain variables 
    1414   USE cpl_oce        ! coupled ocean-atmosphere variables 
    15    USE ice_oce 
    16    USE blk_oce 
    17    USE flx_oce 
     15   USE ice_oce        ! sea-ice variable 
     16   USE blk_oce        ! bulk variables 
     17   USE flx_oce        ! sea-ice/ocean forcings variables 
    1818   USE phycst         ! Define parameters for the routines 
    19    USE taumod 
    20    USE flxmod 
    21    USE flxrnf 
     19   USE taumod         ! surface stress forcing 
     20   USE flxmod         ! thermohaline fluxes 
     21   USE flxrnf         ! runoffs forcing 
    2222   USE tradmp         ! damping salinity trend 
    23    USE dtatem 
    24    USE dtasal 
    25    USE ocfzpt 
    26    USE lbclnk 
    27    USE lib_mpp 
     23   USE dtatem         ! ocean temperature data 
     24   USE dtasal         ! ocean salinity data 
     25   USE ocfzpt         ! surface ocean freezing point 
     26   USE lbclnk         ! ocean lateral boundary condition 
     27   USE lib_mpp        ! distribued memory computing library 
    2828   USE in_out_manager ! I/O manager 
     29   USE prtctl         ! Print control 
    2930 
    3031   IMPLICIT NONE 
     
    301302      !!---------------------------------------------------------------------- 
    302303      !! * Modules used 
    303       USE cpl_oce  
     304      USE cpl_oce       ! coupled ocean-atmosphere variables 
    304305 
    305306      !! * Arguments 
     
    400401      !!---------------------------------------------------------------------- 
    401402      !! * Modules used 
    402       USE daymod 
     403      USE daymod                 ! calendar 
    403404#if ! defined key_dtasst 
    404       USE dtasst, ONLY : rclice 
     405      USE dtasst, ONLY : rclice  ! sea surface temperature data 
    405406#endif 
    406407#if defined key_flx_bulk_monthly || defined key_flx_bulk_daily 
    407       USE blk_oce 
     408      USE blk_oce                ! bulk variables 
    408409#endif 
    409410#if defined key_flx_forced_daily 
    410       USE flx_oce 
     411      USE flx_oce                ! sea-ice/ocean forcings variables 
    411412#endif 
    412413 
     
    769770      REAL(wp), DIMENSION(jpi,jpj)  :: zsss, zfreeze 
    770771      REAL(wp) ::   zerp, ztrp, zsrp 
     772      CHARACTER (len=71) :: charout 
    771773#if defined key_dynspg_fsc 
    772774      REAL(wp) ::   zwei 
     
    852854      IF( lk_mpp )   CALL mpp_sum( aplus  )   ! sums over the global domain 
    853855      IF( lk_mpp )   CALL mpp_sum( aminus ) 
    854       IF(l_ctl)   WRITE(numout,*) ' oce_sbc_dmp : a+ = ', aplus, ' a- = ', aminus 
     856 
     857      IF(ln_ctl)   THEN 
     858         WRITE(charout,FMT="('oce_sbc_dmp : a+ = ',D23.16, ' a- = ',D23.16)") aplus, aminus 
     859         CALL prt_ctl_info(charout) 
     860      ENDIF 
    855861 
    856862      zadefi = MIN( aplus, aminus ) 
Note: See TracChangeset for help on using the changeset viewer.