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

Changeset 6394


Ignore:
Timestamp:
2016-03-17T18:05:01+01:00 (8 years ago)
Author:
jcastill
Message:

Bug fix when coupling sea surface height with ln_apr_dyn - at the first time step the pressure can not be used in the equations as it is not defined yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_ww3_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r6293 r6394  
    22002200         !                          ! removed inverse barometer ssh when Patm 
    22012201         !                          forcing is used (for sea-ice dynamics) 
    2202          IF( ln_apr_dyn ) THEN   ;   ztmp1(:,:) = sshb(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) 
    2203          ELSE                    ;   ztmp1(:,:) = sshn(:,:) 
     2202         IF( ln_apr_dyn ) THEN 
     2203             IF( kt /= nit000 ) THEN 
     2204                 ztmp1(:,:) = sshb(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) 
     2205             ELSE 
     2206                 ztmp1(:,:) = sshb(:,:) 
     2207             ENDIF 
     2208         ELSE 
     2209             ztmp1(:,:) = sshn(:,:) 
    22042210         ENDIF 
    22052211         CALL cpl_snd( jps_ssh   , isec, RESHAPE ( ztmp1            , (/jpi,jpj,1/) ), info ) 
    2206  
    22072212      ENDIF 
    22082213      !                                                        ! SSS 
Note: See TracChangeset for help on using the changeset viewer.