]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Slight performance optimization.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 1998 18:05:00 +0000 (18:05 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 1998 18:05:00 +0000 (18:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@207 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_accessor.cc

index ff74f023cdb860a0000b2a874ada581a0a3e4fe6..b95739c01b954e19ed5a2d550f91373686aaab85 100644 (file)
@@ -22,8 +22,8 @@ void TriaAccessor<dim>::copy_from (const TriaAccessor<dim> &a) {
 
 template <int dim>
 bool TriaAccessor<dim>::operator == (const TriaAccessor<dim> &a) const {
-  return ((present_level == a.present_level) &&
-         (present_index == a.present_index) &&
+  return ((present_index == a.present_index) &&
+         (present_level == a.present_level) &&
          (tria == a.tria));
 };
 
@@ -31,8 +31,8 @@ bool TriaAccessor<dim>::operator == (const TriaAccessor<dim> &a) const {
 
 template <int dim>
 bool TriaAccessor<dim>::operator != (const TriaAccessor<dim> &a) const {
-  return ((present_level != a.present_level) ||
-         (present_index != a.present_index) ||
+  return ((present_index != a.present_index) ||
+         (present_level != a.present_level) ||
          (tria != a.tria));
 };
 

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.