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_interp.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_interp.F90

    r11603 r11625  
    662662      INTEGER  ::   N_in, N_out 
    663663      ! vertical interpolation: 
    664       REAL(wp), DIMENSION(i1:i2,j1:j2,1:jpk,n1:n2) :: ptab_child 
    665       REAL(wp), DIMENSION(k1:k2,n1:n2-1) :: tabin 
     664      REAL(wp), DIMENSION(i1:i2,j1:j2,1:jpk,1:jpts) :: ptab_child 
     665      REAL(wp), DIMENSION(k1:k2,1:jpts) :: tabin 
    666666      REAL(wp), DIMENSION(k1:k2) :: h_in 
    667667      REAL(wp), DIMENSION(1:jpk) :: h_out 
     
    693693         DO jj=j1,j2 
    694694            DO ji=i1,i2 
     695               ptab_child(ji,jj,:,:) = 0._wp 
    695696               N_in = 0 
    696697               DO jk=k1,k2 !k2 = jpk of parent grid 
     
    706707                  h_out(jk) = e3t_a(ji,jj,jk) 
    707708               ENDDO 
    708                IF (N_in > 0) THEN 
     709               IF (N_in*N_out > 0) THEN 
    709710                  CALL reconstructandremap(tabin(1:N_in,1:jpts),h_in(1:N_in),ptab_child(ji,jj,1:N_out,1:jpts),h_out(1:N_out),N_in,N_out,jpts) 
    710711               ENDIF 
Note: See TracChangeset for help on using the changeset viewer.