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
f9e40e6c
Commit
f9e40e6c
authored
Nov 12, 2010
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more debug functions.
parent
6d29ca9e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
5 deletions
+30
-5
AMDiS/src/ArhReader.cc
AMDiS/src/ArhReader.cc
+1
-1
AMDiS/src/Debug.cc
AMDiS/src/Debug.cc
+22
-0
AMDiS/src/Debug.h
AMDiS/src/Debug.h
+3
-0
AMDiS/src/SecondOrderTerm.cc
AMDiS/src/SecondOrderTerm.cc
+1
-1
AMDiS/src/ZeroOrderAssembler.cc
AMDiS/src/ZeroOrderAssembler.cc
+3
-3
No files found.
AMDiS/src/ArhReader.cc
View file @
f9e40e6c
...
...
@@ -46,7 +46,7 @@ namespace AMDiS {
file
.
read
(
reinterpret_cast
<
char
*>
(
&
nStructureCodes
),
4
);
file
.
read
(
reinterpret_cast
<
char
*>
(
&
codeSize
),
4
);
vector
<
unsigned
long
>
structureCode
(
nStructureCodes
);
vector
<
unsigned
long
int
>
structureCode
(
nStructureCodes
);
file
.
read
(
reinterpret_cast
<
char
*>
(
&
(
structureCode
[
0
])),
8
*
nStructureCodes
);
MeshStructure
elementStructure
;
...
...
AMDiS/src/Debug.cc
View file @
f9e40e6c
...
...
@@ -557,6 +557,28 @@ namespace AMDiS {
}
void
exportDofVectorByCoords
(
const
DOFVector
<
double
>*
vec
,
std
::
string
filename
)
{
DOFVector
<
WorldVector
<
double
>
>
coords
(
vec
->
getFeSpace
(),
"dofCoords"
);
vec
->
getFeSpace
()
->
getMesh
()
->
getDofIndexCoords
(
vec
->
getFeSpace
(),
coords
);
int
dim
=
vec
->
getFeSpace
()
->
getMesh
()
->
getDim
();
std
::
ofstream
file
;
file
.
open
(
filename
.
c_str
());
file
<<
vec
->
getUsedSize
()
<<
"
\n
"
;
DOFIterator
<
WorldVector
<
double
>
>
it
(
&
coords
,
USED_DOFS
);
for
(
it
.
reset
();
!
it
.
end
();
++
it
)
{
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
file
<<
(
*
it
)[
i
]
<<
" "
;
file
<<
(
*
vec
)[
it
.
getDOFIndex
()]
<<
"
\n
"
;
}
file
.
close
();
}
void
createSortedDofs
(
Mesh
*
mesh
,
ElementIdxToDofs
&
elMap
)
{
FUNCNAME
(
"debug::dbgCreateElementMap()"
);
...
...
AMDiS/src/Debug.h
View file @
f9e40e6c
...
...
@@ -141,6 +141,9 @@ namespace AMDiS {
int
getLocalNeighbourIndex
(
Mesh
*
mesh
,
int
elIndex
,
int
neighIndex
);
void
exportDofVectorByCoords
(
const
DOFVector
<
double
>*
vec
,
std
::
string
filename
);
/** \brief
* Traverse a mesh and store for each element all its vertex DOFs in local sorted
* order (by values).
...
...
AMDiS/src/SecondOrderTerm.cc
View file @
f9e40e6c
...
...
@@ -194,7 +194,7 @@ namespace AMDiS {
{
const
DimVec
<
WorldVector
<
double
>
>
&
grdLambda
=
elInfo
->
getGrdLambda
();
for
(
int
iq
=
0
;
iq
<
nPoints
;
iq
++
)
l1lt
(
grdLambda
,
*
(
LALt
[
iq
]),
(
*
f
)(
vecAtQPs
[
iq
]));
l1lt
(
grdLambda
,
*
(
LALt
[
iq
]),
(
*
f
)(
vecAtQPs
[
iq
]));
}
void
VecAtQP_SOT
::
eval
(
int
nPoints
,
...
...
AMDiS/src/ZeroOrderAssembler.cc
View file @
f9e40e6c
...
...
@@ -68,9 +68,9 @@ namespace AMDiS {
newAssembler
=
new
StandardZOA
(
op
,
assembler
,
quad
);
}
else
{
if
(
pwConst
)
newAssembler
=
new
PrecalcZOA
(
op
,
assembler
,
quad
);
newAssembler
=
new
PrecalcZOA
(
op
,
assembler
,
quad
);
else
newAssembler
=
new
FastQuadZOA
(
op
,
assembler
,
quad
);
newAssembler
=
new
FastQuadZOA
(
op
,
assembler
,
quad
);
}
subAssemblers
->
push_back
(
newAssembler
);
...
...
@@ -130,7 +130,7 @@ namespace AMDiS {
for
(
int
i
=
0
;
i
<
nRow
;
i
++
)
{
double
psival
=
(
*
(
psi
->
getPhi
(
i
)))(
quadrature
->
getLambda
(
iq
));
for
(
int
j
=
0
;
j
<
nCol
;
j
++
)
mat
[
i
][
j
]
+=
quadrature
->
getWeight
(
iq
)
*
c
[
iq
]
*
psival
*
phival
[
j
];
mat
[
i
][
j
]
+=
quadrature
->
getWeight
(
iq
)
*
c
[
iq
]
*
psival
*
phival
[
j
];
}
}
}
...
...
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