specie class construction with dict w/o nCharges
This commit is contained in:
parent
3cab74864c
commit
3eec143b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ Foam::specie::specie(const dictionary& dict)
|
|||
name_(dict.dictName()),
|
||||
nMoles_(readScalar(dict.subDict("specie").lookup("nMoles"))),
|
||||
molWeight_(readScalar(dict.subDict("specie").lookup("molWeight"))),
|
||||
nCharges_(readScalar(dict.subDict("specie").lookup("nCharges")))
|
||||
nCharges_(dict.subDict("specie").lookupOrDefault("nCharges", 0.0))
|
||||
{}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue