Changeset 2672
- Timestamp:
- Apr 27, 2022, 2:37:49 PM (3 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2669 r2672 3701 3701 == 25/04/2022 == AB 3702 3702 Put the CO2 ice scavenging ratio for dust and water ice to 20 instead of 100, to prevent drying of the water cycle. 3703 3704 == 27/04/2022 == EM 3705 Fixed option to initialize chemistry in testphys1d (inichim_newstart call 3706 arguments were wrong). 3707 Turned inichim_newstart.F90 into a module. -
trunk/LMDZ.MARS/libf/aeronomars/inichim_newstart.F90
r2636 r2672 1 module inichim_newstart_mod 2 3 implicit none 4 5 contains 6 1 7 subroutine inichim_newstart(ngrid, nq, pq, qsurf, ps, & 2 8 flagh2o, flagthermo) … … 49 55 ! outputs : 50 56 51 real,intent( out) :: pq(nbp_lon+1,nbp_lat,nbp_lev,nq) ! advected fields, ie chemical species57 real,intent(inout) :: pq(nbp_lon+1,nbp_lat,nbp_lev,nq) ! advected fields, ie chemical species 52 58 real,intent(out) :: qsurf(ngrid,nq) ! surface values (kg/m2) of tracers 53 59 … … 810 816 deallocate(vmrint) 811 817 812 end 818 end subroutine inichim_newstart 819 820 end module inichim_newstart_mod -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F
r2565 r2672 32 32 USE physiq_mod, ONLY: physiq 33 33 USE read_profile_mod, ONLY: read_profile 34 use inichim_newstart_mod, only: inichim_newstart 34 35 IMPLICIT NONE 35 36 … … 107 108 108 109 c Various intermediate variables 109 INTEGER thermo110 INTEGER flagthermo,flagh2o 110 111 REAL zls 111 112 REAL phi(nlayer),h(nlayer),s(nlayer) … … 117 118 integer :: nq=1 ! number of tracers 118 119 real :: latitude(1), longitude(1), cell_area(1) 120 ! dummy variables along "dynamics scalar grid" 121 real,allocatable :: qdyn(:,:,:,:),psdyn(:,:) 119 122 120 123 character*2 str2 … … 132 135 INTEGER ierr0 133 136 LOGICAL :: continu 137 138 logical :: present 134 139 135 140 c======================================================================= … … 644 649 if (photochem.or.callthermos) then 645 650 write(*,*) 'Initializing chemical species' 646 ! thermo=0: initialize over all atmospheric layers 647 thermo=0 648 call inichim_newstart(q,psurf,sig,nq,latitude,longitude, 649 $ cell_area,thermo,qsurf) 651 ! flagthermo=0: initialize over all atmospheric layers 652 flagthermo=0 653 ! check if "h2o_vap" has already been initialized 654 ! (it has been if there is a "profile_h2o_vap" file around) 655 inquire(file="profile_h2o_vap",exist=present) 656 if (present) then 657 flagh2o=0 ! 0: do not initialize h2o_vap 658 else 659 flagh2o=1 ! 1: initialize h2o_vap in inichim_newstart 660 endif 661 662 ! hack to accomodate that inichim_newstart assumes that 663 ! q & psurf arrays are on the dynamics scalar grid 664 allocate(qdyn(2,1,llm,nq),psdyn(2,1)) 665 qdyn(1,1,1:llm,1:nq)=q(1:llm,1:nq) 666 psdyn(1:2,1)=psurf 667 call inichim_newstart(ngrid,nq,qdyn,qsurf,psdyn, 668 $ flagh2o,flagthermo) 669 q(1:llm,1:nq)=qdyn(1,1,1:llm,1:nq) 650 670 endif 651 671
Note: See TracChangeset
for help on using the changeset viewer.