Commit cae74fff authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed small parallel debug in deserialization code.

parent e6cb7a1d
...@@ -171,15 +171,14 @@ namespace AMDiS { ...@@ -171,15 +171,14 @@ namespace AMDiS {
updateMacroElementInfo(); updateMacroElementInfo();
setRankDofs();
removePeriodicBoundaryConditions(); removePeriodicBoundaryConditions();
elObjDb.createMacroElementInfo(allMacroElements); elObjDb.createMacroElementInfo(allMacroElements);
// createBoundaryDofs();
updateLocalGlobalNumbering(); updateLocalGlobalNumbering();
setRankDofs();
#if (DEBUG != 0) #if (DEBUG != 0)
ParallelDebug::writeDebugFile(feSpaces[feSpaces.size() - 1], dofMap, ParallelDebug::writeDebugFile(feSpaces[feSpaces.size() - 1], dofMap,
debugOutputDir + "mpi-dbg", "dat"); debugOutputDir + "mpi-dbg", "dat");
...@@ -1688,11 +1687,6 @@ namespace AMDiS { ...@@ -1688,11 +1687,6 @@ namespace AMDiS {
lastMeshChangeIndex = mesh->getChangeIndex(); lastMeshChangeIndex = mesh->getChangeIndex();
MSG("--------> REMOVE THIS LINE <------------\n");
debug::writeElementIndexMesh(mesh, debugOutputDir + "elementIndex-" +
lexical_cast<string>(mpiRank) + ".vtu");
#if (DEBUG != 0) #if (DEBUG != 0)
ParallelDebug::testDofContainerCommunication(*this); ParallelDebug::testDofContainerCommunication(*this);
......
...@@ -1103,7 +1103,6 @@ namespace AMDiS { ...@@ -1103,7 +1103,6 @@ namespace AMDiS {
{ {
FUNCNAME("PetscSolverFeti::dbgMatrix()"); FUNCNAME("PetscSolverFeti::dbgMatrix()");
#if (DEBUG != 0)
int writeInteriorMatrix = -1; int writeInteriorMatrix = -1;
Parameters::get("parallel->debug->write interior matrix", Parameters::get("parallel->debug->write interior matrix",
writeInteriorMatrix); writeInteriorMatrix);
...@@ -1184,6 +1183,11 @@ namespace AMDiS { ...@@ -1184,6 +1183,11 @@ namespace AMDiS {
MatMult(mat_feti, unitVector, resultVector); MatMult(mat_feti, unitVector, resultVector);
if (fetiPreconditioner != FETI_NONE) {
PCApply(precon_feti, resultVector, unitVector);
VecCopy(unitVector, resultVector);
}
PetscScalar *vals; PetscScalar *vals;
VecGetArray(resultVector, &vals); VecGetArray(resultVector, &vals);
...@@ -1215,7 +1219,6 @@ namespace AMDiS { ...@@ -1215,7 +1219,6 @@ namespace AMDiS {
MSG("FETI-DP matrix written: %d x %d mat with %d nnz\n", MSG("FETI-DP matrix written: %d x %d mat with %d nnz\n",
lagrangeMap.getOverallDofs(), lagrangeMap.getOverallDofs(), nnzCounter); lagrangeMap.getOverallDofs(), lagrangeMap.getOverallDofs(), nnzCounter);
} }
#endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment