Ignore:
Timestamp:
Jun 14, 2015, 9:13:32 PM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes -r2237:2291 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/dyn3dmem/leapfrog_loc.F

    r2258 r2298  
    200200      LOGICAL, SAVE :: firstcall=.TRUE.
    201201      TYPE(distrib),SAVE :: new_dist
     202
     203      if (ok_iso_verif) then
     204         call check_isotopes(q0,ijb_u,ije_u,'leapfrog204: debut')
     205      endif !if (ok_iso_verif) then
    202206     
    203207c$OMP MASTER
     
    219223      itaufinp1 = itaufin +1
    220224
     225      if (ok_iso_verif) then
     226        call check_isotopes(q0,ijb_u,ije_u,'leapfrog 226')
     227      endif !if (ok_iso_verif) then
     228
    221229      itau = 0
    222230      physic=.true.
     
    231239      phis=phis0
    232240      q=q0
     241
     242      if (ok_iso_verif) then
     243        call check_isotopes(q,ijb_u,ije_u,'leapfrog 239')
     244      endif !if (ok_iso_verif) then
    233245     
    234246!      iday = day_ini+itau/day_step
     
    296308
    297309   1  CONTINUE ! Matsuno Forward step begins here
    298 
     310      !write(*,*) 'leapfrog 298: itau=',itau
    299311      jD_cur = jD_ref + day_ini - day_ref +                             &
    300312     &          itau/day_step
     
    306318      endif
    307319
     320        if (ok_iso_verif) then
     321           call check_isotopes(q,ijb_u,ije_u,'leapfrog 321')
     322        endif !if (ok_iso_verif) then
    308323
    309324#ifdef CPP_IOIPSL
     
    384399cym      call minmax(ijp1llm,q(:,:,3),zqmin,zqmax)
    385400
     401
     402        if (ok_iso_verif) then
     403           call check_isotopes(q,ijb_u,ije_u,'leapfrog 400')
     404        endif !if (ok_iso_verif) then
     405
    386406   2  CONTINUE ! Matsuno backward or leapfrog step begins here
     407
     408
     409        if (ok_iso_verif) then
     410           call check_isotopes(q,ijb_u,ije_u,'leapfrog 402')
     411        endif !if (ok_iso_verif) then
    387412
    388413c$OMP MASTER
     
    455480c$OMP END MASTER     
    456481
     482
     483        if (ok_iso_verif) then
     484           call check_isotopes(q,ijb_u,ije_u,'leapfrog 471')
     485        endif !if (ok_iso_verif) then
    457486
    458487!ym  PAS D'AJUSTEMENT POUR LE MOMENT     
     
    574603     
    575604     
     605        if (ok_iso_verif) then
     606           call check_isotopes(q,ijb_u,ije_u,'leapfrog 589')
     607        endif !if (ok_iso_verif) then
    576608     
    577609c-----------------------------------------------------------------------
     
    635667      ! compute geopotential phi()
    636668      CALL geopot_loc  ( ip1jmp1, teta  , pk , pks,  phis  , phi   )
    637 
     669       
     670        if (ok_iso_verif) then
     671           call check_isotopes(q,ijb_u,ije_u,'leapfrog 651')
     672        endif !if (ok_iso_verif) then
    638673     
    639674      call VTb(VTcaldyn)
     
    644679!      CALL FTRACE_REGION_BEGIN("caldyn")
    645680      time = jD_cur + jH_cur
     681
    646682      CALL caldyn_loc
    647683     $  ( itau,ucov,vcov,teta,ps,masse,pk,pkf,phis ,
     
    670706c   -------------------------------------------------------------
    671707
     708        if (ok_iso_verif) then
     709           call check_isotopes(q,ijb_u,ije_u,
     710     &           'leapfrog 686: avant caladvtrac')
     711        endif !if (ok_iso_verif) then
    672712     
    673713      IF( forward. OR . leapf )  THEN
    674714! Ehouarn: NB: fields sent to advtrac are those at the beginning of the time step
     715        !write(*,*) 'leapfrog 679: avant CALL caladvtrac_loc'
    675716         CALL caladvtrac_loc(q,pbaru,pbarv,
    676717     *        p, masse, dq,  teta,
    677718     .        flxw,pk, iapptrac)
     719
     720         !write(*,*) 'leapfrog 719'
     721         if (ok_iso_verif) then
     722           call check_isotopes(q,ijb_u,ije_u,
     723     &           'leapfrog 698: apres caladvtrac')
     724         endif !if (ok_iso_verif) then
    678725
    679726!      do j=1,nqtot
     
    708755!       CALL FTRACE_REGION_BEGIN("integrd")
    709756
    710        CALL integrd_loc ( 2,vcovm1,ucovm1,tetam1,psm1,massem1 ,
     757       !write(*,*) 'leapfrog 720'
     758        if (ok_iso_verif) then
     759           call check_isotopes(q,ijb_u,ije_u,'leapfrog 756')
     760        endif !if (ok_iso_verif) then
     761
     762       ! CRisi: pourquoi aller jusqu'à 2 et non pas jusqu'à nqtot??
     763       CALL integrd_loc ( nqtot,vcovm1,ucovm1,tetam1,psm1,massem1 ,
    711764     $         dv,du,dteta,dq,dp,vcov,ucov,teta,q,ps,masse,phis)
    712765!     $              finvmaold                                    )
    713766
     767       !write(*,*) 'leapfrog 724'       
     768        if (ok_iso_verif) then
     769           call check_isotopes(q,ijb_u,ije_u,'leapfrog 762')
     770        endif !if (ok_iso_verif) then
     771 
    714772!       CALL FTRACE_REGION_END("integrd")
    715773c$OMP BARRIER
     
    724782      call WriteField_u('ps_int',ps)
    725783#endif   
     784
     785        if (ok_iso_verif) then
     786           call check_isotopes(q,ijb_u,ije_u,'leapfrog 775')
     787        endif !if (ok_iso_verif) then
     788
    726789c      do j=1,nqtot
    727790c        call WriteField_p('q'//trim(int2str(j)),
     
    10821145       ENDIF ! of IF( apphys )
    10831146
     1147        if (ok_iso_verif) then
     1148           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1132')
     1149        endif !if (ok_iso_verif) then
     1150        !write(*,*) 'leapfrog 1134: iflag_phys=',iflag_phys
     1151
    10841152      IF(iflag_phys.EQ.2) THEN ! "Newtonian" case
    10851153c$OMP MASTER
     
    11461214
    11471215cc$OMP END PARALLEL
     1216        if (ok_iso_verif) then
     1217           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1196')
     1218        endif !if (ok_iso_verif) then
    11481219
    11491220c-----------------------------------------------------------------------
    11501221c   dissipation horizontale et verticale  des petites echelles:
    11511222c   ----------------------------------------------------------
    1152 
     1223      !write(*,*) 'leapfrog 1163: apdiss=',apdiss
    11531224      IF(apdiss) THEN
    11541225     
     
    13791450c                call abort_gcm(modname,abort_message,0)
    13801451c              ENDIF
    1381        
     1452
     1453        if (ok_iso_verif) then
     1454           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1430')
     1455        endif !if (ok_iso_verif) then     
     1456 
    13821457c   ********************************************************************
    13831458c   ********************************************************************
     
    14551530      ENDIF
    14561531     
     1532        if (ok_iso_verif) then
     1533           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1509')
     1534        endif !if (ok_iso_verif) then
     1535
    14571536      IF ( .NOT.purmats ) THEN
    14581537c       ........................................................
     
    15261605            ENDIF
    15271606
     1607        if (ok_iso_verif) then
     1608           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1584')
     1609        endif !if (ok_iso_verif) then
     1610
    15281611c-----------------------------------------------------------------------
    15291612c   ecriture de la bande histoire:
     
    15621645            ENDIF ! of IF (itau.EQ.itaufin)
    15631646
     1647        if (ok_iso_verif) then
     1648           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1624')
     1649        endif !if (ok_iso_verif) then
     1650
    15641651c-----------------------------------------------------------------------
    15651652c   gestion de l'integration temporelle:
     
    15961683
    15971684      ELSE ! of IF (.not.purmats)
     1685
     1686
     1687        if (ok_iso_verif) then
     1688           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1664')
     1689        endif !if (ok_iso_verif) then
    15981690
    15991691c       ........................................................
     
    16311723
    16321724            ELSE ! of IF(forward) i.e. backward step
     1725
     1726             
     1727        if (ok_iso_verif) then
     1728           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1698')
     1729        endif !if (ok_iso_verif) then 
    16331730
    16341731              IF(MOD(itau,iperiod).EQ.0 .OR. itau.EQ.itaufin) THEN
     
    16831780            ENDIF ! of IF (forward)
    16841781
     1782
     1783        if (ok_iso_verif) then
     1784           call check_isotopes(q,ijb_u,ije_u,'leapfrog 1750')
     1785        endif !if (ok_iso_verif) then
     1786
    16851787      END IF ! of IF(.not.purmats)
    16861788c$OMP MASTER
Note: See TracChangeset for help on using the changeset viewer.