]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More uses of DEAL_II_ALWAYS_INLINE 6195/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 7 Apr 2018 13:59:34 +0000 (15:59 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 7 Apr 2018 13:59:34 +0000 (15:59 +0200)
include/deal.II/base/symmetric_tensor.h
include/deal.II/base/tensor.h

index cc53329c6d2bcc81c196092a51f22542592eef61..baf634f95e2bbc43a0a9e6bc89a7f1d21307f34f 100644 (file)
@@ -1087,6 +1087,7 @@ namespace internal
   namespace SymmetricTensorImplementation
   {
     template <int dim, typename Number>
+    inline DEAL_II_ALWAYS_INLINE
     dealii::Tensor<2,dim,Number>
     convert_to_tensor (const dealii::SymmetricTensor<2,dim,Number> &s)
     {
@@ -1399,7 +1400,7 @@ namespace internal
 
 
 template <int rank_, int dim, typename Number>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number>::
 operator Tensor<rank_,dim,Number> () const
 {
@@ -1432,7 +1433,7 @@ SymmetricTensor<rank_,dim,Number>::operator !=
 
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number> &
 SymmetricTensor<rank_,dim,Number>::operator +=
 (const SymmetricTensor<rank_,dim,OtherNumber> &t)
@@ -1445,7 +1446,7 @@ SymmetricTensor<rank_,dim,Number>::operator +=
 
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number> &
 SymmetricTensor<rank_,dim,Number>::operator -=
 (const SymmetricTensor<rank_,dim,OtherNumber> &t)
@@ -1458,7 +1459,7 @@ SymmetricTensor<rank_,dim,Number>::operator -=
 
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number> &
 SymmetricTensor<rank_,dim,Number>::operator *= (const OtherNumber &d)
 {
@@ -1470,7 +1471,7 @@ SymmetricTensor<rank_,dim,Number>::operator *= (const OtherNumber &d)
 
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number> &
 SymmetricTensor<rank_,dim,Number>::operator /= (const OtherNumber &d)
 {
@@ -1481,7 +1482,7 @@ SymmetricTensor<rank_,dim,Number>::operator /= (const OtherNumber &d)
 
 
 template <int rank_, int dim, typename Number>
-inline
+inline DEAL_II_ALWAYS_INLINE
 SymmetricTensor<rank_,dim,Number>
 SymmetricTensor<rank_,dim,Number>::operator - () const
 {
@@ -1493,7 +1494,7 @@ SymmetricTensor<rank_,dim,Number>::operator - () const
 
 
 template <int rank_, int dim, typename Number>
-inline
+inline DEAL_II_ALWAYS_INLINE
 void
 SymmetricTensor<rank_,dim,Number>::clear ()
 {
@@ -1518,7 +1519,7 @@ namespace internal
 {
 
   template <int dim, typename Number, typename OtherNumber = Number>
-  inline
+  inline DEAL_II_ALWAYS_INLINE
   typename SymmetricTensorAccessors::double_contraction_result<2,2,dim,Number,OtherNumber>::type
   perform_double_contraction (const typename SymmetricTensorAccessors::StorageType<2,dim,Number>::base_tensor_type      &data,
                               const typename SymmetricTensorAccessors::StorageType<2,dim,OtherNumber>::base_tensor_type &sdata)
@@ -1631,7 +1632,7 @@ namespace internal
 
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 typename internal::SymmetricTensorAccessors::double_contraction_result<rank_,2,dim,Number,OtherNumber>::type
 SymmetricTensor<rank_,dim,Number>::operator * (const SymmetricTensor<2,dim,OtherNumber> &s) const
 {
index 237c0763126316e54b9952458be5bfb1a8c87acf..6819b023f309364e1c618d5dc030c59bce36c776 100644 (file)
@@ -1891,7 +1891,7 @@ contract3 (const TensorT1<rank_1, dim, T1>          &left,
  */
 template <int rank_1, int rank_2, int dim,
           typename Number, typename OtherNumber>
-inline
+inline DEAL_II_ALWAYS_INLINE
 Tensor<rank_1 + rank_2, dim, typename ProductType<Number, OtherNumber>::type>
 outer_product(const Tensor<rank_1, dim, Number> &src1,
               const Tensor<rank_2, dim, OtherNumber> &src2)

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.