Skip to content

Commit

Permalink
MueLu/HHG: removed obsolete code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mayrmt committed Jan 17, 2018
1 parent b89b97e commit b9dcd7d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/muelu/research/mmayr/composite_to_regions/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,8 @@ void jacobiIterate(const int maxIter,
double normRes = 0.0;
compRes->Norm2(&normRes);

// std::cout << compRes->Comm().MyPID() << ": |r| = " << normRes << "\tin iteration " << iter << std::endl;

if (normRes < 1.0e-12) {
// std::cout << compRes->Comm().MyPID() << ": Jacobi method converged after " << iter << " iterations." << std::endl;
if (normRes < 1.0e-12)
return;
}
}

for (int j = 0; j < maxRegPerProc; j++) {
Expand Down Expand Up @@ -909,8 +905,6 @@ int main(int argc, char *argv[]) {
compositeToRegional(compInterfaceScalingSum, quasiRegInterfaceScaling,
regionInterfaceScaling, maxRegPerProc, rowMapPerGrp,
revisedRowMapPerGrp, rowImportPerGrp);

// printRegionalVector("regionInterfaceScaling", regionInterfaceScaling, myRank);
}

// Coarse level
Expand All @@ -933,8 +927,6 @@ int main(int argc, char *argv[]) {
compositeToRegional(compInterfaceScalingSum, quasiRegInterfaceScaling,
coarseRegionInterfaceScaling, maxRegPerProc, coarseQuasiRowMapPerGrp,
coarseRowMapPerGrp, coarseRowImportPerGrp);

// printRegionalVector("coarseRegionInterfaceScaling", coarseRegionInterfaceScaling, myRank);
}
}
else if (strcmp(command,"MakeRegionMatrices") == 0) {
Expand Down Expand Up @@ -1328,8 +1320,6 @@ int main(int argc, char *argv[]) {
// Richardson iterations
for (int cycle = 0; cycle < maxVCycle; ++cycle) {

// std::cout << "Start V-Cycle iteration " << cycle << std::endl;

// a single 2-level V-Cycle
{
// -----------------------------------------------------------------------
Expand All @@ -1342,8 +1332,6 @@ int main(int argc, char *argv[]) {
computeResidual(regRes, regX, regB, regionGrpMats, mapComp,
rowMapPerGrp, revisedRowMapPerGrp, rowImportPerGrp);

// std::cout << "moving to coarse level ..." << std::endl;

// -----------------------------------------------------------------------
// Transfer to coarse level
// -----------------------------------------------------------------------
Expand Down Expand Up @@ -1372,8 +1360,6 @@ int main(int argc, char *argv[]) {
coarseRegionInterfaceScaling, maxRegPerProc, coarseCompRowMap, coarseQuasiRowMapPerGrp,
coarseRowMapPerGrp, coarseRowImportPerGrp);

// std::cout << "... and back to the fine level." << std::endl;

// -----------------------------------------------------------------------
// Transfer to fine level
// -----------------------------------------------------------------------
Expand Down Expand Up @@ -1414,8 +1400,6 @@ int main(int argc, char *argv[]) {
if (normRes < 1.0e-12)
break;
}

// std::cout << "End of V-Cycle iteration " << cycle << std::endl;
}

// -----------------------------------------------------------------------
Expand Down

0 comments on commit b9dcd7d

Please sign in to comment.