Skip to content

Commit

Permalink
minor compiler warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adityakpandare committed Aug 19, 2024
1 parent 298b18c commit f052508
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/PDE/Limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ void BoundPreservingLimiting( std::size_t nmat,

// Compute the upper and lower bound for volume fraction
const tk::real min = 1e-14;
const tk::real max = 1.0 - min * (nmat - 1);
const tk::real max = 1.0 - min * static_cast<tk::real>(nmat - 1);

// loop over all faces of the element e
for (std::size_t lf=0; lf<4; ++lf)
Expand Down
1 change: 0 additions & 1 deletion src/PDE/MultiMat/DGMultiMat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,6 @@ class MultiMat {
//! \param[in] ndofmax Max number of degrees of freedom for p-refinement
//! \param[in] tolref Tolerance for p-refinement
//! \param[in,out] ndofel Vector of local number of degrees of freedome
//! \param[in] interface Vector of interface marker
void eval_ndof( std::size_t nunk,
[[maybe_unused]] const tk::UnsMesh::Coords& coord,
[[maybe_unused]] const std::vector< std::size_t >& inpoel,
Expand Down

0 comments on commit f052508

Please sign in to comment.