Ignore:
Timestamp:
Feb 3, 2012, 11:07:08 AM (13 years ago)
Author:
Ehouarn Millour
Message:

Correction to enforce having 1+1=2 in the dynamics.
Still not sure why changing surface pressure during dissipation step leads to having 1+1!=2. But clearly there is no reason to recompute polar surface pressure during a dissipation step.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dpar/leapfrog_p.F

    r1592 r1614  
    244244c et du parallelisme !!
    245245
    246    1  CONTINUE
     246   1  CONTINUE ! Matsuno Forward step begins here
    247247
    248248      jD_cur = jD_ref + day_ini - day_ref +                             &
     
    331331cym      call minmax(ijp1llm,q(:,:,3),zqmin,zqmax)
    332332
    333    2  CONTINUE
     333   2  CONTINUE ! Matsuno backward or leapfrog step begins here
    334334
    335335c$OMP MASTER
     
    559559      call start_timer(timer_caldyn)
    560560
     561      ! compute geopotential phi()
    561562      CALL geopot_p  ( ip1jmp1, teta  , pk , pks,  phis  , phi   )
    562563
     
    11931194c$OMP END DO NOWAIT
    11941195
     1196         if (1 == 0) then
     1197!!! Ehouarn: lines here 1) kill 1+1=2 in the dynamics
     1198!!!                     2) should probably not be here anyway
     1199!!! but are kept for those who would want to revert to previous behaviour
    11951200c$OMP MASTER               
    11961201          DO ij =  1,iim
     
    12031208          ENDDO
    12041209c$OMP END MASTER
    1205         endif
     1210         endif ! of if (1 == 0)
     1211        endif ! of of (pole_nord)
    12061212       
    12071213        if (pole_sud) then
     
    12191225c$OMP END DO NOWAIT
    12201226
     1227         if (1 == 0) then
     1228!!! Ehouarn: lines here 1) kill 1+1=2 in the dynamics
     1229!!!                     2) should probably not be here anyway
     1230!!! but are kept for those who would want to revert to previous behaviour
    12211231c$OMP MASTER               
    12221232          DO ij =  1,iim
     
    12291239          ENDDO
    12301240c$OMP END MASTER
    1231         endif
     1241         endif ! of if (1 == 0)
     1242        endif ! of if (pole_sud)
    12321243
    12331244
Note: See TracChangeset for help on using the changeset viewer.