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

Ignore:
Timestamp:
2019-10-23T12:08:33+02:00 (5 years ago)
Author:
jchanut
Message:

#2222 1) change sponge definition to add time relaxation in addition to Laplacian diffusion (WRF like): Add new parameters in namelist.
2) Reduce sponge width by 1 child grid point to match coarse grid cells.

File:
1 edited

Legend:

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

    r11741 r11769  
    684684        ! Interpolate thicknesses 
    685685        ! Warning: these are masked, hence extrapolated prior interpolation. 
    686         DO jk=k1,k2-1 
     686        DO jk=k1,k2 
    687687           DO jj=j1,j2 
    688688              DO ji=i1,i2 
     
    731731               N_out = 0 
    732732               DO jk=1,jpk ! jpk of child grid 
    733                   IF (tmask(ji,jj,jk) == 0) EXIT  
     733                  IF (tmask(ji,jj,jk) == 0._wp) EXIT  
    734734                  N_out = N_out + 1 
    735735                  h_out(jk) = e3t_a(ji,jj,jk) 
     
    945945                  h_out(N_out) = e3v_a(ji,jj,jk) 
    946946               END DO 
    947  
    948947               IF (N_in*N_out > 0) THEN 
    949948                  call reconstructandremap(tabin(1:N_in),h_in(1:N_in),va(ji,jj,1:N_out),h_out(1:N_out),N_in,N_out,1) 
Note: See TracChangeset for help on using the changeset viewer.