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

    rd24c2f rac6d04  
    1515
    1616#include "base/discretization.hpp"
     17#include "base/helper.hpp"
    1718
    1819namespace VMG
    1920{
    20 
    21 static inline vmg_float sqr(const vmg_float& val) {return val*val;}
    2221
    2322class DiscretizationPoissonFV : public Discretization
     
    3736  vmg_float OperatorPrefactor(const Grid& grid) const
    3837  {
    39     return 1.0  / sqr(grid.MeshWidth());
     38    return 1.0  / Helper::pow_2(grid.Extent().MeshWidth().Max());
    4039  }
    4140
Note: See TracChangeset for help on using the changeset viewer.