Ignore:
Timestamp:
Apr 10, 2012, 1:55:49 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
a40eea
Parents:
d24c2f
Message:

Merge recent changes of the vmg library into ScaFaCos.

Includes a fix for the communication problems on Jugene.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/samples/discretization_poisson_fd_collatz.hpp

    rd24c2f rac6d04  
    4646  }
    4747
    48   vmg_float OperatorPrefactor(const Multigrid& grid) const
     48  vmg_float OperatorPrefactor(const Grid& grid) const
    4949  {
    50     return 1.0 / (sqr(grid.MeshWidth()));
     50    return 1.0 / Helper::pow_2(grid.Extent().MeshWidth().Max());
    5151  }
    5252
    5353private:
    54   void SetInnerBoundaryCompute(Multigrid& grid) const {}
     54  void SetInnerBoundaryCompute(Grid& sol_fine, Grid& rhs_fine, Grid& sol_coarse) const {}
    5555};
    5656
     
    5858{
    5959public:
    60   StencilPoissonCollatzRhs() : Stencil(0.5)
     60  StencilPoissonCollatzRhs() :
     61    Stencil(0.5)
    6162  {
    62     this->push_back(Displacement(-1,  0,  0, 1.0/12.0));
    63     this->push_back(Displacement( 1,  0,  0, 1.0/12.0));
    64     this->push_back(Displacement( 0, -1,  0, 1.0/12.0));
    65     this->push_back(Displacement( 0,  1,  0, 1.0/12.0));
    66     this->push_back(Displacement( 0,  0, -1, 1.0/12.0));
    67     this->push_back(Displacement( 0,  0,  1, 1.0/12.0));
     63    this->push_back(-1,  0,  0, 1.0/12.0);
     64    this->push_back( 1,  0,  0, 1.0/12.0);
     65    this->push_back( 0, -1,  0, 1.0/12.0);
     66    this->push_back( 0,  1,  0, 1.0/12.0);
     67    this->push_back( 0,  0, -1, 1.0/12.0);
     68    this->push_back( 0,  0,  1, 1.0/12.0);
    6869  }
    6970};
Note: See TracChangeset for help on using the changeset viewer.