12.07.2015 Views

EQ3NR, A Computer Program for Geochemical Aqueous Speciation ...

EQ3NR, A Computer Program for Geochemical Aqueous Speciation ...

EQ3NR, A Computer Program for Geochemical Aqueous Speciation ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

STARTGet the time and date(call eqlib/timdat.f)Open the output and data1 filesWrite disclaimers, version ID,and time/date to the output andscreen filesGet the temperature range flag (ntpr)and set some compound constantswhich depend on the temperature(call eqlib/gntpr.f)TONEXTPAGESet the values of the dimensioningvariables; initialize certain constants,such as the gas constantGet the name (character string)<strong>for</strong> the option <strong>for</strong> computing theactivity coefficients of the aqueousspecies (call eqlib/nactop.f)Label 20: return point <strong>for</strong> a new problem;“zero” variables and arrayspertaining to a given problemIf the input file is not open, open itand make a stripped copy; readthe input <strong>for</strong> the first or a followingproblem from the stripped inputfile (call rdinp.f)Read the top part of the data1 file:species and phase names, compositions,reactions, and standardstate thermodynamic data; executeany input file options to alterthermodynamic data as part of thecurrent problem (call indatx.f)Find indices of the H + and Cl - ions(call eqlib/gspion.f)Moreinput found?yesSet species status flags (call flgstx.f)noGet the time and date and write themto the output and screen filesWrite “normal exit” to these filesand stopENDFROMPAGES 3AND 4Figure 4 (page 1 of 4). Simplified flow diagram of the <strong>EQ3NR</strong> main program (eq3nr.f).- 189 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!