Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions include/aspect/postprocess/visualization/spd_factor.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ namespace aspect
void
evaluate_vector_field(const DataPostprocessorInputs::Vector<dim> &input_data,
std::vector<Vector<double>> &computed_quantities) const override;

/**
* Read the parameters this class declares from the parameter file.
*/
void
parse_parameters (ParameterHandler &prm) override;
};
}
}
Expand Down
13 changes: 4 additions & 9 deletions source/postprocess/visualization/spd_factor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ namespace aspect
evaluate_vector_field(const DataPostprocessorInputs::Vector<dim> &input_data,
std::vector<Vector<double>> &computed_quantities) const
{
Assert(Parameters<dim>::is_defect_correction(this->get_parameters().nonlinear_solver),
ExcMessage("The SPD factor plugin can only be used with defect correction type Stokes or Newton Stokes "
"solvers."));

const unsigned int n_quadrature_points = input_data.solution_values.size();
Assert (computed_quantities.size() == n_quadrature_points, ExcInternalError());
Assert (computed_quantities[0].size() == 1, ExcInternalError());
Expand Down Expand Up @@ -76,15 +80,6 @@ namespace aspect
this->get_newton_handler().parameters.SPD_safety_factor);
}
}

template <int dim>
void
SPD_Factor<dim>::parse_parameters (ParameterHandler &/*prm*/)
{
AssertThrow(Parameters<dim>::is_defect_correction(this->get_parameters().nonlinear_solver),
ExcMessage("The SPD factor plugin can only be used with defect correction type Stokes or Newton Stokes "
"solvers."));
}
}
}
}
Expand Down