Changeset a24b80 for src/mg.cpp


Ignore:
Timestamp:
Jun 11, 2012, 3:01:12 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
290aa3
Parents:
2d4211
Message:

Simplified API.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mg.cpp

    r2d4211 ra24b80  
    125125}
    126126
    127 void MG::SetInterface(VMG::Interface* interface, VMG::Comm* comm)
    128 {
    129   interface->Register("INTERFACE");
    130 
    131   Multigrid* sol = new Multigrid(comm, interface);
    132   Multigrid* rhs = new Multigrid(comm, interface);
     127/*
     128 * Post init communication class
     129 */
     130void MG::PostInit()
     131{
     132  Multigrid* sol = new Multigrid(GetComm(), GetInterface());
     133  sol->Register("SOL");
     134
     135  Multigrid* rhs = new Multigrid(GetComm(), GetInterface());
     136  rhs->Register("RHS");
     137
    133138  TempGrid* temp = new TempGrid();
    134 
    135   sol->Register("SOL");
    136   rhs->Register("RHS");
    137139  temp->Register("TEMPGRID");
    138140
     
    140142  new ObjectStorage<int>("MINLEVEL", sol->MinLevel());
    141143  new ObjectStorage<int>("MAXLEVEL", sol->MaxLevel());
    142 }
    143 
    144 /*
    145  * Post init communication class
    146  */
    147 void MG::PostInit()
    148 {
     144
    149145  GetComm()->PostInit(*GetSol(), *GetRhs());
    150146}
Note: See TracChangeset for help on using the changeset viewer.