Ignore:
Timestamp:
Sep 20, 2012, 1:54:01 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
c3acbb
Parents:
2d3854
Message:

vmg: Simplified API.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/unit_test/unit_test/smoother_test.cpp

    r2d3854 rb57b9b  
    4747  SmootherFixture()
    4848  {
    49     Boundary boundary(Dirichlet, Dirichlet, Dirichlet);
     49    const Boundary boundary(Dirichlet, Dirichlet, Dirichlet);
    5050
    51     Comm* comm = new CommSerial(boundary);
    52     comm->Register("COMM");
    53 
    54     Discretization* discretization = new DiscretizationPoissonFD(2);
    55     discretization->Register("DISCRETIZATION");
    56 
    57     Interface* interface = new VMGInterfaces::InterfaceSinus(2.0*Math::pi, boundary, 4, 4, 0.0, 1.0);
    58     interface->Register("INTERFACE");
     51    new CommSerial(boundary);
     52    new DiscretizationPoissonFD(2);
     53    new VMGInterfaces::InterfaceSinus(2.0*Math::pi, boundary, 4, 4, 0.0, 1.0);
    5954
    6055    MG::PostInit();
    6156
    62     interface->ImportRightHandSide(*MG::GetRhs());
     57    MG::GetInterface()->ImportRightHandSide(*MG::GetRhs());
    6358
    64     gs = new GaussSeidel();
    65     gsrb = new GaussSeidelRB();
     59    gs = new GaussSeidel(false);
     60    gsrb = new GaussSeidelRB(false);
    6661  }
    6762
Note: See TracChangeset for help on using the changeset viewer.