From ac07ec570aa2825eaa9d3b94af11cc4b968d0484 Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Thu, 20 Jun 2019 23:14:22 +0200 Subject: [PATCH] constructor call of FieldVector corrected in convectionDiffusionOperator --- src/amdis/localoperators/ConvectionDiffusionOperator.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amdis/localoperators/ConvectionDiffusionOperator.hpp b/src/amdis/localoperators/ConvectionDiffusionOperator.hpp index 0728f497..d38a558e 100644 --- a/src/amdis/localoperators/ConvectionDiffusionOperator.hpp +++ b/src/amdis/localoperators/ConvectionDiffusionOperator.hpp @@ -195,13 +195,13 @@ namespace AMDiS static FieldVector<T,dow> makeB(FieldVector<T,N>&& b) { return std::move(b); } template <class T> - static FieldVector<T,dow> makeB(FieldVector<T,1> const& b) { return {T(b)}; } + static FieldVector<T,dow> makeB(FieldVector<T,1> const& b) { return FieldVector<T,dow>(T(b)); } template <class T> - static FieldVector<T,dow> makeB(FieldVector<T,1>&& b) { return {T(b)}; } + static FieldVector<T,dow> makeB(FieldVector<T,1>&& b) { return FieldVector<T,dow>(T(b)); } template <class T, std::enable_if_t<std::is_arithmetic<T>::value, int> = 0> - static FieldVector<T,dow> makeB(T b) { return {b}; } + static FieldVector<T,dow> makeB(T b) { return FieldVector<T,dow>(b); } private: GridFctA gridFctA_; -- GitLab