- Timestamp:
- Jul 2, 2020, 3:42:38 PM (4 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/improvedco2clouds_mod.F90
r2393 r2394 528 528 zq(ig,l,igcm_co2) = zq(ig,l,igcm_co2) - dMice 529 529 end if 530 end if ! nouveau end if530 end if ! if zq(ccnco2_number) >= 1 531 531 !----------------------------------------------------------------------------------------------------------------------! 532 532 ! 4.3 Dust cores releasing if no more co2 ice 533 533 !----------------------------------------------------------------------------------------------------------------------! 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) 551 541 end if 552 542 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 569 568 end do ! of ig loop 570 569 end do ! of nlayer loop -
trunk/LMDZ.MARS/util/compile
r1193 r2394 3 3 # > compile concat 4 4 # > 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 10 NETCDF='/opt/netcdf45/ifort15' 5 11 6 12 # pgf90 -Bstatic $1.F90 \ … … 9 15 10 16 #ifort $1.F90 \ 11 #pgf90 $1.F90 \17 #pgf90 -Bstatic $1.F90 \ 12 18 ifort $1.F90 \ 13 19 -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 15 22 16 23 # Before running that on you computer you might want to change : -
trunk/LMDZ.MARS/util/concatnc.F90
r2313 r2394 28 28 include "netcdf.inc" ! NetCDF definitions 29 29 30 character (len= 80), dimension(1000) :: file30 character (len=256), dimension(1000) :: file 31 31 ! file(): input file(s) names(s) 32 32 character (len=30), dimension(16) :: notconcat … … 34 34 character (len=50), dimension(:), allocatable :: var 35 35 ! var(): name(s) of variable(s) that will be concatenated 36 character (len= 50) :: tmpvar,tmpfile,title,units36 character (len=256) :: tmpvar,tmpfile,title,units 37 37 ! tmpvar(): used to temporarily store a variable name 38 38 ! tmpfile(): used to temporarily store a file name … … 138 138 139 139 nbfile=0 140 read(*,'(a 50)') tmpfile140 read(*,'(a256)') tmpfile 141 141 do While (len_trim(tmpfile).ne.0) 142 142 nbfile=nbfile+1 143 143 file(nbfile)=tmpfile 144 read(*,'(a 50)') tmpfile144 read(*,'(a256)') tmpfile 145 145 enddo 146 146
Note: See TracChangeset
for help on using the changeset viewer.