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