Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
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
EXADUNE
dune-grid
Commits
21e34367
Commit
21e34367
authored
15 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
backported patch 5094 (correctly expand 2D data to 3D)
[[Imported from SVN: r5321]]
parent
8e55d4e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/io/file/vtk/subsamplingvtkwriter.hh
+3
-0
3 additions, 0 deletions
grid/io/file/vtk/subsamplingvtkwriter.hh
with
3 additions
and
0 deletions
grid/io/file/vtk/subsamplingvtkwriter.hh
+
3
−
0
View file @
21e34367
...
...
@@ -358,6 +358,9 @@ namespace Dune
for
(
FunctionIterator
it
=
celldata
.
begin
();
it
!=
celldata
.
end
();
++
it
)
{
blocklength
=
ncells
*
(
*
it
)
->
ncomps
()
*
sizeof
(
float
);
//vtk file format: a vector data always should have 3 comps(with 3rd comp = 0 in 2D case)
if
((
*
it
)
->
ncomps
()
==
2
)
blocklength
=
ncells
*
(
3
)
*
sizeof
(
float
);
stream
.
write
(
blocklength
);
for
(
CellIterator
i
=
cellBegin
();
i
!=
cellEnd
();
++
i
)
{
...
...
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