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 5299 for branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2015-05-27T18:17:08+02:00 (9 years ago)
Author:
smasson
Message:

dev_r5218_CNRS17_coupling: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r5220 r5299  
    309309 
    310310 
    311       IF( nn_components /= jp_iam_sas ) THEN 
    312  
    313                                CALL sbc_ssm_init               ! Sea-surface mean fields initialisation 
    314       ELSE 
    315       ! 
    316       ! sas currently uses surface temperature and salinity in tsn array 
    317       ! for initialisation 
    318       ! and ub, vb arrays in ice dynamics 
    319       ! so allocate enough of arrays to use 
    320       ! 
    321          ierr3 = 0 
    322          jpm = MAX(jp_tem, jp_sal) 
    323          ALLOCATE( tsn(jpi,jpj,1,jpm), STAT=ierr0 ) 
    324          ALLOCATE( ub(jpi,jpj,1)     , STAT=ierr1 ) 
    325          ALLOCATE( vb(jpi,jpj,1)     , STAT=ierr2 ) 
    326          IF ( nn_ice == 1 ) ALLOCATE( tsb(jpi,jpj,1,jpm), STAT=ierr3 ) 
    327          ierr = ierr0 + ierr1 + ierr2 + ierr3 
    328          IF( ierr > 0 ) THEN 
    329             CALL ctl_stop('sbc_ssm_init: unable to allocate surface arrays') 
    330          ENDIF 
    331  
    332       ENDIF 
     311      IF( nn_components /= jp_iam_sas )   & 
     312         &                     CALL sbc_ssm_init               ! Sea-surface mean fields initialisation 
    333313      ! 
    334314      IF( ln_ssr           )   CALL sbc_ssr_init               ! Sea-Surface Restoring initialisation 
     
    393373      CASE( jp_clio  )   ;   CALL sbc_blk_clio( kt )                    ! bulk formulation : CLIO for the ocean 
    394374      CASE( jp_core  )    
    395                              IF( nn_components == jp_iam_sas ) & 
    396                                 CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice )     !  OASIS-coupled ice 
     375         IF( nn_components == jp_iam_sas ) & 
     376            &                CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice )   ! OPA-SAS coupling: SAS receiving fields from OPA  
    397377                             CALL sbc_blk_core( kt )                    ! bulk formulation : CORE for the ocean 
    398378                                                                        ! from oce: sea surface variables (sst_m, sss_m,  ssu_m,  ssv_m) 
     
    400380                                                                        ! 
    401381      CASE( jp_mfs   )   ;   CALL sbc_blk_mfs ( kt )                    ! bulk formulation : MFS for the ocean 
    402       CASE( jp_none  )   ;   CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice )   ! OASIS-coupled ice 
    403                                                          ! fluxes qsr, qns, emp, sfx,utau, vtau 
    404                                                          ! sss_m, ssu_m, ssv_m) 
     382      CASE( jp_none  )  
     383         IF( nn_components == jp_iam_opa ) & 
     384                             CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice )   ! OPA-SAS coupling: OPA receiving fields from SAS 
    405385      CASE( jp_esopa )                                 
    406386                             CALL sbc_ana     ( kt )                    ! ESOPA, test ALL the formulations 
Note: See TracChangeset for help on using the changeset viewer.