STYLE: Refactoring use of meshState in {fv|faMesh}

{fv|fa}Mesh classes inherited the [old] data class (renamed meshState)
- meshState removed from inheritance list and added as data members
This commit is contained in:
Andrew Heather
2023-11-28 11:10:59 +00:00
parent da20ff2666
commit 79cd147de0
25 changed files with 67 additions and 58 deletions

View File

@ -125,7 +125,7 @@ equationInitialResidualCondition::apply()
}
const fvMesh& mesh = refCast<const fvMesh>(obr_);
const dictionary& solverDict = mesh.solverPerformanceDict();
const dictionary& solverDict = mesh.data().solverPerformanceDict();
const auto& selection = fieldSelection_.selection();
List<scalar> result(selection.size(), -VGREAT);

View File

@ -97,7 +97,7 @@ bool Foam::functionObjects::runTimeControls::equationMaxIterCondition::apply()
}
const fvMesh& mesh = refCast<const fvMesh>(obr_);
const dictionary& solverDict = mesh.solverPerformanceDict();
const dictionary& solverDict = mesh.data().solverPerformanceDict();
List<label> result(fieldNames_.size(), -1);

View File

@ -79,7 +79,8 @@ void Foam::functionObjects::solverInfo::initialiseResidualField
if (foundObject<volFieldType>(fieldName))
{
const Foam::dictionary& solverDict = mesh_.solverPerformanceDict();
const Foam::dictionary& solverDict =
mesh_.data().solverPerformanceDict();
if (solverDict.found(fieldName))
{
@ -113,7 +114,8 @@ void Foam::functionObjects::solverInfo::updateSolverInfo(const word& fieldName)
if (foundObject<volFieldType>(fieldName))
{
const Foam::dictionary& solverDict = mesh_.solverPerformanceDict();
const Foam::dictionary& solverDict =
mesh_.data().solverPerformanceDict();
if (solverDict.found(fieldName))
{