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 13027 for vendors/AGRIF/dev_r12970_AGRIF_CMEMS/AGRIF_FILES/modinterpbasic.F90 – NEMO

Ignore:
Timestamp:
2020-06-03T16:36:09+02:00 (4 years ago)
Author:
rblod
Message:

New AGRIF library, see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendors/AGRIF/dev_r12970_AGRIF_CMEMS/AGRIF_FILES/modinterpbasic.F90

    r5656 r13027  
    220220!CDIR ALTCODE 
    221221!CDIR NODEP 
     222    if (associated(agrif_external_linear_interp)) then 
     223    do i = 1,nc 
     224        y(i)=agrif_external_linear_interp(x(MAX(indparent(i,dir),1)), & 
     225              x(indparent(i,dir)+1),coeffparent(i,dir)) 
     226    enddo 
     227    else 
    222228    do i = 1,nc 
    223229        y(i) = coeffparent(i,dir)  * x(MAX(indparent(i,dir),1)) + & 
    224230           (1.-coeffparent(i,dir)) * x(indparent(i,dir)+1) 
    225231    enddo 
     232    endif 
    226233!--------------------------------------------------------------------------------------------------- 
    227234end subroutine Linear1dAfterCompute 
Note: See TracChangeset for help on using the changeset viewer.