Skip to content
GitLab
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
fbe10859
Commit
fbe10859
authored
Apr 29, 2009
by
Thomas Witkowski
Browse files
Some small bug fixes when compiling AMDiS in debug mode.
parent
e5d797df
Changes
4
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Cholesky.cc
View file @
fbe10859
...
...
@@ -2,10 +2,9 @@
bool
Cholesky
::
factorization
(
Matrix
<
double
>
*
A
,
Vector
<
double
>
*
p
)
{
FUNCNAME
(
"Cholesky::factorization"
);
FUNCNAME
(
"Cholesky::factorization
()
"
);
int
n
=
A
->
getNumRows
();
TEST_EXIT
(
n
==
A
->
getNumCols
())(
"Matrix is not quadratic!
\n
"
);
// Checking memory for vector P of diagonal elements of factorization.
static
Vector
<
double
>
*
pT
=
NULL
;
...
...
AMDiS/src/DOFMatrix.cc
View file @
fbe10859
...
...
@@ -179,9 +179,9 @@ namespace AMDiS {
const
BoundaryType
*
bound
,
bool
add
)
{
FUNCNAME
(
"DOFMatrix::addElementMatrix"
);
FUNCNAME
(
"DOFMatrix::addElementMatrix
()
"
);
TEST_EXIT
(
inserter
)(
"DOFMatrix is not in insertion mode"
);
TEST_EXIT
_DBG
(
inserter
)(
"DOFMatrix is not in insertion mode"
);
inserter_type
&
ins
=
*
inserter
;
DegreeOfFreedom
row
,
col
;
...
...
AMDiS/src/DOFMatrix.h
View file @
fbe10859
...
...
@@ -284,13 +284,6 @@ namespace AMDiS {
return
rowFESpace
->
getAdmin
()
->
getUsedSize
();
}
// Only fake, shouldn't be called
/** \brief
* Returns number of cols. For that, the function iteratos over all
* rows and searchs for the entry with the highest col number.
*/
int
getNumCols
()
const
;
/// Returns \ref name
inline
const
std
::
string
&
getName
()
const
{
return
name
;
...
...
AMDiS/src/ProblemVec.cc
View file @
fbe10859
...
...
@@ -774,12 +774,6 @@ namespace AMDiS {
assembleFlag
,
assembleMatrix
?
matrix
:
NULL
,
((
i
==
j
)
&&
asmVector
)
?
rhs
->
getDOFVector
(
i
)
:
NULL
);
TEST_EXIT_DBG
(
matrix
->
getUsedSize
()
==
componentSpaces
[
i
]
->
getAdmin
()
->
getUsedSize
())
(
"Assembled matrix has wrong dimension!
\n
"
);
TEST_EXIT_DBG
(
matrix
->
getNumCols
()
==
componentSpaces
[
j
]
->
getAdmin
()
->
getUsedSize
())
(
"Assembled matrix has wrong dimension!
\n
"
);
}
else
{
ERROR_EXIT
(
"Not yet implemented!
\n
"
);
}
...
...
@@ -1132,6 +1126,9 @@ namespace AMDiS {
if
(
useGetBound
)
bound
=
GET_MEMORY
(
BoundaryType
,
basisFcts
->
getNumber
());
if
(
matrix
)
matrix
->
startInsertion
();
DualTraverse
dualTraverse
;
ElInfo
*
rowElInfo
,
*
colElInfo
;
ElInfo
*
largeElInfo
,
*
smallElInfo
;
...
...
@@ -1182,6 +1179,9 @@ namespace AMDiS {
BoundaryType
*
bound
=
NULL
;
if
(
useGetBound
)
bound
=
GET_MEMORY
(
BoundaryType
,
basisFcts
->
getNumber
());
if
(
matrix
)
matrix
->
startInsertion
();
DualTraverse
dualTraverse
;
ElInfo
*
mainElInfo
,
*
auxElInfo
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment