Commit 9f598de9 authored by Jan Eichstaedt's avatar Jan Eichstaedt
Browse files

changed syntax in Evaluator.hxx to confirm with MSVC++

parent 7b2114ee
......@@ -110,7 +110,7 @@ template <> inline void InvTrans<3>(NekDouble in[][3], NekDouble out[][3])
/**
* @brief Calculate Scalar product of input vectors.
*/
template<int DIM>
/*template<int DIM>
inline NekDouble ScalarProd(NekDouble in1[DIM], NekDouble in2[DIM])
{
return 0.0;
......@@ -123,6 +123,25 @@ template <> inline NekDouble ScalarProd<2>(NekDouble in1[2], NekDouble in2[2])
}
template <> inline NekDouble ScalarProd<3>(NekDouble in1[3], NekDouble in2[3])
{
return in1[0] * in2[0]
+ in1[1] * in2[1]
+ in1[2] * in2[2];
}*/
template<int DIM>
inline NekDouble ScalarProd(NekDouble (&in1)[DIM], NekDouble (&in2)[DIM])
{
return 0.0;
}
template<>
inline NekDouble ScalarProd<2>(NekDouble (&in1)[2], NekDouble (&in2)[2])
{
return in1[0] * in2[0]
+ in1[1] * in2[1];
}
template<>
inline NekDouble ScalarProd<3>(NekDouble (&in1)[3], NekDouble (&in2)[3])
{
return in1[0] * in2[0]
+ in1[1] * in2[1]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment