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
amdis
Commits
5d144c00
Commit
5d144c00
authored
Sep 24, 2008
by
Thomas Witkowski
Browse files
* Added static VtkWriter::writeFile for simple file writing
parent
18a9b36b
Changes
3
Show whitespace changes
Inline
Side-by-side
AMDiS/src/ProblemScal.h
View file @
5d144c00
...
...
@@ -177,18 +177,24 @@ namespace AMDiS {
/** \brief
* Returns number of managed problems
*/
virtual
int
getNumProblems
()
{
return
1
;
};
virtual
int
getNumProblems
()
{
return
1
;
};
/** \brief
* Implementation of ProblemStatBase::getNumComponents()
*/
virtual
int
getNumComponents
()
{
return
1
;
};
virtual
int
getNumComponents
()
{
return
1
;
};
/** \brief
* Returns the problem with the given number. If only one problem
* is managed by this master problem, the number hasn't to be given.
*/
virtual
ProblemStatBase
*
getProblem
(
int
number
=
0
)
{
return
this
;
};
virtual
ProblemStatBase
*
getProblem
(
int
number
=
0
)
{
return
this
;
};
/** \brief
* Writes output files.
...
...
AMDiS/src/VtkWriter.cc
View file @
5d144c00
...
...
@@ -414,4 +414,18 @@ namespace AMDiS {
}
void
VtkWriter
::
writeFile
(
DOFVector
<
double
>
*
values
,
const
char
*
filename
)
{
DataCollector
*
dc
=
NEW
DataCollector
(
values
->
getFESpace
(),
values
);
std
::
vector
<
DataCollector
*>
dcList
(
0
);
dcList
.
push_back
(
dc
);
VtkWriter
*
writer
=
NEW
VtkWriter
(
&
dcList
);
writer
->
writeFile
(
filename
);
DELETE
writer
;
DELETE
dc
;
}
}
AMDiS/src/VtkWriter.h
View file @
5d144c00
...
...
@@ -45,6 +45,11 @@ namespace AMDiS {
*/
int
writeFile
(
const
char
*
name
);
/** \brief
* May be used to simply write ParaView files.
*/
static
void
writeFile
(
DOFVector
<
double
>
*
values
,
const
char
*
filename
);
/** \brief
* Adds a new entry to a ParaView animation file.
...
...
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