|
17 | 17 |
|
18 | 18 |
|
19 | 19 | #include "libmesh/libmesh_config.h" |
20 | | -#ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES |
21 | 20 |
|
| 21 | +#include "libmesh/fourth_error_estimators.h" |
22 | 22 |
|
23 | | -// C++ includes |
24 | | -#include <algorithm> // for std::fill |
25 | | -#include <cstdlib> // *must* precede <cmath> for proper std:abs() on PGI, Sun Studio CC |
26 | | -#include <cmath> // for sqrt |
| 23 | +#include "libmesh/enum_error_estimator_type.h" |
27 | 24 |
|
| 25 | +#ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES |
28 | 26 |
|
29 | 27 | // Local Includes |
30 | 28 | #include "libmesh/libmesh_common.h" |
31 | | -#include "libmesh/fourth_error_estimators.h" |
32 | 29 | #include "libmesh/error_vector.h" |
33 | 30 | #include "libmesh/fe_base.h" |
34 | 31 | #include "libmesh/libmesh_logging.h" |
35 | 32 | #include "libmesh/elem.h" |
36 | 33 | #include "libmesh/system.h" |
37 | 34 | #include "libmesh/dense_vector.h" |
38 | 35 | #include "libmesh/tensor_tools.h" |
39 | | -#include "libmesh/enum_error_estimator_type.h" |
40 | 36 | #include "libmesh/enum_norm_type.h" |
41 | 37 |
|
| 38 | +// C++ includes |
| 39 | +#include <algorithm> // for std::fill |
| 40 | +#include <cstdlib> // *must* precede <cmath> for proper std:abs() on PGI, Sun Studio CC |
| 41 | +#include <cmath> // for sqrt |
| 42 | + |
42 | 43 | namespace libMesh |
43 | 44 | { |
44 | 45 |
|
@@ -157,28 +158,29 @@ LaplacianErrorEstimator::internal_side_integration () |
157 | 158 |
|
158 | 159 | #else // defined (LIBMESH_ENABLE_SECOND_DERIVATIVES) |
159 | 160 |
|
160 | | -#include "libmesh/fourth_error_estimators.h" |
161 | | - |
162 | 161 | namespace libMesh |
163 | 162 | { |
164 | 163 |
|
165 | | -void |
166 | | -LaplacianErrorEstimator::init_context (FEMContext &) |
| 164 | +LaplacianErrorEstimator::LaplacianErrorEstimator() : |
| 165 | + JumpErrorEstimator() |
167 | 166 | { |
168 | 167 | libmesh_error_msg("Error: LaplacianErrorEstimator requires second " \ |
169 | 168 | << "derivative support; try configuring libmesh with " \ |
170 | 169 | << "--enable-second"); |
171 | 170 | } |
172 | 171 |
|
173 | | - |
174 | | -void |
175 | | -LaplacianErrorEstimator::internal_side_integration () |
| 172 | +ErrorEstimatorType |
| 173 | +LaplacianErrorEstimator::type() const |
176 | 174 | { |
177 | | - libmesh_error_msg("Error: LaplacianErrorEstimator requires second " \ |
178 | | - << "derivative support; try configuring libmesh with " \ |
179 | | - << "--enable-second"); |
| 175 | + return LAPLACIAN; |
180 | 176 | } |
181 | 177 |
|
| 178 | + |
| 179 | + |
| 180 | +void LaplacianErrorEstimator::init_context (FEMContext &) {} |
| 181 | + |
| 182 | +void LaplacianErrorEstimator::internal_side_integration () {} |
| 183 | + |
182 | 184 | } // namespace libMesh |
183 | 185 |
|
184 | 186 | #endif // defined (LIBMESH_ENABLE_SECOND_DERIVATIVES) |
0 commit comments