Changeset ac6d04 for src/samples/discretization_poisson_fv.hpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/samples/discretization_poisson_fv.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/samples/discretization_poisson_fv.hpp
rd24c2f rac6d04 15 15 16 16 #include "base/discretization.hpp" 17 #include "base/helper.hpp" 17 18 18 19 namespace VMG 19 20 { 20 21 static inline vmg_float sqr(const vmg_float& val) {return val*val;}22 21 23 22 class DiscretizationPoissonFV : public Discretization … … 37 36 vmg_float OperatorPrefactor(const Grid& grid) const 38 37 { 39 return 1.0 / sqr(grid.MeshWidth());38 return 1.0 / Helper::pow_2(grid.Extent().MeshWidth().Max()); 40 39 } 41 40
Note:
See TracChangeset
for help on using the changeset viewer.
