Changeset f57182 for src/samples/discretization_poisson_fd.cpp
- Timestamp:
- Mar 30, 2013, 2:44:52 PM (13 years ago)
- Children:
- 8180d8
- Parents:
- d13e27
- git-author:
- Julian Iseringhausen <isering@…> (06/11/12 14:02:16)
- git-committer:
- Julian Iseringhausen <isering@…> (03/30/13 14:44:52)
- File:
-
- 1 edited
-
src/samples/discretization_poisson_fd.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/samples/discretization_poisson_fd.cpp
rd13e27 rf57182 18 18 19 19 /** 20 * @file discretization_poisson_fd _collatz.cpp20 * @file discretization_poisson_fd.cpp 21 21 * @author Julian Iseringhausen <isering@ins.uni-bonn.de> 22 22 * @date Mon Apr 18 13:03:47 2011 23 23 * 24 24 * @brief Discretization of the poisson equation 25 * using the Collatz Mehrstellen Ansatz. 26 * Discretization error: O(h^4) 25 * using the standard 7-point stencil or 26 * the Collatz Mehrstellen Ansatz. 27 * Discretization error: O(h^2) or O(h^4) 27 28 * 28 29 */ … … 38 39 using namespace VMG; 39 40 40 DiscretizationPoissonFD::DiscretizationPoissonFD(const int& order) : 41 Discretization(order) 41 void DiscretizationPoissonFD::InitDiscretizationPoissonFD() 42 42 { 43 43 switch (order) … … 83 83 if (order == 4) { 84 84 85 Grid& rhs = MG::GetRhsMaxLevel();86 87 85 Stencil stencil(6.0/12.0); 88 86 stencil.push_back(-1, 0, 0, 1.0/12.0); … … 93 91 stencil.push_back( 0, 0, 1, 1.0/12.0); 94 92 95 stencil.Apply( rhs);93 stencil.Apply(MG::GetRhsMaxLevel()); 96 94 97 95 }
Note:
See TracChangeset
for help on using the changeset viewer.
