]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small changes in some Assertions.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 25 Aug 1998 15:07:21 +0000 (15:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 25 Aug 1998 15:07:21 +0000 (15:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@514 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_accessor.cc

index 12793da09a8445f6a76d65c401620df24aaa1756..82bd1a32e32dc9414242e6368caced8a4345819a 100644 (file)
@@ -94,7 +94,7 @@ template <int dim, typename BaseClass>
 void
 DoFLineAccessor<dim,BaseClass>::get_dof_indices (vector<int> &dof_indices) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (dof_indices.size() == (2*dof_handler->get_selected_fe().dofs_per_vertex +
                                 dof_handler->get_selected_fe().dofs_per_line),
          ExcVectorDoesNotMatch());
@@ -133,7 +133,7 @@ void DoFLineAccessor<dim,BaseClass>::
 distribute_local_to_global (const dVector &local_source,
                            dVector       &global_destination) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (local_source.size() == (2*dof_handler->get_selected_fe().dofs_per_vertex +
                                  dof_handler->get_selected_fe().dofs_per_line),
          ExcVectorDoesNotMatch());
@@ -158,7 +158,7 @@ void DoFLineAccessor<dim,BaseClass>::
 distribute_local_to_global (const dFMatrix &local_source,
                            dSMatrix       &global_destination) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (local_source.m() == (2*dof_handler->get_selected_fe().dofs_per_vertex +
                               dof_handler->get_selected_fe().dofs_per_line),
          ExcVectorDoesNotMatch());
@@ -264,7 +264,7 @@ template <int dim, typename BaseClass>
 void
 DoFQuadAccessor<dim,BaseClass>::get_dof_indices (vector<int> &dof_indices) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (dof_indices.size() == (4*dof_handler->get_selected_fe().dofs_per_vertex +
                                 4*dof_handler->get_selected_fe().dofs_per_line +
                                 dof_handler->get_selected_fe().dofs_per_quad),
@@ -324,7 +324,7 @@ void DoFQuadAccessor<dim,BaseClass>::
 distribute_local_to_global (const dVector &local_source,
                            dVector       &global_destination) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (local_source.size() == (4*dof_handler->get_selected_fe().dofs_per_vertex +
                                  4*dof_handler->get_selected_fe().dofs_per_line +
                                  dof_handler->get_selected_fe().dofs_per_quad),
@@ -350,7 +350,7 @@ void DoFQuadAccessor<dim,BaseClass>::
 distribute_local_to_global (const dFMatrix &local_source,
                            dSMatrix       &global_destination) const {
   Assert (dof_handler != 0, ExcInvalidObject());
-  Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
+  Assert (dof_handler->selected_fe != 0, ExcInvalidObject());
   Assert (local_source.m() == (4*dof_handler->get_selected_fe().dofs_per_vertex +
                               4*dof_handler->get_selected_fe().dofs_per_line +
                               dof_handler->get_selected_fe().dofs_per_quad),

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


Typeset in Trocchi and Trocchi Bold Sans Serif.