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
dumux-repositories
dumux
Commits
745b891d
Commit
745b891d
authored
Oct 18, 2019
by
Kilian Weishaupt
Browse files
[io][pointcloudwriter] Rename DimVector to DimWorldVectorDimVector and fix includes
parent
5f665e56
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/io/pointcloudvtkwriter.hh
View file @
745b891d
...
...
@@ -25,6 +25,8 @@
#define DUMUX_POINTCLOUD_VTK_WRITER_HH
#include
<string>
#include
<vector>
#include
<list>
#include
<dune/common/fvector.hh>
#include
<dune/common/exceptions.hh>
#include
<dune/common/path.hh>
...
...
@@ -44,7 +46,9 @@ namespace Dumux {
template
<
class
Scalar
,
class
GlobalPosition
>
class
PointCloudVtkWriter
{
using
DimVector
=
Dune
::
FieldVector
<
Scalar
,
GlobalPosition
::
size
()
>
;
// GlobalPosition is used for the point coordinates, DimWorldVector for the actual data.
// GlobalPosition's ctype does not necessarily equal Scalar.
using
DimWorldVector
=
Dune
::
FieldVector
<
Scalar
,
GlobalPosition
::
size
()
>
;
static
constexpr
unsigned
int
precision
=
6
;
static
constexpr
unsigned
int
numBeforeLineBreak
=
15
;
...
...
@@ -116,7 +120,7 @@ class PointCloudVtkWriter
public:
using
ScalarFunction
=
VTKFunction
<
std
::
vector
<
Scalar
>>
;
using
VectorFunction
=
VTKFunction
<
std
::
vector
<
DimVector
>>
;
using
VectorFunction
=
VTKFunction
<
std
::
vector
<
Dim
World
Vector
>>
;
PointCloudVtkWriter
(
const
std
::
vector
<
GlobalPosition
>&
coordinates
)
:
coordinates_
(
coordinates
)
...
...
@@ -194,7 +198,7 @@ public:
* \param v The vector containing the data
* \param name The name of the data set
*/
void
addPointData
(
const
std
::
vector
<
DimVector
>&
v
,
const
std
::
string
&
name
)
void
addPointData
(
const
std
::
vector
<
Dim
World
Vector
>&
v
,
const
std
::
string
&
name
)
{
assert
(
v
.
size
()
==
coordinates_
.
size
());
vectorPointData_
.
push_back
(
VectorFunction
(
v
,
name
,
3
));
...
...
@@ -393,7 +397,7 @@ private:
* \param file The output file
* \param g The vector
*/
void
writeToFile_
(
std
::
ostream
&
file
,
const
DimVector
&
g
)
void
writeToFile_
(
std
::
ostream
&
file
,
const
Dim
World
Vector
&
g
)
{
assert
(
g
.
size
()
>
1
&&
g
.
size
()
<
4
);
if
(
g
.
size
()
<
3
)
...
...
Timo Koch
@timok
mentioned in commit
65d21bfa
·
Oct 18, 2019
mentioned in commit
65d21bfa
mentioned in commit 65d21bfa097540258be3e07bedeae1ee9fdbbf08
Toggle commit list
Timo Koch
@timok
mentioned in merge request
!1765 (merged)
·
Oct 18, 2019
mentioned in merge request
!1765 (merged)
mentioned in merge request !1765
Toggle commit list
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