From e699de0ab3f93fcc0282146e4480cd989b9f3bc0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Jul 2001 12:10:45 +0000 Subject: [PATCH] Include some dof accessor functions unconditionally where they were only included in optimized mode previously. This is necessary since we can't otherwise mark them inline because they might be instantiated internally only then, and would not be accessible from files that have no access to the .templates.h file. git-svn-id: https://svn.dealii.org/trunk@4810 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_accessor.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/deal.II/deal.II/include/dofs/dof_accessor.h b/deal.II/deal.II/include/dofs/dof_accessor.h index 34f48d9e67..3adf013f7a 100644 --- a/deal.II/deal.II/include/dofs/dof_accessor.h +++ b/deal.II/deal.II/include/dofs/dof_accessor.h @@ -23,10 +23,9 @@ template class Vector; template class DoFHandler; -// note: in non-debug mode, i.e. with optimizations, the file -// dof_accessor.templates.h is included at the end of this file. -// this includes a lot of templates and thus makes compilation -// slower, but at the same time allows for more aggressive +// note: the file dof_accessor.templates.h is included at the end of +// this file. this includes a lot of templates and thus makes +// compilation slower, but at the same time allows for more aggressive // inlining and thus faster code. @@ -1262,10 +1261,8 @@ template <> TriaIterator<2, DoFObjectAccessor<1,2> > DoFCellAccessor<2>::face (c template <> TriaIterator<3, DoFObjectAccessor<2,3> > DoFCellAccessor<3>::face (const unsigned int i) const; -// if in optimized mode: include more templates -#ifndef DEBUG -# include "dof_accessor.templates.h" -#endif +// include more templates +#include "dof_accessor.templates.h" /*---------------------------- dof_iterator.h ---------------------------*/ -- 2.39.5