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

Changeset 7758


Ignore:
Timestamp:
2017-03-06T14:11:56+01:00 (8 years ago)
Author:
clem
Message:

make AGRIF reproducible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/EXTERNAL/AGRIF/AGRIF_FILES/modinterp.F90

    r6133 r7758  
    774774            indmin(i) = indmin(i) - 2 
    775775            indmax(i) = indmax(i) + 2 
     776 
     777            if (Agrif_UseSpecialValue) then 
     778               indmin(i) = indmin(i)-MaxSearch 
     779               indmax(i) = indmax(i)+MaxSearch 
     780            endif 
     781 
    776782        elseif ( (type_interp(i) /= Agrif_constant) .and.   & 
    777783                 (type_interp(i) /= Agrif_linear) ) then 
    778784            indmin(i) = indmin(i) - 1 
    779785            indmax(i) = indmax(i) + 1 
     786 
     787            if (Agrif_UseSpecialValue) then 
     788               indmin(i) = indmin(i)-MaxSearch 
     789               indmax(i) = indmax(i)+MaxSearch 
     790            endif 
     791 
     792        elseif ( (type_interp(i) == Agrif_constant) .or.   & 
     793                 (type_interp(i) == Agrif_linear) ) then 
     794            if (Agrif_UseSpecialValue) then 
     795               indmin(i) = indmin(i)-MaxSearch 
     796               indmax(i) = indmax(i)+MaxSearch 
     797            endif 
     798 
    780799        endif 
    781800! 
Note: See TracChangeset for help on using the changeset viewer.