Changeset 2394 for trunk


Ignore:
Timestamp:
Jul 2, 2020, 3:42:38 PM (4 years ago)
Author:
cmathe
Message:

improvedco2clouds_mod: clean

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/improvedco2clouds_mod.F90

    r2393 r2394  
    528528          zq(ig,l,igcm_co2) = zq(ig,l,igcm_co2) - dMice
    529529        end if
    530       end if ! nouveau end if
     530      end if ! if zq(ccnco2_number) >= 1
    531531!----------------------------------------------------------------------------------------------------------------------!
    532532! 4.3 Dust cores releasing if no more co2 ice
    533533!----------------------------------------------------------------------------------------------------------------------!
    534         ! On sublime tout
    535         if ((zq(ig,l,igcm_co2_ice) <= threshold).or.(zq(ig,l,igcm_ccnco2_number)* tauscaling(ig) < 1.)) then
    536 
    537           if (co2useh2o) then
    538 
    539             if (mem_Mccn_co2(ig,l) > 0) then
    540               zq(ig,l,igcm_ccn_mass) = zq(ig,l,igcm_ccn_mass) + mem_Mccn_co2(ig,l)
    541             end if
    542 
    543             if (mem_Mh2o_co2(ig,l) > 0) then
    544               zq(ig,l,igcm_h2o_ice) = zq(ig,l,igcm_h2o_ice) + mem_Mh2o_co2(ig,l)
    545             end if
    546 
    547             if (mem_Nccn_co2(ig,l) > 0) then
    548               zq(ig,l,igcm_ccn_number) = zq(ig,l,igcm_ccn_number) + mem_Nccn_co2(ig,l)
    549             end if
    550 
     534      ! On sublime tout
     535      if ((zq(ig,l,igcm_co2_ice) <= threshold).or.(zq(ig,l,igcm_ccnco2_number) * tauscaling(ig) < 1.)) then
     536
     537        if (co2useh2o) then
     538
     539          if (mem_Mccn_co2(ig,l) > 0) then
     540            zq(ig,l,igcm_ccn_mass) = zq(ig,l,igcm_ccn_mass) + mem_Mccn_co2(ig,l)
    551541          end if
    552542
    553           zq(ig,l,igcm_dust_mass) = zq(ig,l,igcm_dust_mass) + zq(ig,l,igcm_ccnco2_mass) - ( mem_Mh2o_co2(ig,l) + &
    554                                        mem_Mccn_co2(ig,l) )
    555 
    556           zq(ig,l,igcm_dust_number) = zq(ig,l,igcm_dust_number) + zq(ig,l,igcm_ccnco2_number)  - mem_Nccn_co2(ig,l)
    557 
    558           zq(ig,l,igcm_co2) = zq(ig,l,igcm_co2)  + zq(ig,l,igcm_co2_ice)
    559 
    560           zq(ig,l,igcm_co2_ice) = 0.
    561           zq(ig,l,igcm_ccnco2_mass) = 0.
    562           zq(ig,l,igcm_ccnco2_number) = 0.
    563           mem_Nccn_co2(ig,l) = 0.
    564           mem_Mh2o_co2(ig,l) = 0.
    565           mem_Mccn_co2(ig,l) = 0.
    566           riceco2(ig,l) = 0.
    567         end if !of if co2_ice < threshold
    568 !      end if ! of if NCCN > 1
     543          if (mem_Mh2o_co2(ig,l) > 0) then
     544            zq(ig,l,igcm_h2o_ice) = zq(ig,l,igcm_h2o_ice) + mem_Mh2o_co2(ig,l)
     545          end if
     546
     547          if (mem_Nccn_co2(ig,l) > 0) then
     548            zq(ig,l,igcm_ccn_number) = zq(ig,l,igcm_ccn_number) + mem_Nccn_co2(ig,l)
     549          end if
     550
     551        end if
     552
     553        zq(ig,l,igcm_dust_mass) = zq(ig,l,igcm_dust_mass) + zq(ig,l,igcm_ccnco2_mass) - ( mem_Mh2o_co2(ig,l) + &
     554                                     mem_Mccn_co2(ig,l) )
     555
     556        zq(ig,l,igcm_dust_number) = zq(ig,l,igcm_dust_number) + zq(ig,l,igcm_ccnco2_number)  - mem_Nccn_co2(ig,l)
     557
     558        zq(ig,l,igcm_co2) = zq(ig,l,igcm_co2)  + zq(ig,l,igcm_co2_ice)
     559
     560        zq(ig,l,igcm_co2_ice) = 0.
     561        zq(ig,l,igcm_ccnco2_mass) = 0.
     562        zq(ig,l,igcm_ccnco2_number) = 0.
     563        mem_Nccn_co2(ig,l) = 0.
     564        mem_Mh2o_co2(ig,l) = 0.
     565        mem_Mccn_co2(ig,l) = 0.
     566        riceco2(ig,l) = 0.
     567      end if !of if co2_ice < threshold or zq(ccnco2_number) < 1
    569568    end do ! of ig loop
    570569  end do ! of nlayer loop
  • trunk/LMDZ.MARS/util/compile

    r1193 r2394  
    33# > compile concat
    44# > compile zrecast
     5
     6# get from:
     7#   $>:module list
     8# copy the netcdf module used (i.e. netcdf4/4.5.0-ifort15)
     9#   $>:module display netcdf4/4.5.0-ifort15
     10NETCDF='/opt/netcdf45/ifort15'
    511
    612# pgf90 -Bstatic   $1.F90 \
     
    915
    1016#ifort $1.F90 \
    11 #pgf90 $1.F90 \
     17#pgf90 -Bstatic $1.F90 \
    1218ifort $1.F90 \
    1319-I$NETCDF/include \
    14 -L$NETCDF/lib -lnetcdf -o $1.e
     20#-L$NETCDF/lib -lnetcdf -o $1.e
     21-L$NETCDF/lib -lnetcdff -o $1.e # on centos 7
    1522
    1623# Before running that on you computer you might want to change :
  • trunk/LMDZ.MARS/util/concatnc.F90

    r2313 r2394  
    2828include "netcdf.inc" ! NetCDF definitions
    2929
    30 character (len=80), dimension(1000) :: file
     30character (len=256), dimension(1000) :: file
    3131! file(): input file(s) names(s)
    3232character (len=30), dimension(16) :: notconcat
     
    3434character (len=50), dimension(:), allocatable :: var
    3535! var(): name(s) of variable(s) that will be concatenated
    36 character (len=50) :: tmpvar,tmpfile,title,units
     36character (len=256) :: tmpvar,tmpfile,title,units
    3737! tmpvar(): used to temporarily store a variable name
    3838! tmpfile(): used to temporarily store a file name
     
    138138
    139139nbfile=0
    140 read(*,'(a50)') tmpfile
     140read(*,'(a256)') tmpfile
    141141do While (len_trim(tmpfile).ne.0)
    142142   nbfile=nbfile+1
    143143   file(nbfile)=tmpfile
    144    read(*,'(a50)') tmpfile
     144   read(*,'(a256)') tmpfile
    145145enddo
    146146
Note: See TracChangeset for help on using the changeset viewer.