Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
amdis
Commits
5d144c00
Commit
5d144c00
authored
16 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
* Added static VtkWriter::writeFile for simple file writing
parent
18a9b36b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AMDiS/src/ProblemScal.h
+9
-3
9 additions, 3 deletions
AMDiS/src/ProblemScal.h
AMDiS/src/VtkWriter.cc
+14
-0
14 additions, 0 deletions
AMDiS/src/VtkWriter.cc
AMDiS/src/VtkWriter.h
+5
-0
5 additions, 0 deletions
AMDiS/src/VtkWriter.h
with
28 additions
and
3 deletions
AMDiS/src/ProblemScal.h
+
9
−
3
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.
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/VtkWriter.cc
+
14
−
0
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
;
}
}
This diff is collapsed.
Click to expand it.
AMDiS/src/VtkWriter.h
+
5
−
0
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.
...
...
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