Changeset 2162 for trunk/LMDZ.MARS/libf/aeronomars
- Timestamp:
- Sep 24, 2019, 7:36:09 PM (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/calchim_mod.F90
r2160 r2162 1 MODULE calchim_mod 2 3 IMPLICIT NONE 4 5 REAL,SAVE,ALLOCATABLE :: zdqchim(:,:,:) ! Tendancy on pq due to photochemistry 6 REAL,SAVE,ALLOCATABLE :: zdqschim(:,:) ! Tendancy on qsurf due to photochemistry 7 8 CONTAINS 9 1 10 subroutine calchim(ngrid,nlayer,nq, & 2 11 ptimestep,pplay,pplev,pt,pdt,dist_sol,mu0, & … … 15 24 16 25 use conc_mod, only: mmean ! mean molecular mass of the atmosphere 17 use comcstfi_h 18 use photolysis_mod 26 use comcstfi_h, only: pi 27 use photolysis_mod, only: jonline, init_photolysis 19 28 use iono_h, only: temp_elect 20 29 … … 69 78 !======================================================================= 70 79 71 #include "callkeys.h"80 include "callkeys.h" 72 81 73 82 ! input: … … 637 646 end if ! of if (output) 638 647 639 return 640 end 648 end subroutine calchim 649 650 651 subroutine ini_calchim_mod(ngrid,nlayer,nq) 652 653 implicit none 654 655 integer,intent(in) :: ngrid ! number of atmospheric columns 656 integer,intent(in) :: nlayer ! number of atmospheric layers 657 integer,intent(in) :: nq ! number of tracers 658 659 allocate(zdqchim(ngrid,nlayer,nq)) 660 zdqchim(:,:,:)=0 661 allocate(zdqschim(ngrid,nq)) 662 zdqschim(:,:)=0 663 664 end subroutine ini_calchim_mod 665 666 667 subroutine end_calchim_mod 668 669 implicit none 670 671 if (allocated(zdqchim)) deallocate(zdqchim) 672 if (allocated(zdqschim)) deallocate(zdqschim) 673 674 end subroutine end_calchim_mod 675 676 END MODULE calchim_mod 677
Note: See TracChangeset
for help on using the changeset viewer.