Ignore:
Timestamp:
Jul 23, 2016, 7:45:38 AM (8 years ago)
Author:
Ehouarn Millour
Message:

Cleanup in the dynamics: turn comvert.h into module comvert_mod.F90
EM

File:
1 edited

Legend:

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

    r2598 r2600  
    2828     &                       periodav, ok_dyn_ave, output_grads_dyn,
    2929     &                       iapp_tracvl
     30       USE comvert_mod, ONLY: ap,bp,pressure_exner,presnivs
    3031       USE comconst_mod, ONLY: cpp, dtvr, ihf, dtphys, pi, jmp1
    3132      IMPLICIT NONE
     
    6566#include "paramet.h"
    6667#include "comdissnew.h"
    67 #include "comvert.h"
    6868#include "comgeom.h"
    6969#include "logic.h"
     
    14541454                call Gather_Field(teta,ip1jmp1,llm,0)
    14551455                call Gather_Field(pk,ip1jmp1,llm,0)
    1456                 call Gather_Field(phi,ip1jmp1,llm,0)
     1456                call Gather_Field(phi,ip1jmp1,llm,0)
    14571457                do iq=1,nqtot
    14581458                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    14591459                enddo
    1460                 call Gather_Field(masse,ip1jmp1,llm,0)
     1460                call Gather_Field(masse,ip1jmp1,llm,0)
    14611461                call Gather_Field(ps,ip1jmp1,1,0)
    1462                 call Gather_Field(phis,ip1jmp1,1,0)
     1462                call Gather_Field(phis,ip1jmp1,1,0)
    14631463                if (mpi_rank==0) then
    14641464                 CALL writedynav(itau,vcov,
    14651465     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    1466                 endif
     1466                endif
    14671467#endif
    14681468!$OMP END MASTER
     
    14761476            IF( MOD(itau,iecri).EQ.0) THEN
    14771477             ! Ehouarn: output only during LF or Backward Matsuno
    1478              if (leapf.or.(.not.leapf.and.(.not.forward))) then
     1478             if (leapf.or.(.not.leapf.and.(.not.forward))) then
    14791479c$OMP BARRIER
    14801480c$OMP MASTER
     
    15141514                call Gather_Field(ucov,ip1jmp1,llm,0)
    15151515                call Gather_Field(teta,ip1jmp1,llm,0)
    1516                 call Gather_Field(phi,ip1jmp1,llm,0)
     1516                call Gather_Field(phi,ip1jmp1,llm,0)
    15171517                do iq=1,nqtot
    15181518                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    15191519                enddo
    1520                 call Gather_Field(masse,ip1jmp1,llm,0)
     1520                call Gather_Field(masse,ip1jmp1,llm,0)
    15211521                call Gather_Field(ps,ip1jmp1,1,0)
    1522                 call Gather_Field(phis,ip1jmp1,1,0)
     1522                call Gather_Field(phis,ip1jmp1,1,0)
    15231523                if (mpi_rank==0) then
    1524                  CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
    1525                 endif
     1524                 CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
     1525                endif
    15261526!              CALL writehist_p(histid,histvid, itau,vcov,
    15271527!     &                         ucov,teta,phi,q,masse,ps,phis)
     
    16491649                call Gather_Field(teta,ip1jmp1,llm,0)
    16501650                call Gather_Field(pk,ip1jmp1,llm,0)
    1651                 call Gather_Field(phi,ip1jmp1,llm,0)
     1651                call Gather_Field(phi,ip1jmp1,llm,0)
    16521652                do iq=1,nqtot
    16531653                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    16541654                enddo
    1655                 call Gather_Field(masse,ip1jmp1,llm,0)
     1655                call Gather_Field(masse,ip1jmp1,llm,0)
    16561656                call Gather_Field(ps,ip1jmp1,1,0)
    1657                 call Gather_Field(phis,ip1jmp1,1,0)
     1657                call Gather_Field(phis,ip1jmp1,1,0)
    16581658                if (mpi_rank==0) then
    16591659                 CALL writedynav(itau,vcov,
    16601660     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    1661                 endif
     1661                endif
    16621662#endif
    16631663!$OMP END MASTER
     
    17051705                call Gather_Field(ucov,ip1jmp1,llm,0)
    17061706                call Gather_Field(teta,ip1jmp1,llm,0)
    1707                 call Gather_Field(phi,ip1jmp1,llm,0)
     1707                call Gather_Field(phi,ip1jmp1,llm,0)
    17081708                do iq=1,nqtot
    17091709                  call Gather_Field(q(1,1,iq),ip1jmp1,llm,0)
    17101710                enddo
    1711                 call Gather_Field(masse,ip1jmp1,llm,0)
     1711                call Gather_Field(masse,ip1jmp1,llm,0)
    17121712                call Gather_Field(ps,ip1jmp1,1,0)
    1713                 call Gather_Field(phis,ip1jmp1,1,0)
     1713                call Gather_Field(phis,ip1jmp1,1,0)
    17141714                if (mpi_rank==0) then
    17151715                 CALL writehist(itau,vcov,ucov,teta,phi,q,masse,ps,phis)
    1716                 endif
     1716                endif
    17171717!                CALL writehist_p(histid, histvid, itau,vcov ,
    17181718!     &                           ucov,teta,phi,q,masse,ps,phis)
Note: See TracChangeset for help on using the changeset viewer.