From: Peter Munch Date: Thu, 25 Jun 2020 06:25:59 +0000 (+0200) Subject: Make instantiation in dof_accessor.inst.in more systematic X-Git-Tag: v9.3.0-rc1~1373^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10600%2Fhead;p=dealii.git Make instantiation in dof_accessor.inst.in more systematic --- diff --git a/source/dofs/dof_accessor.inst.in b/source/dofs/dof_accessor.inst.in index 31f8375378..a0de38911b 100644 --- a/source/dofs/dof_accessor.inst.in +++ b/source/dofs/dof_accessor.inst.in @@ -15,88 +15,49 @@ -// TODO: This could surely be made more systematic! -for (deal_II_dimension : DIMENSIONS; lda : BOOL) +for (deal_II_struct_dimension : DIMENSIONS; deal_II_dimension : DIMENSIONS; + deal_II_space_dimension : DIMENSIONS; + lda : BOOL) { - // explicit instantiations (for DoFHandler) - - -#if deal_II_dimension == 2 - template class DoFAccessor<1, 2, 2, lda>; - - template class TriaRawIterator>; - template class TriaIterator>; - template class TriaActiveIterator>; -#endif - -#if deal_II_dimension == 3 - template class DoFAccessor<1, 3, 3, lda>; - template class DoFAccessor<2, 3, 3, lda>; - - template class TriaRawIterator>; - template class TriaIterator>; - template class TriaActiveIterator>; - template class TriaRawIterator>; - template class TriaIterator>; - template class TriaActiveIterator>; -#endif - - template class DoFAccessor; - template class DoFCellAccessor; - - template class TriaRawIterator< - DoFCellAccessor>; - template class TriaIterator< - DoFCellAccessor>; - template class TriaActiveIterator< - DoFCellAccessor>; - - - - // // - // -------------------------------------------------------------------------- - // // explicit instantiations (for DoFHandler) - -#if deal_II_dimension == 1 - template class DoFAccessor<1, 1, 2, lda>; -#endif - -#if deal_II_dimension == 2 - template class DoFAccessor<1, 2, 3, lda>; - template class DoFAccessor<2, 2, 3, lda>; - - template class TriaRawIterator>; - template class TriaIterator>; - template class TriaActiveIterator>; + template class TriaRawIterator>; + template class TriaIterator>; + template class TriaActiveIterator>; #endif + } -#if deal_II_dimension != 3 +for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS; + lda : BOOL) + { +#if deal_II_dimension <= deal_II_space_dimension template class DoFCellAccessor; - template class TriaRawIterator< - DoFCellAccessor>; + DoFCellAccessor>; template class TriaIterator< - DoFCellAccessor>; + DoFCellAccessor>; template class TriaActiveIterator< - DoFCellAccessor>; -#endif - - -#if deal_II_dimension == 3 - template class DoFCellAccessor<1, 3, lda>; - - template class TriaRawIterator>; - template class TriaIterator>; - template class TriaActiveIterator>; + DoFCellAccessor>; #endif } + for (deal_II_struct_dimension : DIMENSIONS; deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) {