Skip to content

Commit ccc5bf5

Browse files
authored
Merge pull request #4294 from pbehne/variational_smoother_type_fix
Variational Smoother: changed some doubles to Reals
2 parents 50822e5 + b88ac1f commit ccc5bf5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/mesh/mesh_smoother_vsmoother.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class VariationalMeshSmoother : public MeshSmoother
101101
VariationalMeshSmoother(UnstructuredMesh & mesh,
102102
Real dilation_weight = 0.5,
103103
const bool preserve_subdomain_boundaries = true,
104-
const double relative_residual_tolerance = TOLERANCE * TOLERANCE,
105-
const double absolute_residual_tolerance = TOLERANCE * TOLERANCE,
104+
const Real relative_residual_tolerance = TOLERANCE * TOLERANCE,
105+
const Real absolute_residual_tolerance = TOLERANCE * TOLERANCE,
106106
const unsigned int verbosity = 0);
107107

108108
/**
@@ -200,12 +200,12 @@ class VariationalMeshSmoother : public MeshSmoother
200200
/**
201201
* Solver relative residual tolerance
202202
*/
203-
double _relative_residual_tolerance;
203+
Real _relative_residual_tolerance;
204204

205205
/**
206206
* Solver absolute residual tolerance
207207
*/
208-
double _absolute_residual_tolerance;
208+
Real _absolute_residual_tolerance;
209209
};
210210

211211
} // namespace libMesh

src/mesh/mesh_smoother_vsmoother.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ namespace libMesh
5151
VariationalMeshSmoother::VariationalMeshSmoother(
5252
UnstructuredMesh &mesh, Real dilation_weight,
5353
const bool preserve_subdomain_boundaries,
54-
const double relative_residual_tolerance,
55-
const double absolute_residual_tolerance, const unsigned int verbosity)
54+
const Real relative_residual_tolerance,
55+
const Real absolute_residual_tolerance, const unsigned int verbosity)
5656
: MeshSmoother(mesh), _verbosity(verbosity),
5757
_dilation_weight(dilation_weight),
5858
_preserve_subdomain_boundaries(preserve_subdomain_boundaries),

0 commit comments

Comments
 (0)