Ignore:
Timestamp:
Feb 17, 2012, 12:59:00 PM (12 years ago)
Author:
Ehouarn Millour
Message:

Some cleanup around what is done during the integration step of dynamical tendencies and namely removed computation of (unused) finvmaold, thereby saving us the expense of a call to the (costly) filter at every dynamical time step.
Checked (on Vargas, in seq, omp, mpi and mixed mode) that this doesn't change the GCM results, as expected.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3d/leapfrog.F

    r1615 r1616  
    117117
    118118      REAL  SSUM
    119       REAL time_0 , finvmaold(ip1jmp1,llm)
     119      REAL time_0
     120!     REAL finvmaold(ip1jmp1,llm)
    120121
    121122cym      LOGICAL  lafin
     
    257258
    258259c   ...    P.Le Van .26/04/94  ....
    259 
    260       CALL SCOPY   ( ijp1llm,   masse, 1, finvmaold,     1 )
    261       CALL filtreg ( finvmaold ,jjp1, llm, -2,2, .TRUE., 1 )
     260! Ehouarn: finvmaold is actually not used
     261!      CALL SCOPY   ( ijp1llm,   masse, 1, finvmaold,     1 )
     262!      CALL filtreg ( finvmaold ,jjp1, llm, -2,2, .TRUE., 1 )
    262263
    263264   2  CONTINUE ! Matsuno backward or leapfrog step begins here
     
    318319
    319320      IF( forward. OR . leapf )  THEN
    320 
     321! Ehouarn: NB: at this point p with ps are not synchronized
     322!              (whereas mass and ps are...)
    321323         CALL caladvtrac(q,pbaru,pbarv,
    322324     *        p, masse, dq,  teta,
     
    343345
    344346       CALL integrd ( 2,vcovm1,ucovm1,tetam1,psm1,massem1 ,
    345      $         dv,du,dteta,dq,dp,vcov,ucov,teta,q,ps,masse,phis ,
    346      $              finvmaold                                    )
     347     $         dv,du,dteta,dq,dp,vcov,ucov,teta,q,ps,masse,phis )
     348!     $              finvmaold                                    )
    347349
    348350
Note: See TracChangeset for help on using the changeset viewer.