Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
e1801bc7
Commit
e1801bc7
authored
Jun 02, 2010
by
Mark Olesen
Browse files
ENH: add solverPerformance::fieldName(), simplified data::setSolverPerformance
parent
4712e131
Changes
3
Show whitespace changes
Inline
Side-by-side
src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H
View file @
e1801bc7
...
@@ -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
{
{
...
...
src/OpenFOAM/meshes/data/data.C
View file @
e1801bc7
...
@@ -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
-200
9
OpenCFD Ltd.
\\ / A nd | Copyright (C)
2010
-20
1
0 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
);
}
// ************************************************************************* //
// ************************************************************************* //
src/OpenFOAM/meshes/data/data.H
View file @
e1801bc7
...
@@ -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
-200
9
OpenCFD Ltd.
\\ / A nd | Copyright (C)
2010
-20
1
0 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
;
};
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment