More warning fixes
This commit is contained in:
@@ -992,7 +992,7 @@ void FFc<M>::raise(typename M::FaceHandle& _fh, state_t _target_state)
|
||||
// choose coefficient c
|
||||
typename M::Scalar c = Base::coeff();
|
||||
|
||||
position *= (1.0 - c);
|
||||
position *= (static_cast<typename M::Scalar>(1.0) - c);
|
||||
position += MOBJ(_fh).position(_target_state - 1) * c;
|
||||
|
||||
MOBJ(_fh).set_position(_target_state, position);
|
||||
|
||||
@@ -882,7 +882,8 @@ void CompositeT<MeshType,RealType>::EVc(Coeff& _coeff)
|
||||
++valence;
|
||||
}
|
||||
|
||||
c = _coeff(valence);
|
||||
// Coefficients always work on double so we cast them to the correct scalar here
|
||||
c = static_cast<scalar_t>(_coeff(valence));
|
||||
|
||||
for (voh_it = mesh_.voh_iter(*v_it); voh_it.is_valid(); ++voh_it) {
|
||||
cog += mesh_.data(mesh_.edge_handle(*voh_it)).position() * c;
|
||||
|
||||
Reference in New Issue
Block a user