What steps will reproduce the problem?
1. install cantera 2.1.0
2. create Solution object from python interface, e.g.
import cantera as ct
gas = ct.Solution('some_mech.cti')
# this works
print(gas.n_species)
print(gas.species_names)
print(gas.molecular_weights)
# the last one doesn't work
print(gas.n_elements)
print(gas.element_names)
print(gas.atomic_weights) # should correspond to former gas.atomicWeights()
3. the last statement fails
What is the expected output? What do you see instead?
... same as gas.atomicWeights() in old python interface. Elements are
hard-coded, and not necessarily in species list (see comments on issue 149)
What version of the product are you using? On what operating system?
... svn-r2572 on Fedora 19
Please provide any additional information below.
... my cantera.conf:
prefix = '/opt/cantera-r2572'
python_package = 'new'
python3_package = 'y'
doxygen_docs = True
use_sundials = 'y'
sundials_include = '/usr/include'
sundials_libdir = '/usr/lib64'
blas_lapack_libs = 'lapack,atlas,f77blas,boost_system'
blas_lapack_dir = '/usr/lib64/atlas'
cxx_flags = '-lboost_system'
build_thread_safe = True
Original issue reported on code.google.com by ischo...@gmail.com on 8 Nov 2013 at 5:24
Original issue reported on code.google.com by
ischo...@gmail.com
on 8 Nov 2013 at 5:24