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 2267 – NEMO

Changeset 2267


Ignore:
Timestamp:
2010-10-14T15:45:22+02:00 (14 years ago)
Author:
smasson
Message:

add a control in coupled mode if ln_dm2dc = .true.

Location:
branches/nemo_v3_3_beta/NEMOGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90

    r2236 r2267  
    2929   USE mod_prism_put_proto          ! OASIS3 prism module for snding 
    3030   USE mod_prism_get_proto          ! OASIS3 prism module for receiving 
     31   USE mod_comprism_proto           ! OASIS3 prism module to get coupling frequency 
    3132   USE par_oce                      ! ocean parameters 
    3233   USE dom_oce                      ! ocean space and time domain 
     
    6162   PUBLIC cpl_prism_snd 
    6263   PUBLIC cpl_prism_rcv 
     64   PUBLIC cpl_prism_freq 
    6365   PUBLIC cpl_prism_finalize 
    6466 
     
    210212      !! * Arguments 
    211213      !! 
    212       INTEGER,                      INTENT( IN    )   :: kid       ! variable intex in the array 
     214      INTEGER,                      INTENT( IN    )   :: kid       ! variable index in the array 
    213215      INTEGER,                      INTENT(   OUT )   :: kinfo     ! OASIS3 info argument 
    214216      INTEGER,                      INTENT( IN    )   :: kstep     ! ocean time-step in seconds 
     
    247249      !!      like stresses and fluxes from the coupler or remote application. 
    248250      !!---------------------------------------------------------------------- 
    249       INTEGER,                      INTENT( IN    )   :: kid       ! variable intex in the array 
     251      INTEGER,                      INTENT( IN    )   :: kid       ! variable index in the array 
    250252      INTEGER,                      INTENT( IN    )   :: kstep     ! ocean time-step in seconds 
    251253      REAL(wp), DIMENSION(jpi,jpj), INTENT( INOUT )   :: pdata     ! IN to keep the value if nothing is done 
     
    293295 
    294296 
     297   FUNCTION cpl_prism_freq( kid )   
     298 
     299      !!--------------------------------------------------------------------- 
     300      !!              ***  ROUTINE cpl_prism_freq  *** 
     301      !! 
     302      !! ** Purpose : - send back the coupling frequency for a particular field 
     303      !!---------------------------------------------------------------------- 
     304      INTEGER,INTENT( IN )   :: kid              ! variable index  
     305      INTEGER                :: cpl_prism_freq   ! coupling frequency 
     306      cpl_prism_freq = ig_def_freq( kid ) 
     307 
     308   END FUNCTION cpl_prism_freq 
     309 
     310 
    295311   SUBROUTINE cpl_prism_finalize 
    296312 
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r2236 r2267  
    528528      CALL cpl_prism_define(jprcv, jpsnd)             
    529529      ! 
     530      IF( ln_dm2dc .AND. ( cpl_prism_freq( jpr_qsroce ) + cpl_prism_freq( jpr_qsrmix ) /= 86400 ) )   & 
     531         &   CALL ctl_stop( 'sbc_cpl_init: diurnal cycle reconstruction (ln_dm2dc) needs daily couping for solar radiation' ) 
     532 
    530533   END SUBROUTINE sbc_cpl_init 
    531534 
  • branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/bld.cfg

    r2178 r2267  
    7575bld::excl_dep        use::mod_prism_get_proto 
    7676bld::excl_dep        use::mod_prism_put_proto 
     77bld::excl_dep        use::mod_comprism_proto 
    7778bld::excl_dep        use::mkl_dfti 
    7879# Don't generate interface files 
Note: See TracChangeset for help on using the changeset viewer.