Conceptual Models > Database selection and modification

K-feldspar input not recognised

(1/2) > >>

kennedyantwi1:
Dear Dr. Parkhurst,
I keep getting the following error messages at any attempt to include K-feldspar in my model. Please, your guidance and suggestions would be appreciated. Thanks.

ERROR: Syntax_error: missing = in line:
ERROR: in BASIC line
6 molarVolume_K-feldspar=0.10911
ERROR: Fatal Basic error in USER_PUNCH.

Here's a part of the input file:

4 Pore_volume = Gas_Volume + Water_volume
5 Bulk_volume = Pore_volume/Initial_porosity
6 molarVolume_K-feldspar = 0.10911   # L/mol Literature data 109.11+-0.30
7 molarVolume_kaolinite = 0.09931   # L/mol 99.31+-0.30
8 molarVolume_quartz = 0.022695    # L/mol

dlparkhurst:
You can't use a "-" in a variable name, and you can't do a subtraction on the left-hand-side of the equal.

kennedyantwi1:
Thanks for your response.
1. I haven't used any inverted comma's in these scripts nor done any subtraction.
I think you've taken my UNDERSCORE  "_" as a Minus symbol.

kennedyantwi1:
And please for your further information, I have ran the model earlier in the day by Taking out the K-feldspar keywords from the script. So, I think the issue's got to do with the K-feldspar???
Thanks in advance for your suggestions.

dlparkhurst:
Please use the following:


--- Code: ---6 molarVolume_K_feldspar = 0.10911   # L/mol Literature data 109.11+-0.30

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version