Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
a72229fb
Commit
a72229fb
authored
Aug 17, 2020
by
Praetorius, Simon
Browse files
cleanup whitspaces and naming of writer classes
parent
1334467e
Changes
68
Hide whitespace changes
Inline
Side-by-side
dune/vtk/CMakeLists.txt
View file @
a72229fb
...
...
@@ -16,15 +16,15 @@ install(FILES
function.hh
localfunction.hh
localfunctioninterface.hh
reader.hh
reader.impl.hh
timeserieswriter.hh
timeserieswriter.impl.hh
vtk
reader.hh
vtk
reader.impl.hh
vtk
timeserieswriter.hh
vtk
timeserieswriter.impl.hh
types.hh
writer.hh
writerinterface.hh
writerinterface.impl.hh
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk
writer
)
vtk
writer.hh
vtk
writerinterface.hh
vtk
writerinterface.impl.hh
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk
)
add_subdirectory
(
datacollectors
)
add_subdirectory
(
gridcreators
)
...
...
dune/vtk/datacollectorinterface.hh
View file @
a72229fb
...
...
@@ -5,10 +5,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Base class for data collectors in a CRTP style.
/**
* \tparam GridViewType Model of Dune::GridView
...
...
dune/vtk/datacollectorinterface.impl.hh
View file @
a72229fb
...
...
@@ -2,30 +2,26 @@
#include
<dune/geometry/referenceelements.hh>
namespace
Dune
{
namespace
Vtk
{
namespace
Dune
{
namespace
Vtk
{
template
<
class
GV
,
class
D
,
class
P
>
template
<
class
T
,
class
VtkFunction
>
std
::
vector
<
T
>
DataCollectorInterface
<
GV
,
D
,
P
>
::
cellDataImpl
(
VtkFunction
const
&
fct
)
const
{
std
::
vector
<
T
>
data
;
data
.
reserve
(
this
->
numCells
()
*
fct
.
ncomps
());
template
<
class
GV
,
class
D
,
class
P
>
template
<
class
T
,
class
VtkFunction
>
std
::
vector
<
T
>
DataCollectorInterface
<
GV
,
D
,
P
>
::
cellDataImpl
(
VtkFunction
const
&
fct
)
const
{
std
::
vector
<
T
>
data
;
data
.
reserve
(
this
->
numCells
()
*
fct
.
ncomps
());
auto
localFct
=
localFunction
(
fct
);
for
(
auto
const
&
e
:
elements
(
gridView_
,
partition
))
{
localFct
.
bind
(
e
);
auto
refElem
=
referenceElement
<
T
,
dim
>
(
e
.
type
());
for
(
int
comp
=
0
;
comp
<
fct
.
ncomps
();
++
comp
)
data
.
emplace_back
(
localFct
.
evaluate
(
comp
,
refElem
.
position
(
0
,
0
)));
localFct
.
unbind
();
}
return
data
;
}
auto
localFct
=
localFunction
(
fct
);
for
(
auto
const
&
e
:
elements
(
gridView_
,
partition
))
{
localFct
.
bind
(
e
);
auto
refElem
=
referenceElement
<
T
,
dim
>
(
e
.
type
());
for
(
int
comp
=
0
;
comp
<
fct
.
ncomps
();
++
comp
)
data
.
emplace_back
(
localFct
.
evaluate
(
comp
,
refElem
.
position
(
0
,
0
)));
localFct
.
unbind
();
}
return
data
;
}
}
// end namespace Vtk
}
// end namespace Dune
}
}
// end namespace Dune::Vtk
dune/vtk/datacollectors/CMakeLists.txt
View file @
a72229fb
...
...
@@ -7,6 +7,6 @@ install(FILES
structureddatacollector.hh
unstructureddatacollector.hh
yaspdatacollector.hh
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk
writer
/datacollectors
)
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk/datacollectors
)
add_subdirectory
(
test
)
\ No newline at end of file
dune/vtk/datacollectors/continuousdatacollector.hh
View file @
a72229fb
...
...
@@ -13,10 +13,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Implementation of \ref DataCollector for linear cells, with continuous data.
template
<
class
GridView
,
class
Partition
>
class
ContinuousDataCollector
...
...
dune/vtk/datacollectors/discontinuousdatacollector.hh
View file @
a72229fb
...
...
@@ -9,10 +9,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Implementation of \ref DataCollector for linear cells, with discontinuous data.
template
<
class
GridView
,
class
Partition
>
class
DiscontinuousDataCollector
...
...
dune/vtk/datacollectors/lagrangedatacollector.hh
View file @
a72229fb
...
...
@@ -15,10 +15,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Implementation of \ref DataCollector for lagrange cells
template
<
class
GridView
,
int
ORDER
=
-
1
>
class
LagrangeDataCollector
...
...
dune/vtk/datacollectors/quadraticdatacollector.hh
View file @
a72229fb
...
...
@@ -12,10 +12,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Implementation of \ref DataCollector for quadratic cells, with continuous data.
template
<
class
GridView
>
class
QuadraticDataCollector
...
...
dune/vtk/datacollectors/spdatacollector.hh
View file @
a72229fb
...
...
@@ -16,10 +16,8 @@
namespace
Dune
{
namespace
Vtk
{
#if HAVE_DUNE_SPGRID
// Specialization for SPGrid
...
...
dune/vtk/datacollectors/structureddatacollector.hh
View file @
a72229fb
...
...
@@ -12,10 +12,8 @@
namespace
Dune
{
namespace
Vtk
{
/// The Interface for structured data-collectors
template
<
class
GridView
,
class
Derived
>
class
StructuredDataCollectorInterface
...
...
dune/vtk/datacollectors/unstructureddatacollector.hh
View file @
a72229fb
...
...
@@ -8,10 +8,8 @@
namespace
Dune
{
namespace
Vtk
{
struct
Cells
{
std
::
vector
<
std
::
uint8_t
>
types
;
...
...
dune/vtk/datacollectors/yaspdatacollector.hh
View file @
a72229fb
...
...
@@ -17,10 +17,8 @@
namespace
Dune
{
namespace
Vtk
{
// Specialization for YaspGrid
template
<
class
GridView
>
class
YaspDataCollector
...
...
dune/vtk/defaultvtkfunction.hh
View file @
a72229fb
...
...
@@ -9,10 +9,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Type erasure for dune-functions LocalFunction interface
template
<
class
GridView
,
class
LocalFunction
>
class
LocalFunctionWrapper
final
...
...
dune/vtk/filereader.hh
View file @
a72229fb
...
...
@@ -10,10 +10,8 @@
namespace
Dune
{
namespace
Vtk
{
template
<
class
Grid
,
class
FilerReaderImp
>
class
FileReader
{
...
...
dune/vtk/filewriter.hh
View file @
a72229fb
...
...
@@ -7,10 +7,8 @@
namespace
Dune
{
namespace
Vtk
{
class
FileWriter
{
public:
...
...
dune/vtk/forward.hh
View file @
a72229fb
...
...
@@ -6,7 +6,6 @@ namespace Dune
{
namespace
Vtk
{
// forward declaration of all classes in dune-vtk
template
<
class
GridView
,
class
Derived
,
class
Partition
=
Partitions
::
InteriorBorder
>
...
...
dune/vtk/function.hh
View file @
a72229fb
...
...
@@ -10,7 +10,7 @@
namespace
Dune
{
// forward declarations
template
<
class
T
,
int
N
>
class
FieldVector
;
...
...
@@ -19,7 +19,6 @@ namespace Dune
namespace
Vtk
{
/// Wrapper class for functions allowing local evaluations.
template
<
class
GridView
>
class
Function
...
...
dune/vtk/gridcreatorinterface.hh
View file @
a72229fb
...
...
@@ -12,10 +12,8 @@
namespace
Dune
{
namespace
Vtk
{
/// Base class for grid creators in a CRTP style.
/**
* Construct a grid from data read from VTK files.
...
...
dune/vtk/gridcreators/CMakeLists.txt
View file @
a72229fb
...
...
@@ -7,4 +7,4 @@ install(FILES
lagrangegridcreator.hh
parallelgridcreator.hh
serialgridcreator.hh
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk
writer
/gridcreators
)
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dune/vtk/gridcreators
)
dune/vtk/gridcreators/continuousgridcreator.hh
View file @
a72229fb
...
...
@@ -14,10 +14,8 @@
namespace
Dune
{
namespace
Vtk
{
// Create a grid where the input points and connectivity is already
// connected correctly.
template
<
class
Grid
>
...
...
Prev
1
2
3
4
Next
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