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/periodic_fas.cpp

    r66f24d rdfed1c  
    2222#endif
    2323#include "solver/givens.hpp"
    24 #include "solver/solver_periodic.hpp"
     24#include "solver/solver_singular.hpp"
    2525#include "mg.hpp"
    2626
     
    3737  Factory& factory = MG::GetFactory();
    3838
    39   Comm *comm = new CommSerial(Periodic);
     39  Comm *comm = new CommSerial(Boundary(Periodic, Periodic, Periodic));
    4040  comm->Register("COMM");
    4141
    42   Interface* interface = new VMGInterfaces::InterfaceSinus(Periodic, 2, 6, 0.0, 1.0);
     42  Interface* interface = new VMGInterfaces::InterfaceSinus(comm->BoundaryConditions(), 2, 6, 0.0, 1.0);
    4343  MG::SetInterface(interface, comm);
    4444
     
    5353
    5454#ifdef HAVE_LAPACK
    55   Solver* solver = new DSYSV<SolverPeriodic>();
     55  Solver* solver = new DSYSV<SolverSingular>();
    5656#else
    57   Solver* solver = new Givens<SolverPeriodic>();
     57  Solver* solver = new Givens<SolverSingular>();
    5858#endif
    5959  solver->Register("SOLVER");
     
    7878  MG::Solve();
    7979
    80   double res_init = MG::GetFactory().GetObject("INITIAL_RESIDUAL")->Cast< ObjectStorage<double> >()->Val();
     80  double res_init = MG::GetFactory().Get("INITIAL_RESIDUAL")->Cast< ObjectStorage<double> >()->Val();
    8181  double res = MG::GetComm()->ComputeResidualNorm(*MG::GetSol(), *MG::GetRhs());
    8282
Note: See TracChangeset for help on using the changeset viewer.