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 2671 for vendors/AGRIF/current/AGRIF_FILES/modupdatebasic.F – NEMO

Ignore:
Timestamp:
2011-03-08T15:08:49+01:00 (13 years ago)
Author:
rblod
Message:

Load working_directory into vendors/AGRIF/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendors/AGRIF/current/AGRIF_FILES/modupdatebasic.F

    r1901 r2671  
    571571      INTEGER :: i1,i2 
    572572      REAL :: invsumweight 
    573       REAL :: weights(-(coeffraf-1):coeffraf-1) 
     573      REAL :: weights(-(coeffraf):coeffraf) 
    574574       
    575575C 
     
    594594       ENDIF 
    595595C 
    596               
    597        it1 = -(coeffraf-1) 
    598        i1 = -(coeffraf-1)+locind_child_left+diffmod 
    599        i2 = 2*coeffraf - 2 
    600596        
    601       invsumweight=1./coeffraf**2 
    602       do i=-(coeffraf-1),0 
    603         weights(i) = invsumweight*(coeffraf + i) 
    604       enddo 
    605       do i=1,coeffraf-1 
    606         weights(i) = invsumweight*(coeffraf - i) 
    607       enddo 
     597      if (diffmod == 1) THEN 
     598        invsumweight=1./(2.*coeffraf**2) 
     599        do i=-coeffraf,-1 
     600          weights(i) = invsumweight*(2*(coeffraf+i)+1) 
     601        enddo 
     602        do i=0,coeffraf-1 
     603          weights(i)=weights(-(i+1)) 
     604        enddo 
     605        it1 = -coeffraf 
     606        i1 = -(coeffraf-1)+locind_child_left 
     607        i2 = 2*coeffraf - 1 
     608      else 
     609        invsumweight=1./coeffraf**2 
     610        do i=-(coeffraf-1),0 
     611          weights(i) = invsumweight*(coeffraf + i) 
     612        enddo 
     613        do i=1,coeffraf-1 
     614          weights(i) = invsumweight*(coeffraf - i) 
     615        enddo 
     616        it1 = -(coeffraf-1) 
     617        i1 = -(coeffraf-1)+locind_child_left 
     618        i2 = 2*coeffraf - 2 
     619      endif 
    608620 
    609621      sumweight = 0                     
     
    638650      enddo     
    639651C 
     652 
    640653      Return  
    641654C             
Note: See TracChangeset for help on using the changeset viewer.