Permalink
Browse files

Merge branch 'msg_level_bddc' into 'master'

use message level in bddc output

See merge request jschoeberl/ngsolve!264
  • Loading branch information...
JSchoeberl committed Nov 23, 2017
2 parents 89fd70c + 1bc5e4b commit bba3538f07c3a827f8d4f207da27c2c5cfd6425f
Showing with 11 additions and 11 deletions.
  1. +11 −11 comp/bddc.cpp
@@ -349,27 +349,27 @@ namespace ngcomp
Flags flags;
flags.SetFlag("eliminate_internal");
flags.SetFlag("subassembled");
cout << "call Create Smoothing Blocks of " << bfa->GetFESpace()->GetName() << endl;
cout << IM(1) << "call Create Smoothing Blocks of " << bfa->GetFESpace()->GetName() << endl;
shared_ptr<Table<int>> blocks = (bfa->GetFESpace()->CreateSmoothingBlocks(flags));
cout << "has blocks" << endl << endl;
cout << IM(1) << "has blocks" << endl << endl;
// *testout << "blocks = " << endl << blocks << endl;
// *testout << "pwbmat = " << endl << *pwbmat << endl;
cout << "call block-jacobi inverse" << endl;
cout << IM(1) << "call block-jacobi inverse" << endl;
inv = dynamic_pointer_cast<BaseSparseMatrix> (pwbmat)->CreateBlockJacobiPrecond(blocks, 0, 0, 0);
// inv = dynamic_cast<BaseSparseMatrix*> (pwbmat)->CreateJacobiPrecond(wb_free_dofs);
cout << "has inverse" << endl << endl;
cout << IM(1) << "has inverse" << endl << endl;
// *testout << "blockjacobi = " << endl << *inv << endl;
//Coarse Grid of Wirebasket
cout << "call directsolverclusters inverse" << endl;
cout << IM(1) << "call directsolverclusters inverse" << endl;
Array<int> & clusters = *(bfa->GetFESpace()->CreateDirectSolverClusters(flags));
cout << "has clusters" << endl << endl;
cout << IM(1) << "has clusters" << endl << endl;
cout << "call coarse wirebasket grid inverse" << endl;
cout << IM(1) << "call coarse wirebasket grid inverse" << endl;
inv_coarse = pwbmat->InverseMatrix(&clusters);
cout << "has inverse" << endl << endl;
cout << IM(1) << "has inverse" << endl << endl;
tmp = new VVector<>(ndof);
tmp2 = new VVector<>(ndof);
@@ -412,18 +412,18 @@ namespace ngcomp
if (coarse)
{
cout << "call wirebasket preconditioner finalize ( with " << cntfreedofs
cout << IM(1) << "call wirebasket preconditioner finalize ( with " << cntfreedofs
<< " free dofs out of " << pwbmat->Height() << " )" << endl;
// throw Exception("combination of coarse and block not implemented! ");
dynamic_pointer_cast<Preconditioner>(inv) -> FinalizeLevel(pwbmat.get());
}
else
{
cout << "call wirebasket inverse ( with " << cntfreedofs
cout << IM(1) << "call wirebasket inverse ( with " << cntfreedofs
<< " free dofs out of " << pwbmat->Height() << " )" << endl;
inv = pwbmat->InverseMatrix(wb_free_dofs);
}
cout << "has inverse" << endl;
cout << IM(1) << "has inverse" << endl;
tmp = new VVector<TV>(ndof);
}
}

0 comments on commit bba3538

Please sign in to comment.