Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
4c2e86e3
Commit
4c2e86e3
authored
Nov 16, 2012
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write parallel vector VTUs corrected
parent
76590ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
AMDiS/src/io/FileWriter.cc
AMDiS/src/io/FileWriter.cc
+4
-0
AMDiS/src/io/VtkVectorWriter.hh
AMDiS/src/io/VtkVectorWriter.hh
+14
-4
No files found.
AMDiS/src/io/FileWriter.cc
View file @
4c2e86e3
...
...
@@ -157,7 +157,11 @@ namespace AMDiS {
}
if
(
writeParaViewVectorFormat
)
{
#if HAVE_PARALLEL_DOMAIN_AMDIS
VtkVectorWriter
::
writeFile
(
solutionVecs
,
paraFilename
+
paraviewFileExt
,
true
,
writeAs3dVector
);
#else
VtkVectorWriter
::
writeFile
(
solutionVecs
,
fn
+
paraviewFileExt
,
true
,
writeAs3dVector
);
#endif
// VtkVectorWriter::Impl<double> vtkVectorWriter(&dataCollectors, writeAs3dVector);
// vtkVectorWriter.setCompression(compression);
...
...
AMDiS/src/io/VtkVectorWriter.hh
View file @
4c2e86e3
...
...
@@ -98,10 +98,20 @@ namespace AMDiS {
<<
" </PCells>
\n
"
;
file
<<
" <PPointData>
\n
"
;
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
dataCollector
->
size
());
i
++
)
file
<<
" <PDataArray type=
\"
Float32
\"
Name=
\"
value"
<<
i
<<
"
\"
format=
\"
ascii
\"
/>
\n
"
;
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
dataCollector
->
size
());
i
++
)
{
S
temp
=
(
*
((
*
dataCollector
)[
i
]
->
getValues
()))[
0
];
int
numComponent
=
num_rows
(
temp
);
std
::
string
name
=
(
*
dataCollector
)[
i
]
->
getValues
()
->
getName
();
if
(
name
.
find_first_not_of
(
"
\n\r\t
"
)
==
std
::
string
::
npos
)
name
=
"value"
+
boost
::
lexical_cast
<
std
::
string
>
(
i
);
file
<<
" <PDataArray type=
\"
Float32
\"
Name=
\"
"
<<
name
<<
"
\"
format=
\"
ascii
\"
"
<<
(
numComponent
>
1
?
" NumberOfComponents=
\"
"
+
boost
::
lexical_cast
<
std
::
string
>
(
numComponent
)
+
"
\"
"
:
""
)
<<
"/>
\n
"
;
}
file
<<
" </PPointData>
\n
"
;
for
(
int
i
=
0
;
i
<
nRanks
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
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