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.hpp

    rd24c2f rac6d04  
    1313
    1414#include "base/discretization.hpp"
     15#include "base/helper.hpp"
    1516
    1617namespace VMG
    1718{
    18 
    19 static inline vmg_float sqr(const vmg_float& val) {return val*val;}
    2019
    2120class DiscretizationPoissonFD : public Discretization
     
    3534  vmg_float OperatorPrefactor(const Grid& grid) const
    3635  {
    37     return 1.0 / (sqr(grid.MeshWidth()));
     36    return 1.0 / Helper::pow_2(grid.Extent().MeshWidth().Max());
    3837  }
    3938
Note: See TracChangeset for help on using the changeset viewer.