Closed GoogleCodeExporter closed 9 years ago
The nAtoms function in the Matlab interface requires the index of the species
and element, not the names:
nAtoms(gas, speciesIndex(gas, 'HCO'), elementIndex(gas, 'H'))
The nAtoms method in the Python interface accepts either indices or names, so
this would probably be a reasonable improvement for the Matlab interface.
Original comment by yarmond
on 12 Apr 2013 at 6:32
Original comment by yarmond
on 12 Apr 2013 at 6:32
Attached please find a patch to look up the element or species index if a
string is provided to the nAtoms function. It is based on r2644.
Bryan
Original comment by bryan.w....@gmail.com
on 5 Jan 2014 at 6:12
Attachments:
This issue was closed by revision r2657.
Original comment by yarmond
on 6 Jan 2014 at 6:46
Original issue reported on code.google.com by
jdemut...@gmail.com
on 12 Apr 2013 at 5:42