Commit 55be2f0b authored by andy's avatar andy
Browse files

ENH: fvOptions - cache modelType so that derived classes can generate appropriate coeffs_ dict

parent 208f6302
......@@ -255,6 +255,7 @@ Foam::fv::option::option
)
:
name_(name),
modelType_(modelType),
mesh_(mesh),
dict_(dict),
coeffs_(dict.subDict(modelType + "Coeffs")),
......
......@@ -94,7 +94,10 @@ protected:
// Protected data
//- Source name
word name_;
const word name_;
//- Model type
const word modelType_;
//- Reference to the mesh database
const fvMesh& mesh_;
......
......@@ -96,7 +96,7 @@ bool Foam::fv::option::read(const dictionary& dict)
dict.lookup("duration") >> duration_;
}
coeffs_ = dict.subDict(type() + "Coeffs");
coeffs_ = dict.subDict(modelType_ + "Coeffs");
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment