Skip to content

Commit 0f14e36

Browse files
committed
add namespace
1 parent f6f2e10 commit 0f14e36

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/MeshField_SPR_ErrorEstimator.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <MeshField_ShapeField.hpp>
1010
#include <Omega_h_mesh.hpp>
1111

12+
namespace MeshField {
13+
namespace SPR {
14+
1215
/* useful for initializing values to quickly
1316
detect "uninitialized" value bugs */
1417
static double getNaN() { return std::numeric_limits<double>::quiet_NaN(); }
@@ -235,4 +238,7 @@ getSprSizeField(EstimationT &e, OmegahMeshField &omf, FieldElement &coordFe) {
235238
return averageToVertex(e.mesh, e.element_size);
236239
}
237240

241+
} // end namespace SPR
242+
} // end namespace MeshField
243+
238244
#endif

test/testSprThwaitesAdapt.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ int main(int argc, char **argv) {
192192
MeshField::Omegah::getTriangleElement<ShapeOrder>(mesh);
193193
MeshField::FieldElement coordFe(mesh.nelems(), coordField, shp, map);
194194

195-
auto estimation =
196-
Estimation(mesh, effectiveStrain, recoveredStrainField, adaptRatio);
195+
auto estimation = MeshField::SPR::Estimation(
196+
mesh, effectiveStrain, recoveredStrainField, adaptRatio);
197197

198-
const auto tgtLength = getSprSizeField(estimation, omf, coordFe);
198+
const auto tgtLength =
199+
MeshField::SPR::getSprSizeField(estimation, omf, coordFe);
199200
Omega_h::Write<MeshField::Real> tgtLength_oh(tgtLength);
200201
mesh.add_tag<Real>(VERT, "tgtLength", 1, tgtLength_oh, false,
201202
Omega_h::ArrayType::VectorND);

0 commit comments

Comments
 (0)