// convert data object to internal
// data for this class. fails with
// an exception if that is not
- // possible
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ // possible
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
FEValuesData<2,3> &data) const
{
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ // assert that the following dynamics
+ // cast is really well-defined.
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
// an exception if that is not
// possible
-
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
Mapping<2,3>::InternalDataBase &fedata,
FEValuesData<2,3> &data) const
{
-
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
// an exception if that is not
// possible
-
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
const UpdateFlags flags(fe_data.current_update_flags());
// data for this class. fails with
// an exception if that is not
// possible
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
// offset determines which data set
// to take (all data sets for all
// data for this class. fails with
// an exception if that is not
// possible
- InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
+ Assert (dynamic_cast<InternalData *> (&fedata) != 0, ExcInternalError());
+ InternalData &fe_data = static_cast<InternalData &> (fedata);
// offset determines which data set
// to take (all data sets for all
- // sub-faces are stored contiguously)
+ // sub-faces are stored contiguously)
const typename QProjector<dim>::DataSetDescriptor dsd;
const typename QProjector<dim>::DataSetDescriptor offset