@@ -24,15 +24,15 @@ ANEOS can be constructed one of two ways:
24
24
25
25
1. Using internal material input parameters from the Github repository for one of:
26
26
- quartz
27
- - dunnite
27
+ - dunite
28
28
- serpentine
29
29
For this constructor you *must* specify the material name as either the first argument or
30
30
using the "material=" keyword argument.
31
31
*NOTE* : if you use this option you can *only* use this single material for ANEOS (i.e., you
32
32
cannot use multiple ANEOS equations of state.)
33
33
Supported arguments for this constructor (default values in []):
34
34
material : Label for the material (required for this constructor, one of the above)
35
- units : Units the user wants to work in (required)
35
+ constants : Units the user wants to work in (required)
36
36
numRhoVals : [500] number of rho values to build table
37
37
numTvals : [500] number of temperature values to build table
38
38
rhoMin : [1e-3 g/cc] lower table bound in density
@@ -55,7 +55,7 @@ ANEOS can be constructed one of two ways:
55
55
rhoMax : [100 g/cc] upper table bound in density
56
56
Tmin : [1K] lower table bound in temperature
57
57
Tmax : [1e6K] upper table bound in temperature
58
- units : Units the user wants to work in (required) *REQUIRED*
58
+ constants : Units the user wants to work in (required) *REQUIRED*
59
59
externalPressure : [0.0] external pressure
60
60
minimumPressure : [-inf] minimum pressure
61
61
maximumPressure : [inf] maximum pressure
@@ -98,7 +98,7 @@ def _ANEOSFactory(RealConstructor,
98
98
(len(args) < iarg + 1 and not arg in kwargs)):
99
99
raise ValueError, ("ANEOS error: did not provide required arguments %s.\n" % arg) + expectedUsageString
100
100
if (len(args) > len(cppArgs) or
101
- min([arg in cppArgs for arg in kwargs] + [True]) == False):
101
+ min([arg in allArgs for arg in kwargs] + [True]) == False):
102
102
raise ValueError, "ANEOS unexpected argument.\n" + expectedUsageString
103
103
104
104
# Are we using one of the provided, canned materials?
@@ -111,8 +111,8 @@ def _ANEOSFactory(RealConstructor,
111
111
else:
112
112
material = None
113
113
if material:
114
- if material not in ("quartz", "dunnite ", "serpentine"):
115
- raise ValueError, "ANEOS: material must be one of (quartz, dunnite , serpentine), passed %s" % material
114
+ if material not in ("quartz", "dunite ", "serpentine"):
115
+ raise ValueError, "ANEOS: material must be one of (quartz, dunite , serpentine), passed %s" % material
116
116
filename = os.path.join("@ANEOS_INPUT_DEST_DIR@", {"quartz" : "quartz_.input",
117
117
"dunite" : "dunite_.input",
118
118
"serpentine" : "serpent.input"}[material])
0 commit comments