Skip to content

Commit

Permalink
added maybe_unused to chanhilliard
Browse files Browse the repository at this point in the history
  • Loading branch information
LingxiaS committed Sep 16, 2024
1 parent e988b02 commit 4eea155
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions applications/cahnHilliard/equations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ variableAttributeLoader::loadVariableAttributes()
template <int dim, int degree>
void
customPDE<dim, degree>::explicitEquationRHS(
variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
[[maybe_unused]] variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
[[maybe_unused]] dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
{
// --- Getting the values and derivatives of the model variables ---
scalarvalueType c = variable_list.get_scalar_value(0);
Expand Down Expand Up @@ -81,8 +81,8 @@ customPDE<dim, degree>::explicitEquationRHS(
template <int dim, int degree>
void
customPDE<dim, degree>::nonExplicitEquationRHS(
variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
[[maybe_unused]] variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
[[maybe_unused]] dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
{
// --- Getting the values and derivatives of the model variables ---

Expand Down Expand Up @@ -122,6 +122,6 @@ customPDE<dim, degree>::nonExplicitEquationRHS(
template <int dim, int degree>
void
customPDE<dim, degree>::equationLHS(
variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
[[maybe_unused]] variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
[[maybe_unused]] dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
{}
6 changes: 3 additions & 3 deletions applications/cahnHilliard/postprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ variableAttributeLoader::loadPostProcessorVariableAttributes()
template <int dim, int degree>
void
customPDE<dim, degree>::postProcessedFields(
const variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
variableContainer<dim, degree, dealii::VectorizedArray<double>> &pp_variable_list,
const dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
[[maybe_unused]] const variableContainer<dim, degree, dealii::VectorizedArray<double>> &variable_list,
[[maybe_unused]] variableContainer<dim, degree, dealii::VectorizedArray<double>> &pp_variable_list,
[[maybe_unused]] const dealii::Point<dim, dealii::VectorizedArray<double>> q_point_loc) const
{
// --- Getting the values and derivatives of the model variables ---

Expand Down

0 comments on commit 4eea155

Please sign in to comment.