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
91718fb9
Commit
91718fb9
authored
Aug 13, 2008
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Bugfix for file writing of higher order elements
parent
6c978c46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
AMDiS/src/DataCollector.cc
AMDiS/src/DataCollector.cc
+2
-2
AMDiS/src/VtkWriter.cc
AMDiS/src/VtkWriter.cc
+9
-4
No files found.
AMDiS/src/DataCollector.cc
View file @
91718fb9
...
...
@@ -351,9 +351,9 @@ namespace AMDiS {
basisFcts_
->
getLocalIndices
(
elInfo
->
getElement
(),
localAdmin_
,
localDOFs_
);
::
std
::
vector
<
int
>
elemInterpPoints
(
nBasisFcts_
);
std
::
vector
<
int
>
elemInterpPoints
(
0
);
for
(
int
i
=
mesh_
->
getGeo
(
VERTEX
);
i
<
nBasisFcts_
;
i
++
)
{
elemInterpPoints
[
i
]
=
(
*
interpPointInd_
)[
localDOFs_
[
i
]];
elemInterpPoints
.
push_back
(
(
*
interpPointInd_
)[
localDOFs_
[
i
]]
)
;
}
interpPoints_
.
push_back
(
elemInterpPoints
);
...
...
AMDiS/src/VtkWriter.cc
View file @
91718fb9
...
...
@@ -132,10 +132,15 @@ namespace AMDiS {
void
VtkWriter
::
writeVertexValues
(
::
std
::
ofstream
&
file
,
int
componentNo
)
{
DOFVector
<
int
>
*
interpPointInd
;
DOFVector
<
double
>
*
values
;
DOFVector
<
::
std
::
list
<
WorldVector
<
double
>
>
>
*
dofCoords
;
//
DOFVector<int> *interpPointInd;
//
DOFVector<double> *values;
//
DOFVector< ::std::list<WorldVector<double> > > *dofCoords;
DOFVector
<
int
>
*
interpPointInd
=
(
*
dc_
)[
componentNo
]
->
getInterpPointInd
();
DOFVector
<
double
>
*
values
=
(
*
dc_
)[
componentNo
]
->
getValues
();
DOFVector
<
::
std
::
list
<
WorldVector
<
double
>
>
>
*
dofCoords
=
(
*
dc_
)[
componentNo
]
->
getDofCoords
();
/*
#ifdef _OPENMP
#pragma omp critical
#endif
...
...
@@ -144,7 +149,7 @@ namespace AMDiS {
values = (*dc_)[componentNo]->getValues();
dofCoords = (*dc_)[componentNo]->getDofCoords();
}
*/
DOFVector
<
int
>::
Iterator
intPointIt
(
interpPointInd
,
USED_DOFS
);
DOFVector
<
double
>::
Iterator
valueIt
(
values
,
USED_DOFS
);
DOFVector
<
::
std
::
list
<
WorldVector
<
double
>
>
>::
Iterator
coordIt
(
dofCoords
,
USED_DOFS
);
...
...
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