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
59fe3dc3
Commit
59fe3dc3
authored
16 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
* PardisoSolver extended
parent
bd724c08
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AMDiS/src/PardisoSolver.cc
+12
-12
12 additions, 12 deletions
AMDiS/src/PardisoSolver.cc
AMDiS/src/PardisoSolver.h
+8
-0
8 additions, 0 deletions
AMDiS/src/PardisoSolver.h
AMDiS/src/ProblemVec.cc
+1
-0
1 addition, 0 deletions
AMDiS/src/ProblemVec.cc
with
21 additions
and
12 deletions
AMDiS/src/PardisoSolver.cc
+
12
−
12
View file @
59fe3dc3
...
...
@@ -62,8 +62,8 @@ namespace AMDiS {
}
double
*
a
=
(
double
*
)
malloc
(
sizeof
(
double
)
*
nElements
);
int
*
ja
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
nElements
);
int
*
ia
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
(
newMatrixSize
+
1
));
MKL_INT
*
ja
=
(
int
*
)
malloc
(
sizeof
(
MKL_INT
)
*
nElements
);
MKL_INT
*
ia
=
(
int
*
)
malloc
(
sizeof
(
MKL_INT
)
*
(
newMatrixSize
+
1
));
double
*
bvec
=
(
double
*
)
malloc
(
sizeof
(
double
)
*
newMatrixSize
);
double
*
xvec
=
(
double
*
)
malloc
(
sizeof
(
double
)
*
newMatrixSize
);
...
...
@@ -102,10 +102,10 @@ namespace AMDiS {
}
// real unsymmetric matrix
int
mtype
=
11
;
MKL_INT
mtype
=
11
;
// number of right hand sides
int
nRhs
=
1
;
MKL_INT
nRhs
=
1
;
// Pardiso internal memory
void
*
pt
[
64
];
...
...
@@ -114,7 +114,7 @@ namespace AMDiS {
}
// Pardiso control parameters
int
iparm
[
64
];
MKL_INT
iparm
[
64
];
for
(
int
i
=
0
;
i
<
64
;
i
++
)
{
iparm
[
i
]
=
0
;
}
...
...
@@ -129,25 +129,25 @@ namespace AMDiS {
iparm
[
18
]
=
-
1
;
// Output: Mflops for LU factorization
// Maximum number of numerical factorizations
int
maxfct
=
1
;
MKL_INT
maxfct
=
1
;
// Which factorization to use
int
mnum
=
1
;
MKL_INT
mnum
=
1
;
// Print statistical information in file
int
msglvl
=
1
;
MKL_INT
msglvl
=
1
;
// Error flag
int
error
=
0
;
MKL_INT
error
=
0
;
int
n
=
newMatrixSize
;
MKL_INT
n
=
newMatrixSize
;
// Reordering and symbolic factorization
int
phase
=
11
;
MKL_INT
phase
=
11
;
double
ddum
;
int
idum
;
MKL_INT
idum
;
PARDISO
(
pt
,
&
maxfct
,
&
mnum
,
&
mtype
,
&
phase
,
&
n
,
a
,
ia
,
ja
,
&
idum
,
&
nRhs
,
iparm
,
&
msglvl
,
&
ddum
,
&
ddum
,
&
error
);
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/PardisoSolver.h
+
8
−
0
View file @
59fe3dc3
...
...
@@ -24,9 +24,17 @@
#ifdef HAVE_MKL
#include
<mkl.h>
#include
"OEMSolver.h"
#include
"MemoryManager.h"
#if defined(MKL_ILP64)
#define MKL_INT long long
#else
#define MKL_INT int
#endif
namespace
AMDiS
{
// ============================================================================
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/ProblemVec.cc
+
1
−
0
View file @
59fe3dc3
...
...
@@ -743,6 +743,7 @@ namespace AMDiS {
assembledMatrix_
[
i
][
j
]
=
true
;
}
// fill boundary conditions
if
(
rhs_
->
getDOFVector
(
i
)
->
getBoundaryManager
())
rhs_
->
getDOFVector
(
i
)
->
getBoundaryManager
()
->
initVector
(
rhs_
->
getDOFVector
(
i
));
...
...
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