Ignore:
Timestamp:
Nov 22, 2011, 9:22:10 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
facba0
Parents:
66f24d
Message:

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/unit_test/smoother_test.cpp

    r66f24d rdfed1c  
    2727void SmootherTestSuite::setUp()
    2828{
    29   Comm* comm = new CommSerial(Dirichlet);
     29  Boundary boundary(Dirichlet, Dirichlet, Dirichlet);
     30
     31  Comm* comm = new CommSerial(boundary);
    3032  comm->Register("COMM");
    3133
     
    3335  discretization->Register("DISCRETIZATION");
    3436
    35   Interface* interface = new VMGInterfaces::InterfaceSinus(Dirichlet, 4, 4, 0.0, 1.0);
     37  Interface* interface = new VMGInterfaces::InterfaceSinus(boundary, 4, 4, 0.0, 1.0);
    3638  MG::SetInterface(interface, comm);
    3739
     
    4446void SmootherTestSuite::tearDown()
    4547{
     48  MG::Destroy();
     49
    4650  delete gs;
    4751  delete gsrb;
     
    5155{
    5256  double norm;
     57  Multigrid& sol = *MG::GetSol();
     58  Multigrid& rhs = *MG::GetRhs();
     59  Comm& comm = *MG::GetComm();
    5360
    54   MG::GetSol()->ClearAll();
     61  sol.ClearAll();
    5562
    5663  for (int i=0; i<20; ++i) {
    5764
    58     gs->Run(*MG::GetSol(), *MG::GetRhs(), 50);
    59     norm = MG::GetComm()->ComputeResidualNorm(*MG::GetSol(), *MG::GetRhs());
     65    gs->Run(sol, rhs, 50);
     66    norm = comm.ComputeResidualNorm(sol, rhs);
    6067
    6168    if (norm < 1e-10)
Note: See TracChangeset for help on using the changeset viewer.