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 11625 for NEMO/branches/2019/dev_r11233_AGRIF-05_jchanut_vert_coord_interp/src/NST/agrif_oce_sponge.F90 – NEMO

Ignore:
Timestamp:
2019-10-01T15:18:44+02:00 (5 years ago)
Author:
jchanut
Message:

#2222, add initialization to 0 of tracer open boundary data with vertical interpolation + various neutral optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11233_AGRIF-05_jchanut_vert_coord_interp/src/NST/agrif_oce_sponge.F90

    r11603 r11625  
    329329         ! 
    330330# if defined key_vertical 
    331          tabres_child(:,:,:,:) = 0. 
    332331         DO jj=j1,j2 
    333332            DO ji=i1,i2 
     333               tabres_child(ji,jj,:,:) = 0._wp  
    334334               N_in = 0 
    335335               DO jk=k1,k2 !k2 = jpk of parent grid 
     
    345345                  h_out(jk) = e3t_b(ji,jj,jk) !Child grid scale factors. Could multiply by e1e2t here instead of division above 
    346346               ENDDO 
    347                IF (N_in > 0) THEN 
     347               IF (N_in*N_out > 0) THEN 
    348348                  CALL reconstructandremap(tabin(1:N_in,1:jpts),h_in(1:N_in),tabres_child(ji,jj,1:N_out,1:jpts),h_out(1:N_out),N_in,N_out,jpts) 
    349349               ENDIF 
     
    438438      ! 
    439439      IF( before ) THEN 
    440          DO jk=1,jpkm1 
     440         DO jk=k1,k2 
    441441            DO jj=j1,j2 
    442442               DO ji=i1,i2 
     
    591591       
    592592      IF( before ) THEN  
    593          DO jk=1,jpkm1 
     593         DO jk=k1,k2 
    594594            DO jj=j1,j2 
    595595               DO ji=i1,i2 
Note: See TracChangeset for help on using the changeset viewer.