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
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
Backofen, Rainer
amdis
Commits
3f5fab8e
Commit
3f5fab8e
authored
12 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
Added possibility to analyze matrices from FETI-DP.
parent
64e91ba5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/parallel/PetscSolverFeti.cc
+39
-0
39 additions, 0 deletions
AMDiS/src/parallel/PetscSolverFeti.cc
AMDiS/src/parallel/PetscSolverFeti.h
+4
-0
4 additions, 0 deletions
AMDiS/src/parallel/PetscSolverFeti.h
with
43 additions
and
0 deletions
AMDiS/src/parallel/PetscSolverFeti.cc
+
39
−
0
View file @
3f5fab8e
...
...
@@ -1099,6 +1099,40 @@ namespace AMDiS {
}
void
PetscSolverFeti
::
dbgMatrix
()
{
FUNCNAME
(
"PetscSolverFeti::dbgMatrix()"
);
#if (DEBUG != 0)
int
writeInteriorMatrix
=
-
1
;
Parameters
::
get
(
"parallel->debug->write interior matrix"
,
writeInteriorMatrix
);
if
(
writeInteriorMatrix
>=
0
&&
writeInteriorMatrix
==
MPI
::
COMM_WORLD
.
Get_rank
())
{
PetscViewer
petscView
;
PetscViewerBinaryOpen
(
PETSC_COMM_SELF
,
"interior.mat"
,
FILE_MODE_WRITE
,
&
petscView
);
MatView
(
subdomain
->
getMatIntInt
(),
petscView
);
PetscViewerDestroy
(
&
petscView
);
}
int
writeCoarseMatrix
=
0
;
Parameters
::
get
(
"parallel->debug->write coarse matrix"
,
writeCoarseMatrix
);
if
(
writeCoarseMatrix
>
0
)
{
PetscViewer
petscView
;
PetscViewerBinaryOpen
(
PETSC_COMM_WORLD
,
"coarse.mat"
,
FILE_MODE_WRITE
,
&
petscView
);
MatView
(
subdomain
->
getMatCoarseCoarse
(),
petscView
);
PetscViewerDestroy
(
&
petscView
);
}
#endif
}
void
PetscSolverFeti
::
recoverSolution
(
Vec
&
vec_sol_b
,
Vec
&
vec_sol_primal
,
SystemVector
&
vec
)
...
...
@@ -1412,6 +1446,11 @@ namespace AMDiS {
// === Create PETSc solver for the FETI-DP operator. ===
createFetiKsp
(
feSpaces
);
// === If required, run debug tests. ===
dbgMatrix
();
}
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/parallel/PetscSolverFeti.h
+
4
−
0
View file @
3f5fab8e
...
...
@@ -135,6 +135,10 @@ namespace AMDiS {
/// Destroys FETI-DP operator, \ref ksp_feti
void
destroyFetiKsp
();
/// In debug modes, this function runs some debug tests on the FETI
/// matrices. In optimized mode, nothing is done here.
void
dbgMatrix
();
/** \brief
* Recovers AMDiS solution vector from PETSc's solution vectors of the
* FETI-DP system. First, the B variables can locally be copied to the
...
...
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