mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: resolved merge conflict
This commit is contained in:
@ -59,9 +59,7 @@ namespace vtk
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Constants
|
||||
|
||||
// General Functions
|
||||
// General Functions
|
||||
|
||||
//- Return a default asciiFormatter
|
||||
autoPtr<vtk::formatter> newFormatter(std::ostream& os);
|
||||
@ -94,7 +92,7 @@ namespace vtk
|
||||
void writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const UList<Type>& lst
|
||||
const UList<Type>& list
|
||||
);
|
||||
|
||||
//- Write a list of values.
|
||||
@ -103,7 +101,7 @@ namespace vtk
|
||||
void writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const FixedList<Type, Size>& lst
|
||||
const FixedList<Type, Size>& list
|
||||
);
|
||||
|
||||
|
||||
@ -113,7 +111,7 @@ namespace vtk
|
||||
void writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const UList<Type>& lst,
|
||||
const UList<Type>& list,
|
||||
const labelUList& addressing
|
||||
);
|
||||
|
||||
@ -126,7 +124,7 @@ namespace vtk
|
||||
namespace legacy
|
||||
{
|
||||
|
||||
// Constants
|
||||
// Constants
|
||||
|
||||
//- Strings corresponding to the (POLYDATA, UNSTRUCTURED_GRID) elements
|
||||
extern const Foam::Enum<vtk::fileTag> contentNames;
|
||||
@ -135,7 +133,7 @@ namespace legacy
|
||||
extern const Foam::Enum<vtk::fileTag> dataTypeNames;
|
||||
|
||||
|
||||
// Functions
|
||||
// Functions
|
||||
|
||||
//- Emit header for legacy file.
|
||||
// Writes "ASCII" or "BINARY" depending on specified type.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2016-2107 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -44,12 +44,12 @@ template<class Type>
|
||||
void Foam::vtk::writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const UList<Type>& lst
|
||||
const UList<Type>& list
|
||||
)
|
||||
{
|
||||
forAll(lst, i)
|
||||
for (const Type& val : list)
|
||||
{
|
||||
write(fmt, lst[i]);
|
||||
write(fmt, val);
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,12 +58,12 @@ template<class Type, unsigned Size>
|
||||
void Foam::vtk::writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const FixedList<Type, Size>& lst
|
||||
const FixedList<Type, Size>& list
|
||||
)
|
||||
{
|
||||
for (unsigned i=0; i<Size; ++i)
|
||||
for (const Type& val : list)
|
||||
{
|
||||
write(fmt, lst[i]);
|
||||
write(fmt, val);
|
||||
}
|
||||
}
|
||||
|
||||
@ -72,13 +72,13 @@ template<class Type>
|
||||
void Foam::vtk::writeList
|
||||
(
|
||||
vtk::formatter& fmt,
|
||||
const UList<Type>& lst,
|
||||
const UList<Type>& list,
|
||||
const labelUList& addressing
|
||||
)
|
||||
{
|
||||
forAll(addressing, i)
|
||||
for (const label idx : addressing)
|
||||
{
|
||||
write(fmt, lst[addressing[i]]);
|
||||
write(fmt, list[idx]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user