Commit e1801bc7 authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: add solverPerformance::fieldName(), simplified data::setSolverPerformance

parent 4712e131
...@@ -152,6 +152,13 @@ public: ...@@ -152,6 +152,13 @@ public:
} }
//- Return field name
const word& fieldName() const
{
return fieldName_;
}
//- Return initial residual //- Return initial residual
scalar initialResidual() const scalar initialResidual() const
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -69,4 +69,13 @@ void Foam::data::setSolverPerformance ...@@ -69,4 +69,13 @@ void Foam::data::setSolverPerformance
} }
void Foam::data::setSolverPerformance
(
const lduMatrix::solverPerformance& sp
) const
{
setSolverPerformance(sp.fieldName(), sp);
}
// ************************************************************************* // // ************************************************************************* //
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -90,6 +90,12 @@ public: ...@@ -90,6 +90,12 @@ public:
const word& name, const word& name,
const lduMatrix::solverPerformance& const lduMatrix::solverPerformance&
) const; ) const;
//- Add/set the solverPerformance entry, using its fieldName
void setSolverPerformance
(
const lduMatrix::solverPerformance&
) const;
}; };
......
Markdown is supported
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