Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-vtk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
dune-vtk
Commits
6c90ecc0
Commit
6c90ecc0
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
resolved a clang error
parent
78a6d075
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/vtk/vtkwriterinterface.impl.hh
+2
-2
2 additions, 2 deletions
dune/vtk/vtkwriterinterface.impl.hh
src/vectorwriter.cc
+0
-8
0 additions, 8 deletions
src/vectorwriter.cc
with
2 additions
and
10 deletions
dune/vtk/vtkwriterinterface.impl.hh
+
2
−
2
View file @
6c90ecc0
...
...
@@ -289,8 +289,8 @@ std::uint64_t VtkWriterInterface<GV,DC>
pos_type
end_pos
=
out
.
tellp
();
if
(
format_
==
Vtk
::
COMPRESSED
)
{
out
.
seekp
(
begin_pos
+
std
::
int64_t
(
3
*
sizeof
(
std
::
uint64_t
)));
out
.
write
((
char
*
)
cbs
.
data
(),
num_blocks
*
sizeof
(
std
::
uint64_t
));
out
.
seekp
(
begin_pos
+
std
::
streamoff
(
3
*
sizeof
(
std
::
uint64_t
)));
out
.
write
((
char
*
)
cbs
.
data
(),
std
::
streamsize
(
num_blocks
*
sizeof
(
std
::
uint64_t
))
)
;
out
.
seekp
(
end_pos
);
}
...
...
This diff is collapsed.
Click to expand it.
src/vectorwriter.cc
+
0
−
8
View file @
6c90ecc0
...
...
@@ -12,13 +12,8 @@
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#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/discreteglobalbasisfunction.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/vtk/vtkwriter.hh>
using
namespace
Dune
;
...
...
@@ -37,9 +32,6 @@ static TestCases test_cases = {
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
using
namespace
BasisFactory
;
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
if
(
GridView
::
dimensionworld
>
0
)
c
[
0
]
=
11.0
;
if
(
GridView
::
dimensionworld
>
1
)
c
[
1
]
=
7.0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment