message: Use MFEM_ASSERT_KERNEL.
diff: @@ -327,6 +327,10 @@ int ElementRestriction::FillI(SparseMatrix &mat) const
  const int i_offset = d_offsets[i_L];
  const int i_nextOffset = d_offsets[i_L+1];
  const int i_nbElts = i_nextOffset - i_offset;
  + MFEM_ASSERT_KERNEL(
  + i_nbElts <= Max,
  + "The connectivity of this mesh is beyond the max, increase the "
  + "MaxNbNbr variable to comply with your mesh.");
  for (int e_i = 0; e_i < i_nbElts; ++e_i)
  {
  const int i_E = d_indices[i_offset+e_i];
  @@ -401,6 +405,10 @@ void ElementRestriction::FillJAndData(const Vector &ea_data,
  const int i_offset = d_offsets[i_L];
  const int i_nextOffset = d_offsets[i_L+1];
  const int i_nbElts = i_nextOffset - i_offset;
  + MFEM_ASSERT_KERNEL(
  + i_nbElts <= Max,
  + "The connectivity of this mesh is beyond the max, increase the "
  + "MaxNbNbr variable to comply with your mesh.");
  for (int e_i = 0; e_i < i_nbElts; ++e_i)
  {
  const int i_E = d_indices[i_offset+e_i];
  