Skip to content
GitLab
Menu
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
6c90ecc0
Commit
6c90ecc0
authored
Sep 03, 2018
by
Praetorius, Simon
Browse files
resolved a clang error
parent
78a6d075
Changes
2
Hide whitespace changes
Inline
Side-by-side
dune/vtk/vtkwriterinterface.impl.hh
View file @
6c90ecc0
...
@@ -289,8 +289,8 @@ std::uint64_t VtkWriterInterface<GV,DC>
...
@@ -289,8 +289,8 @@ std::uint64_t VtkWriterInterface<GV,DC>
pos_type
end_pos
=
out
.
tellp
();
pos_type
end_pos
=
out
.
tellp
();
if
(
format_
==
Vtk
::
COMPRESSED
)
{
if
(
format_
==
Vtk
::
COMPRESSED
)
{
out
.
seekp
(
begin_pos
+
std
::
int64_t
(
3
*
sizeof
(
std
::
uint64_t
)));
out
.
seekp
(
begin_pos
+
std
::
streamoff
(
3
*
sizeof
(
std
::
uint64_t
)));
out
.
write
((
char
*
)
cbs
.
data
(),
num_blocks
*
sizeof
(
std
::
uint64_t
));
out
.
write
((
char
*
)
cbs
.
data
(),
std
::
streamsize
(
num_blocks
*
sizeof
(
std
::
uint64_t
))
)
;
out
.
seekp
(
end_pos
);
out
.
seekp
(
end_pos
);
}
}
...
...
src/vectorwriter.cc
View file @
6c90ecc0
...
@@ -12,13 +12,8 @@
...
@@ -12,13 +12,8 @@
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#include
<dune/common/exceptions.hh>
// We use exceptions
#include
<dune/common/exceptions.hh>
// We use exceptions
#include
<dune/functions/functionspacebases/defaultglobalbasis.hh>
#include
<dune/functions/functionspacebases/lagrangebasis.hh>
#include
<dune/functions/functionspacebases/interpolate.hh>
#include
<dune/functions/gridfunctions/analyticgridviewfunction.hh>
#include
<dune/functions/gridfunctions/analyticgridviewfunction.hh>
#include
<dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/vtk/vtkwriter.hh>
#include
<dune/vtk/vtkwriter.hh>
using
namespace
Dune
;
using
namespace
Dune
;
...
@@ -37,9 +32,6 @@ static TestCases test_cases = {
...
@@ -37,9 +32,6 @@ static TestCases test_cases = {
template
<
class
GridView
>
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
{
using
namespace
BasisFactory
;
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
if
(
GridView
::
dimensionworld
>
0
)
c
[
0
]
=
11.0
;
if
(
GridView
::
dimensionworld
>
0
)
c
[
0
]
=
11.0
;
if
(
GridView
::
dimensionworld
>
1
)
c
[
1
]
=
7.0
;
if
(
GridView
::
dimensionworld
>
1
)
c
[
1
]
=
7.0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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