Changeset ac6d04 for src/samples/discretization_poisson_fd_collatz.hpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/samples/discretization_poisson_fd_collatz.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/samples/discretization_poisson_fd_collatz.hpp
rd24c2f rac6d04 46 46 } 47 47 48 vmg_float OperatorPrefactor(const Multigrid& grid) const48 vmg_float OperatorPrefactor(const Grid& grid) const 49 49 { 50 return 1.0 / (sqr(grid.MeshWidth()));50 return 1.0 / Helper::pow_2(grid.Extent().MeshWidth().Max()); 51 51 } 52 52 53 53 private: 54 void SetInnerBoundaryCompute( Multigrid& grid) const {}54 void SetInnerBoundaryCompute(Grid& sol_fine, Grid& rhs_fine, Grid& sol_coarse) const {} 55 55 }; 56 56 … … 58 58 { 59 59 public: 60 StencilPoissonCollatzRhs() : Stencil(0.5) 60 StencilPoissonCollatzRhs() : 61 Stencil(0.5) 61 62 { 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); 68 69 } 69 70 };
Note:
See TracChangeset
for help on using the changeset viewer.
