If you call hp::FEValues::get_present_fe_values() and forgot to call
reinit() first, you presently get a poor error message. Add an assert
that present_fe_values_index is not invalid with a better error
message.
inline const FEValuesType &
FEValuesBase<dim, q_dim, FEValuesType>::get_present_fe_values() const
{
+ Assert(
+ present_fe_values_index != TableIndices<3>(numbers::invalid_unsigned_int,
+ numbers::invalid_unsigned_int,
+ numbers::invalid_unsigned_int),
+ ExcMessage(
+ "The indices of the present FEValues object are all invalid. The reason"
+ " is likely that you have forgotten to call the reinit() function."));
+
return *fe_values_table(present_fe_values_index);
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams