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

Ignore:
Timestamp:
2015-06-04T09:48:48+02:00 (9 years ago)
Author:
smasson
Message:

dev_r5218_CNRS17_coupling: update and bugfix (mainly) for SAS

File:
1 edited

Legend:

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

    r5299 r5343  
    162162      ENDIF 
    163163      ! 
     164      IF( MOD( kt - 1 , nn_fsbc ) == 0 ) THEN          !   Mean value at each nn_fsbc time-step   ! 
     165         CALL iom_put( 'ssu_m', ssu_m ) 
     166         CALL iom_put( 'ssv_m', ssv_m ) 
     167         CALL iom_put( 'sst_m', sst_m ) 
     168         CALL iom_put( 'sss_m', sss_m ) 
     169         CALL iom_put( 'ssh_m', ssh_m ) 
     170         IF( lk_vvl )   CALL iom_put( 'e3t_m', fse3t_m(:,:) ) 
     171      ENDIF 
     172      ! 
    164173   END SUBROUTINE sbc_ssm 
    165174 
     
    212221         ENDIF 
    213222      ENDIF 
     223 
     224      IF( .NOT. l_ssm_mean ) THEN   ! default initialisation. needed by lim_istate 
     225         ! 
     226         IF(lwp) WRITE(numout,*) '          default initialisation of ss?_m arrays' 
     227         ssu_m(:,:) = ub(:,:,1) 
     228         ssv_m(:,:) = vb(:,:,1) 
     229         IF( ln_useCT )  THEN    ;   sst_m(:,:) = eos_pt_from_ct( tsn(:,:,1,jp_tem), tsn(:,:,1,jp_sal) ) 
     230         ELSE                    ;   sst_m(:,:) = tsn(:,:,1,jp_tem) 
     231         ENDIF 
     232         sss_m(:,:) = tsn(:,:,1,jp_sal) 
     233         ssh_m(:,:) = sshn(:,:) 
     234         IF( lk_vvl )   fse3t_m(:,:) = fse3t_n(:,:,1) 
     235         ! 
     236      ENDIF 
    214237      ! 
    215238   END SUBROUTINE sbc_ssm_init 
Note: See TracChangeset for help on using the changeset viewer.