Ignore:
Timestamp:
Sep 29, 2016, 11:26:46 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2593:2640 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/dyn3dpar/leapfrog_p.F

    r2408 r2641  
    2828     &                       periodav, ok_dyn_ave, output_grads_dyn,
    2929     &                       iapp_tracvl
     30       USE comvert_mod, ONLY: ap,bp,pressure_exner,presnivs
     31       USE comconst_mod, ONLY: cpp, dtvr, ihf, dtphys, pi, jmp1
     32       USE logic_mod, ONLY: iflag_phys,ok_guide,forward,leapf,apphys,
     33     &                      statcl,conser,apdiss,purmats,ok_strato
     34       USE temps_mod, ONLY: itaufin,jD_ref,jH_ref,day_ini,
     35     &                        day_ref,start_time,dt
     36
    3037      IMPLICIT NONE
    3138
     
    6370#include "dimensions.h"
    6471#include "paramet.h"
    65 #include "comconst.h"
    6672#include "comdissnew.h"
    67 #include "comvert.h"
    6873#include "comgeom.h"
    69 #include "logic.h"
    70 #include "temps.h"
    71 #include "ener.h"
    7274#include "description.h"
    73 #include "serre.h"
    7475!#include "com_io_dyn.h"
    7576#include "iniprint.h"
     
    14551456                call Gather_Field(teta,ip1jmp1,llm,0)
    14561457                call Gather_Field(pk,ip1jmp1,llm,0)
    1457                 call Gather_Field(phi,ip1jmp1,llm,0)
     1458                call Gather_Field(phi,ip1jmp1,llm,0)
    14581459                do iq=1,nqtot
    14591460                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    14601461                enddo
    1461                 call Gather_Field(masse,ip1jmp1,llm,0)
     1462                call Gather_Field(masse,ip1jmp1,llm,0)
    14621463                call Gather_Field(ps,ip1jmp1,1,0)
    1463                 call Gather_Field(phis,ip1jmp1,1,0)
     1464                call Gather_Field(phis,ip1jmp1,1,0)
    14641465                if (mpi_rank==0) then
    14651466                 CALL writedynav(itau,vcov,
    14661467     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    1467                 endif
     1468                endif
    14681469#endif
    14691470!$OMP END MASTER
     
    14771478            IF( MOD(itau,iecri).EQ.0) THEN
    14781479             ! Ehouarn: output only during LF or Backward Matsuno
    1479              if (leapf.or.(.not.leapf.and.(.not.forward))) then
     1480             if (leapf.or.(.not.leapf.and.(.not.forward))) then
    14801481c$OMP BARRIER
    14811482c$OMP MASTER
     
    15151516                call Gather_Field(ucov,ip1jmp1,llm,0)
    15161517                call Gather_Field(teta,ip1jmp1,llm,0)
    1517                 call Gather_Field(phi,ip1jmp1,llm,0)
     1518                call Gather_Field(phi,ip1jmp1,llm,0)
    15181519                do iq=1,nqtot
    15191520                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    15201521                enddo
    1521                 call Gather_Field(masse,ip1jmp1,llm,0)
     1522                call Gather_Field(masse,ip1jmp1,llm,0)
    15221523                call Gather_Field(ps,ip1jmp1,1,0)
    1523                 call Gather_Field(phis,ip1jmp1,1,0)
     1524                call Gather_Field(phis,ip1jmp1,1,0)
    15241525                if (mpi_rank==0) then
    1525                  CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
    1526                 endif
     1526                 CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
     1527                endif
    15271528!              CALL writehist_p(histid,histvid, itau,vcov,
    15281529!     &                         ucov,teta,phi,q,masse,ps,phis)
     
    16501651                call Gather_Field(teta,ip1jmp1,llm,0)
    16511652                call Gather_Field(pk,ip1jmp1,llm,0)
    1652                 call Gather_Field(phi,ip1jmp1,llm,0)
     1653                call Gather_Field(phi,ip1jmp1,llm,0)
    16531654                do iq=1,nqtot
    16541655                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    16551656                enddo
    1656                 call Gather_Field(masse,ip1jmp1,llm,0)
     1657                call Gather_Field(masse,ip1jmp1,llm,0)
    16571658                call Gather_Field(ps,ip1jmp1,1,0)
    1658                 call Gather_Field(phis,ip1jmp1,1,0)
     1659                call Gather_Field(phis,ip1jmp1,1,0)
    16591660                if (mpi_rank==0) then
    16601661                 CALL writedynav(itau,vcov,
    16611662     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    1662                 endif
     1663                endif
    16631664#endif
    16641665!$OMP END MASTER
     
    17061707                call Gather_Field(ucov,ip1jmp1,llm,0)
    17071708                call Gather_Field(teta,ip1jmp1,llm,0)
    1708                 call Gather_Field(phi,ip1jmp1,llm,0)
     1709                call Gather_Field(phi,ip1jmp1,llm,0)
    17091710                do iq=1,nqtot
    17101711                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    17111712                enddo
    1712                 call Gather_Field(masse,ip1jmp1,llm,0)
     1713                call Gather_Field(masse,ip1jmp1,llm,0)
    17131714                call Gather_Field(ps,ip1jmp1,1,0)
    1714                 call Gather_Field(phis,ip1jmp1,1,0)
     1715                call Gather_Field(phis,ip1jmp1,1,0)
    17151716                if (mpi_rank==0) then
    17161717                 CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
    1717                 endif
     1718                endif
    17181719!                CALL writehist_p(histid, histvid, itau,vcov ,
    17191720!     &                           ucov,teta,phi,q,masse,ps,phis)
Note: See TracChangeset for help on using the changeset viewer.