diff --git a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H index 83b75ab24a..53708f58e2 100644 --- a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H +++ b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H @@ -152,6 +152,13 @@ public: } + //- Return field name + const word& fieldName() const + { + return fieldName_; + } + + //- Return initial residual scalar initialResidual() const { diff --git a/src/OpenFOAM/meshes/data/data.C b/src/OpenFOAM/meshes/data/data.C index 6e8813f779..f3d4381e15 100644 --- a/src/OpenFOAM/meshes/data/data.C +++ b/src/OpenFOAM/meshes/data/data.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,4 +69,13 @@ void Foam::data::setSolverPerformance } +void Foam::data::setSolverPerformance +( + const lduMatrix::solverPerformance& sp +) const +{ + setSolverPerformance(sp.fieldName(), sp); +} + + // ************************************************************************* // diff --git a/src/OpenFOAM/meshes/data/data.H b/src/OpenFOAM/meshes/data/data.H index c8e6f98421..5aa7084923 100644 --- a/src/OpenFOAM/meshes/data/data.H +++ b/src/OpenFOAM/meshes/data/data.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -90,6 +90,12 @@ public: const word& name, const lduMatrix::solverPerformance& ) const; + + //- Add/set the solverPerformance entry, using its fieldName + void setSolverPerformance + ( + const lduMatrix::solverPerformance& + ) const; };