const FiniteElement<dim> &fe = fe_values.get_fe();
const unsigned int n_components = fe.n_components();
- Assert(coefficient->n_components==1 ||
+ Assert(coefficient == 0 ||
+ coefficient->n_components==1 ||
coefficient->n_components==n_components, ExcComponentMismatch());
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
const FiniteElement<dim> &fe = fe_values.get_fe();
const unsigned int n_components = fe.n_components();
- Assert(coefficient->n_components==1 ||
+ Assert(coefficient == 0 ||
+ coefficient->n_components==1 ||
coefficient->n_components==n_components, ExcComponentMismatch());
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
ExcInternalError());
Assert (n_components == boundary_functions.begin()->second->n_components,
ExcComponentMismatch());
- Assert (coefficient->n_components==1 ||
+ Assert (coefficient ==0 ||
+ coefficient->n_components==1 ||
coefficient->n_components==n_components, ExcComponentMismatch());
#ifdef DEBUG
if (true)
const FiniteElement<dim> &fe = fe_values.get_fe();
const unsigned int n_components = fe.n_components();
- Assert(coefficient->n_components==1 ||
+ Assert(coefficient == 0 ||
+ coefficient->n_components==1 ||
coefficient->n_components==n_components, ExcComponentMismatch());
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);
const FiniteElement<dim> &fe = fe_values.get_fe();
const unsigned int n_components = fe.n_components();
- Assert(coefficient->n_components==1 ||
+ Assert(coefficient == 0 ||
+ coefficient->n_components==1 ||
coefficient->n_components==n_components, ExcComponentMismatch());
FullMatrix<double> cell_matrix (dofs_per_cell, dofs_per_cell);