From 4af42702262d0c5a8acf8e33adefec960ab97f81 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Sat, 11 May 2019 21:54:33 +0200 Subject: [PATCH] Add ExpressionType template parameter to tensor make_substitution_map() --- .../sd/symengine_tensor_operations.h | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/include/deal.II/differentiation/sd/symengine_tensor_operations.h b/include/deal.II/differentiation/sd/symengine_tensor_operations.h index 1014db2038..0cc417eee3 100644 --- a/include/deal.II/differentiation/sd/symengine_tensor_operations.h +++ b/include/deal.II/differentiation/sd/symengine_tensor_operations.h @@ -509,10 +509,11 @@ namespace Differentiation * @ref make_substitution_map(const Expression &,const ValueType &) * function. */ - template + template types::substitution_map - make_substitution_map(const Tensor &symbol_tensor, - const Tensor & value_tensor); + make_substitution_map( + const Tensor &symbol_tensor, + const Tensor & value_tensor); /** * Return a substitution map that has the entry keys given by the @@ -524,11 +525,11 @@ namespace Differentiation * @ref make_substitution_map(const Expression &,const ValueType &) * function. */ - template + template types::substitution_map make_substitution_map( - const SymmetricTensor &symbol_tensor, - const SymmetricTensor & value_tensor); + const SymmetricTensor &symbol_tensor, + const SymmetricTensor & value_tensor); //@} @@ -1093,10 +1094,11 @@ namespace Differentiation /* ------------------ Symbol substitution map creation ----------------*/ - template + template types::substitution_map - make_substitution_map(const Tensor &symbol_tensor, - const Tensor & value_tensor) + make_substitution_map( + const Tensor &symbol_tensor, + const Tensor & value_tensor) { types::substitution_map substitution_map; add_to_substitution_map(substitution_map, symbol_tensor, value_tensor); @@ -1104,11 +1106,11 @@ namespace Differentiation } - template + template types::substitution_map make_substitution_map( - const SymmetricTensor &symbol_tensor, - const SymmetricTensor & value_tensor) + const SymmetricTensor &symbol_tensor, + const SymmetricTensor & value_tensor) { types::substitution_map substitution_map; add_to_substitution_map(substitution_map, symbol_tensor, value_tensor); @@ -1123,6 +1125,7 @@ namespace Differentiation { template class TensorType> std::vector> -- 2.39.5