[3090] | 1 | //chem_gasphase_mod.kpp |
---|
| 2 | // |
---|
| 3 | //Former revisions |
---|
| 4 | //---------------- |
---|
| 5 | // $Id: chem_gasphase_mod.kpp 2459 2017-09-13 14:10:33Z forkel $ |
---|
[3585] | 6 | // initial revision branch chemistry rev 3090 |
---|
[3090] | 7 | // |
---|
| 8 | #include cbm4.spc |
---|
| 9 | #include cbm4.eqn |
---|
| 10 | #INTEGRATOR rosenbrock |
---|
| 11 | #LANGUAGE Fortran90 |
---|
| 12 | #HESSIAN on |
---|
| 13 | #STOICMAT on |
---|
| 14 | // |
---|
| 15 | // ******************************************************************************************* |
---|
| 16 | // *** adapt the lines below occurding to the photolysis reactions of your mechanism * |
---|
| 17 | // *** adapt the number of photolysis frequencies NPHO * |
---|
| 18 | // *** adapt/extend the indices in the INTEGER, PARAMETER,PUBLIC statement below * |
---|
| 19 | // *** adapt/extend PHOT_NAMES: Note that the order of PHOT_NAMES and the indices must match * |
---|
| 20 | // ******************************************************************************************* |
---|
| 21 | // |
---|
| 22 | #INLINE F90_DATA |
---|
| 23 | ! INLINE F90_DATA: Declaration of global variables for photolysis |
---|
| 24 | ! REAL(kind=dp) :: phot(nphot) must eventually be moved to GLOBAL later for vector version |
---|
| 25 | INTEGER, PARAMETER :: nphot = 9 |
---|
| 26 | ! phot Photolysis frequencies |
---|
| 27 | REAL(kind=dp) :: phot(nphot) |
---|
| 28 | |
---|
| 29 | INTEGER, PARAMETER,PUBLIC :: j_no2 = 1 |
---|
| 30 | INTEGER, PARAMETER,PUBLIC :: j_o33p = 2 |
---|
| 31 | INTEGER, PARAMETER,PUBLIC :: j_o31d = 3 |
---|
| 32 | INTEGER, PARAMETER,PUBLIC :: j_no3o = 4 |
---|
| 33 | INTEGER, PARAMETER,PUBLIC :: j_no3o2 = 5 |
---|
| 34 | INTEGER, PARAMETER,PUBLIC :: j_hono = 6 |
---|
| 35 | INTEGER, PARAMETER,PUBLIC :: j_h2o2 = 7 |
---|
| 36 | INTEGER, PARAMETER,PUBLIC :: j_ch2or = 8 |
---|
| 37 | INTEGER, PARAMETER,PUBLIC :: j_ch2om = 9 |
---|
| 38 | |
---|
| 39 | CHARACTER(LEN=15), PARAMETER, DIMENSION(NPHOT) :: phot_names = (/ & |
---|
| 40 | 'J_NO2 ','J_O33P ','J_O31D ', & |
---|
| 41 | 'J_NO3O ','J_NO3O2 ','J_HONO ', & |
---|
| 42 | 'J_H2O2 ','J_HCHO_B ','J_HCHO_A '/) |
---|
| 43 | #ENDINLINE |
---|
| 44 | |
---|
| 45 | #INLINE F90_INIT |
---|
| 46 | fix(indf_h2o) = qvap |
---|
| 47 | #ENDINLINE |
---|
| 48 | |
---|