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 6140 for trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diaar5.F90 – NEMO

Ignore:
Timestamp:
2015-12-21T12:35:23+01:00 (8 years ago)
Author:
timgraham
Message:

Merge of branches/2015/dev_merge_2015 back into trunk. Merge excludes NEMOGCM/TOOLS/OBSTOOLS/ for now due to issues with the change of file type. Will sort these manually with further commits.

Branch merged as follows:
In the working copy of branch ran:
svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk@HEAD
Small conflicts due to bug fixes applied to trunk since the dev_merge_2015 was copied. Bug fixes were applied to the branch as well so these were easy to resolve.
Branch committed at this stage

In working copy run:
svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
to switch working copy

Run:
svn merge --reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2015/dev_merge_2015
to merge the branch into the trunk and then commit - no conflicts at this stage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diaar5.F90

    r5836 r6140  
    4040   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) ::   sn0          ! initial salinity 
    4141       
    42    !! * Substitutions 
    43 #  include "domzgr_substitute.h90" 
    4442   !!---------------------------------------------------------------------- 
    4543   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
     
    9997      ztsn(:,:,:,jp_tem) = tsn(:,:,:,jp_tem)                    ! thermosteric ssh 
    10098      ztsn(:,:,:,jp_sal) = sn0(:,:,:) 
    101       CALL eos( ztsn, zrhd, fsdept_n(:,:,:) )                       ! now in situ density using initial salinity 
     99      CALL eos( ztsn, zrhd, gdept_n(:,:,:) )                       ! now in situ density using initial salinity 
    102100      ! 
    103101      zbotpres(:,:) = 0._wp                        ! no atmospheric surface pressure, levitating sea-ice 
    104102      DO jk = 1, jpkm1 
    105          zbotpres(:,:) = zbotpres(:,:) + fse3t(:,:,jk) * zrhd(:,:,jk) 
    106       END DO 
    107       IF( .NOT.lk_vvl ) THEN 
    108          IF ( ln_isfcav ) THEN 
     103         zbotpres(:,:) = zbotpres(:,:) + e3t_n(:,:,jk) * zrhd(:,:,jk) 
     104      END DO 
     105      IF( ln_linssh ) THEN 
     106         IF( ln_isfcav ) THEN 
    109107            DO ji=1,jpi 
    110108               DO jj=1,jpj 
     
    115113            zbotpres(:,:) = zbotpres(:,:) + sshn(:,:) * zrhd(:,:,1) 
    116114         END IF 
     115!!gm 
     116!!gm   riceload should be added in both ln_linssh=T or F, no? 
     117!!gm 
    117118      END IF 
    118119      !                                          
     
    123124       
    124125      !                                         ! steric sea surface height 
    125       CALL eos( tsn, zrhd, zrhop, fsdept_n(:,:,:) )                 ! now in situ and potential density 
     126      CALL eos( tsn, zrhd, zrhop, gdept_n(:,:,:) )                 ! now in situ and potential density 
    126127      zrhop(:,:,jpk) = 0._wp 
    127128      CALL iom_put( 'rhop', zrhop ) 
     
    129130      zbotpres(:,:) = 0._wp                        ! no atmospheric surface pressure, levitating sea-ice 
    130131      DO jk = 1, jpkm1 
    131          zbotpres(:,:) = zbotpres(:,:) + fse3t(:,:,jk) * zrhd(:,:,jk) 
    132       END DO 
    133       IF( .NOT.lk_vvl ) THEN 
     132         zbotpres(:,:) = zbotpres(:,:) + e3t_n(:,:,jk) * zrhd(:,:,jk) 
     133      END DO 
     134      IF( ln_linssh ) THEN 
    134135         IF ( ln_isfcav ) THEN 
    135136            DO ji=1,jpi 
     
    159160         DO jj = 1, jpj 
    160161            DO ji = 1, jpi 
    161                zztmp = area(ji,jj) * fse3t(ji,jj,jk) 
     162               zztmp = area(ji,jj) * e3t_n(ji,jj,jk) 
    162163               ztemp = ztemp + zztmp * tsn(ji,jj,jk,jp_tem) 
    163164               zsal  = zsal  + zztmp * tsn(ji,jj,jk,jp_sal) 
     
    165166         END DO 
    166167      END DO 
    167       IF( .NOT.lk_vvl ) THEN 
    168          IF ( ln_isfcav ) THEN 
     168      IF( ln_linssh ) THEN 
     169         IF( ln_isfcav ) THEN 
    169170            DO ji=1,jpi 
    170171               DO jj=1,jpj 
Note: See TracChangeset for help on using the changeset viewer.