mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: pass legacy nCmpt as int
This commit is contained in:
@ -199,7 +199,7 @@ namespace legacy
|
||||
(
|
||||
std::ostream& os,
|
||||
const word& name,
|
||||
const label nCmpt,
|
||||
const int nCmpt,
|
||||
const label nEntries
|
||||
);
|
||||
|
||||
@ -208,7 +208,7 @@ namespace legacy
|
||||
(
|
||||
std::ostream& os,
|
||||
const word& name,
|
||||
const label nCmpt,
|
||||
const int nCmpt,
|
||||
const label nEntries
|
||||
);
|
||||
|
||||
|
||||
@ -123,7 +123,7 @@ inline void Foam::vtk::legacy::floatField
|
||||
(
|
||||
std::ostream& os,
|
||||
const word& fieldName,
|
||||
const label nCmpt,
|
||||
const int nCmpt,
|
||||
const label nEntries
|
||||
)
|
||||
{
|
||||
@ -135,7 +135,7 @@ inline void Foam::vtk::legacy::intField
|
||||
(
|
||||
std::ostream& os,
|
||||
const word& fieldName,
|
||||
const label nCmpt,
|
||||
const int nCmpt,
|
||||
const label nEntries
|
||||
)
|
||||
{
|
||||
|
||||
@ -32,7 +32,8 @@ inline void Foam::vtk::write
|
||||
const Type& val
|
||||
)
|
||||
{
|
||||
for (direction cmpt=0; cmpt < pTraits<Type>::nComponents; ++cmpt)
|
||||
const direction nCmpt = pTraits<Type>::nComponents;
|
||||
for (direction cmpt=0; cmpt < nCmpt; ++cmpt)
|
||||
{
|
||||
fmt.write(component(val, cmpt));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user