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

Changeset 572


Ignore:
Timestamp:
2006-11-13T15:16:21+01:00 (17 years ago)
Author:
opalod
Message:

RB: ensure correct vectorization in modbc.F in Agrif routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AGRIF/AGRIF_FILES/modbc.F

    r396 r572  
    746746      INTEGER                      :: nb,ndir,n,sizetab 
    747747      REAL, DIMENSION(:), Allocatable :: tab ! Array used for the interpolation 
     748      INTEGER, DIMENSION(nbdim)  :: ztab ! Array used for the interpolation 
    748749      REAL    :: c1t,c2t               ! Coefficients for the time interpolation 
    749750                                       !    (c2t=1-c1t)  
     
    928929C       
    929930              sizetab = 1 
    930 C 
    931               do i = 1,nbdim 
     931              ztab(1) = ptres2(1,2,ndir,nb)-ptres2(1,1,ndir,nb)+1 
     932C 
     933              do i = 2,nbdim 
    932934C           
    933                 sizetab = sizetab  
     935                ztab(i) = ztab(i-1)  
    934936     &              * (ptres2(i,2,ndir,nb)-ptres2(i,1,ndir,nb)+1) 
    935937C       
    936938              enddo 
    937 C               
     939              sizetab=ztab(nbdim)   
    938940              allocate(tab(sizetab)) 
    939941C 
     
    991993     &        .AND. loctab_child(nb) /= -3) then 
    992994C       
    993               sizetab=1    
    994 C 
    995               do i = 1,nbdim 
     995              sizetab=1   
     996              ztab(1) = ptres2(1,2,ndir,nb)-ptres2(1,1,ndir,nb)+1 
     997              do i = 2,nbdim 
    996998C           
    997                 sizetab = sizetab 
     999                ztab(i) = ztab(i-1) 
    9981000     &             * (ptres2(i,2,ndir,nb)-ptres2(i,1,ndir,nb)+1) 
    9991001C       
    10001002              enddo 
    10011003C               
     1004              sizetab = ztab(nbdim)  
    10021005              allocate(tab(sizetab)) 
    10031006C 
Note: See TracChangeset for help on using the changeset viewer.