1 !C=======================================================================
2 !C *** ISORROPIA CODE II
3 !C *** INCLUDE FILE 'ISRPIA.INC'
4 !C *** THIS FILE CONTAINS THE DECLARATIONS OF THE GLOBAL CONSTANTS
7 !C *** COPYRIGHT 1996-2008, UNIVERSITY OF MIAMI, CARNEGIE MELLON UNIVERSITY,
8 !C *** GEORGIA INSTITUTE OF TECHNOLOGY
9 !C *** WRITTEN BY ATHANASIOS NENES
10 !C *** UPDATED BY CHRISTOS FOUNTOUKIS
12 !C=======================================================================
15 IMPLICIT DOUBLE PRECISION (A-H,O-Z)
19 ! INTEGER NCOMP, NIONS,NGASAQ,NSLDS,NPAIR,NZSR,NERRMX
21 PARAMETER (NCOMP=8,NIONS=10,NGASAQ=3,NSLDS=19,NPAIR=23,NZSR=100,&
24 !change the NERRMX from 25 to 10000.
28 !C *** INPUT VARIABLES **************************************************
33 ! REAL W, WAER,TEMP,RH
34 ! DIMENSION W(NCOMP),WAER(NCOMP)
36 COMMON /INPT/ W(NCOMP), WAER(NCOMP), TEMP, RH, IPROB, METSTBL,&
39 !C *** WATER ACTIVITIES OF PURE SALT SOLUTIONS **************************
42 ! REAL AWAS, AWSS, AWAC, AWSC,&
43 ! AWAN, AWSN, AWSB, AWAB,&
44 ! AWSA, AWLC, AWCS, AWCN, &
45 ! AWCC, AWPS, AWPB, AWPN,&
46 ! AWPC, AWMS, AWMN, AWMC
48 ! DIMENSION AWAS(NZSR), AWSS(NZSR), AWAC(NZSR), AWSC(NZSR),&
49 ! AWAN(NZSR), AWSN(NZSR), AWSB(NZSR), AWAB(NZSR),&
50 ! AWSA(NZSR), AWLC(NZSR), AWCS(NZSR), AWCN(NZSR),&
51 ! AWCC(NZSR), AWPS(NZSR), AWPB(NZSR), AWPN(NZSR),&
52 ! AWPC(NZSR), AWMS(NZSR), AWMN(NZSR), AWMC(NZSR)
54 COMMON /ZSR / AWAS(NZSR), AWSS(NZSR), AWAC(NZSR), AWSC(NZSR),&
55 AWAN(NZSR), AWSN(NZSR), AWSB(NZSR), AWAB(NZSR),&
56 AWSA(NZSR), AWLC(NZSR), AWCS(NZSR), AWCN(NZSR),&
57 AWCC(NZSR), AWPS(NZSR), AWPB(NZSR), AWPN(NZSR),&
58 AWPC(NZSR), AWMS(NZSR), AWMN(NZSR), AWMC(NZSR)
60 !C *** DELIQUESCENCE RELATIVE HUMIDITIES ********************************
64 ! REAL DRH2SO4, DRNH42S4, DRNAHSO4, DRNACL, DRNANO3, &
65 ! DRNA2SO4, DRNH4HS4, DRLC, DRNH4NO3, DRNH4CL,&
66 ! DRCASO4, DRCANO32, DRCACL2, DRK2SO4, DRKHSO4,&
67 ! DRKNO3, DRKCL, DRMGSO4, DRMGNO32, DRMGCL2
69 COMMON /DRH / DRH2SO4, DRNH42S4, DRNAHSO4, DRNACL, DRNANO3, &
70 DRNA2SO4, DRNH4HS4, DRLC, DRNH4NO3, DRNH4CL,&
71 DRCASO4, DRCANO32, DRCACL2, DRK2SO4, DRKHSO4,&
72 DRKNO3, DRKCL, DRMGSO4, DRMGNO32, DRMGCL2
75 ! REAL DRMLCAB, DRMLCAS, DRMASAN, DRMG1, DRMG2,&
76 ! DRMG3, DRMH1, DRMH2, DRMI1, DRMI2,&
77 ! DRMI3, DRMQ1, DRMR1, DRMR2, DRMR3,&
78 ! DRMR4, DRMR5, DRMR6, DRMR7, DRMR8,&
79 ! DRMR9, DRMR10, DRMR11, DRMR12, DRMR13
82 COMMON /MDRH/ DRMLCAB, DRMLCAS, DRMASAN, DRMG1, DRMG2,&
83 DRMG3, DRMH1, DRMH2, DRMI1, DRMI2,&
84 DRMI3, DRMQ1, DRMR1, DRMR2, DRMR3,&
85 DRMR4, DRMR5, DRMR6, DRMR7, DRMR8,&
86 DRMR9, DRMR10, DRMR11, DRMR12, DRMR13,&
91 ! REAL DRMO1, DRMO2, DRMO3, DRML1, DRML2,&
92 ! DRML3, DRMM1, DRMM2, DRMP1, DRMP2,&
93 ! DRMP3, DRMP4, DRMP5, DRMV1
95 COMMON /MDRH2/ DRMO1, DRMO2, DRMO3, DRML1, DRML2,&
96 DRML3, DRMM1, DRMM2, DRMP1, DRMP2,&
97 DRMP3, DRMP4, DRMP5, DRMV1
100 !C *** VARIABLES FOR LIQUID AEROSOL PHASE *******************************
102 DOUBLE PRECISION MOLAL, MOLALR, M0
104 LOGICAL CALAOU, CALAIN, FRST, DRYF
106 ! DIMENSION MOLAL(NIONS), MOLALR(NPAIR)
108 ! INTEGER ZZ,Z,IACALC
112 ! EPSACT, COH, CHNO3, CHCL, &
115 ! DIMENSION GAMA(NPAIR), ZZ(NPAIR),&
116 ! Z(NIONS), GAMOU(NPAIR), GAMIN(NPAIR),&
119 COMMON /IONS/ MOLAL(NIONS), MOLALR(NPAIR), GAMA(NPAIR), ZZ(NPAIR),&
120 Z(NIONS), GAMOU(NPAIR), GAMIN(NPAIR),M0(NPAIR),&
122 EPSACT, COH, CHNO3, CHCL, &
123 WATER, IONIC, IACALC, &
124 FRST, CALAIN, CALAOU, DRYF
126 !C *** VARIABLES FOR SOLID AEROSOL PHASE ********************************
129 ! REAL CH2SO4, CNH42S4, CNH4HS4, CNACL, CNA2SO4, &
130 ! CNANO3, CNH4NO3, CNH4CL, CNAHSO4, CLC, CCASO4,&
131 ! CCANO32, CCACL2, CK2SO4, CKHSO4, CKNO3, CKCL,&
132 ! CMGSO4, CMGNO32, CMGCL2
134 COMMON /SALT/ CH2SO4, CNH42S4, CNH4HS4, CNACL, CNA2SO4, &
135 CNANO3, CNH4NO3, CNH4CL, CNAHSO4, CLC, CCASO4,&
136 CCANO32, CCACL2, CK2SO4, CKHSO4, CKNO3, CKCL,&
137 CMGSO4, CMGNO32, CMGCL2
139 !C *** VARIABLES FOR GAS PHASE ******************************************
143 ! REAL GNH3, GHNO3, GHCL
145 COMMON /GAS / GNH3, GHNO3, GHCL
147 !C *** EQUILIBRIUM CONSTANTS ********************************************
150 ! REAL XK1, XK2, XK3, XK4, XK5, XK6, XK7, XK8, XK9, XK10,&
151 ! XK11,XK12,XK13,XK14,XKW, XK21,XK22,XK31,XK32,XK41,&
152 ! XK42, XK15, XK16, XK17, XK18, XK19, XK20, XK23,&
155 COMMON /EQUK/ XK1, XK2, XK3, XK4, XK5, XK6, XK7, XK8, XK9, XK10,&
156 XK11,XK12,XK13,XK14,XKW, XK21,XK22,XK31,XK32,XK41,&
157 XK42, XK15, XK16, XK17, XK18, XK19, XK20, XK23,&
161 !C *** MOLECULAR WEIGHTS ************************************************
167 ! DIMENSIOn WMW(NCOMP), SMW(NPAIR), IMW(NIONS)
169 COMMON /OTHR/ R, IMW(NIONS), WMW(NCOMP), SMW(NPAIR)
171 !C *** SOLUTION/INFO VARIABLES ******************************************
175 ! REAL SULRATW, SULRAT, SODRAT, SO4RAT, CRNARAT, CRRAT
177 COMMON /CASE/ SULRATW, SULRAT, SODRAT, SO4RAT, CRNARAT, CRRAT, &
182 ! INTEGER MAXIT, NSWEEP, NDIV, ICLACT
184 COMMON /SOLN/ EPS, MAXIT, NSWEEP, NDIV, ICLACT
186 !C *** ERROR SYSTEM *****************************************************
189 INTEGER ERRSTK, NOFER
191 COMMON /EROR/ STKOFL, NOFER, ERRSTK(NERRMX), ERRMSG(NERRMX)
193 !C *** GENERIC VARIABLES ************************************************
197 ! REAL GREAT, TINY, TINY2, ZERO, ONE
199 COMMON /CGEN/ GREAT, TINY, TINY2, ZERO, ONE, VERSION
201 !C *** END OF INCLUDE FILE **********************************************