Changeset 1431


Ignore:
Timestamp:
May 28, 2015, 10:36:35 AM (10 years ago)
Author:
aslmd
Message:

LMDZ.MARS -- commented redundant call to comgeomphy and corrected call to areas in moldiff_red

Location:
trunk/LMDZ.MARS/libf
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/moldiff_red.F90

    r1358 r1431  
    33
    44use tracer_mod, only: noms, mmol
    5 use comgeomphy, only: airephy
     5use comgeomfi_h, only: area
     6
    67implicit none
    78
     
    598599! the trend only at the end
    599600
    600         PhiEscH=PhiEscH+wi(i_h)*Nrafk(nlraf,i_h)*airephy(ig) ! in s-1
    601         PhiEscH2=PhiEscH2+wi(i_h2)*Nrafk(nlraf,i_h2)*airephy(ig) ! in s-1 (U in m/s, aire in m2, Nrafk in m-3)
    602 !       print*,'test',ig,wi(i_h),Nrafk(nlraf,i_h),wi(i_h2),Nrafk(nlraf,i_h2),airephy(ig),PhiEscH,PhiEscH2,i_h,i_h2
     601        PhiEscH=PhiEscH+wi(i_h)*Nrafk(nlraf,i_h)*area(ig) ! in s-1
     602        PhiEscH2=PhiEscH2+wi(i_h2)*Nrafk(nlraf,i_h2)*area(ig) ! in s-1 (U in m/s, aire in m2, Nrafk in m-3)
     603!       print*,'test',ig,wi(i_h),Nrafk(nlraf,i_h),wi(i_h2),Nrafk(nlraf,i_h2),area(ig),PhiEscH,PhiEscH2,i_h,i_h2
    603604!       stop
    604605
  • trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars/iniphysiq.F90

    r1428 r1431  
    1111                               klon_mpi_begin ! start indes of columns (on local mpi grid)
    1212
    13 use comgeomphy, only : initcomgeomphy, &
    14                        airephy, & ! physics grid area (m2)
    15                        cuphy, & ! cu coeff. (u_covariant = cu * u)
    16                        cvphy, & ! cv coeff. (v_covariant = cv * v)
    17                        rlond, & ! longitudes
    18                        rlatd ! latitudes
     13!use comgeomphy, only : initcomgeomphy, &
     14!                       airephy, & ! physics grid area (m2)
     15!                       cuphy, & ! cu coeff. (u_covariant = cu * u)
     16!                       cvphy, & ! cv coeff. (v_covariant = cv * v)
     17!                       rlond, & ! longitudes
     18!                       rlatd ! latitudes
    1919use infotrac, only : nqtot ! number of advected tracers
    2020use comgeomfi_h, only: ini_fillgeom
     
    116116
    117117
    118 !$OMP PARALLEL
    119 ! Now generate local lon/lat/cu/cv/area arrays
    120 call initcomgeomphy
    121 
    122 !!!!$OMP PARALLEL PRIVATE(ibegin,iend)
    123 !!!$OMP+         SHARED(parea,pcu,pcv,plon,plat)
    124      
    125 offset=klon_mpi_begin-1
    126 airephy(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
    127 cuphy(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
    128 cvphy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
    129 rlond(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
    130 rlatd(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
     118!!$OMP PARALLEL
     119!! Now generate local lon/lat/cu/cv/area arrays
     120!call initcomgeomphy
     121!
     122!!!!!$OMP PARALLEL PRIVATE(ibegin,iend)
     123!!!!$OMP+         SHARED(parea,pcu,pcv,plon,plat)
     124!
     125!offset=klon_mpi_begin-1
     126!airephy(1:klon_omp)=airefi(offset+klon_omp_begin:offset+klon_omp_end)
     127!cuphy(1:klon_omp)=cufi(offset+klon_omp_begin:offset+klon_omp_end)
     128!cvphy(1:klon_omp)=cvfi(offset+klon_omp_begin:offset+klon_omp_end)
     129!rlond(1:klon_omp)=lonfi(offset+klon_omp_begin:offset+klon_omp_end)
     130!rlatd(1:klon_omp)=latfi(offset+klon_omp_begin:offset+klon_omp_end)
    131131
    132132! copy some fundamental parameters to physics
     
    134134call phys_state_var_init(klon_omp,nlayer,nqtot, &
    135135                         punjours,ptimestep,prad,pg,pr,pcpp)
    136 call ini_fillgeom(klon_omp,rlatd,rlond,airephy)
     136!call ini_fillgeom(klon_omp,rlatd,rlond,airephy)
    137137call conf_phys(klon_omp,nlayer,nqtot)
    138138
  • trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars/newstart.F

    r1422 r1431  
    2929      use phyredem, only: physdem0, physdem1
    3030      use iostart, only: open_startphy
    31       use comgeomphy, only: initcomgeomphy
     31!      use comgeomphy, only: initcomgeomphy
    3232!      use planete_h
    3333      use dimradmars_mod, only: tauscaling
     
    182182! initialize "serial/parallel" related stuff
    183183      CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
    184       call initcomgeomphy
     184      !call initcomgeomphy
    185185
    186186! Load tracer number and names:
  • trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars/start2archive.F

    r1422 r1431  
    2323      use surfdat_h, only: ini_surfdat_h, qsurf
    2424      use comsoil_h, only: ini_comsoil_h
    25       use comgeomphy, only: initcomgeomphy
     25!      use comgeomphy, only: initcomgeomphy
    2626      use filtreg_mod, only: inifilr
    2727      use control_mod, only: planet_type
     
    118118! initialize "serial/parallel" related stuff
    119119      CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
    120       call initcomgeomphy
     120      !call initcomgeomphy
    121121      planet_type='mars'
    122122
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r1422 r1431  
    1313      use control_mod, only: day_step
    1414      use phyredem, only: physdem0,physdem1
    15       use comgeomphy, only: initcomgeomphy
     15!      use comgeomphy, only: initcomgeomphy
    1616      use planete_h, only: year_day, periheli, aphelie, peri_day,
    1717     &                     obliquit, emin_turb, lmixmin
     
    117117!      CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
    118118      CALL init_phys_lmdz(iim,jjm+1,llm,1,(/(jjm-1)*iim+2/))
    119       call initcomgeomphy
     119      !call initcomgeomphy
    120120
    121121c ------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.