Commit ea67fb68 authored by Nils Kohl's avatar Nils Kohl 🌝
Browse files

And another msvc fix.

parent 5f2ef2ef
Pipeline #38943 failed with stages
in 92 minutes and 4 seconds
......@@ -200,10 +200,10 @@ ElementNeighborInfo::ElementNeighborInfo( Index
// TODO: improve normal computation!
Point innerPoint = ( 1 / 3. ) * ( elementVertexCoords()[0] + elementVertexCoords()[1] + elementVertexCoords()[2] );
const auto s = ( innerPoint - interfaceVertexCoords_[n][0] )
.template dot( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] ) /
( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] )
.template dot( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] );
const auto s =
( innerPoint - interfaceVertexCoords_[n][0] ).dot( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] ) /
( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] )
.dot( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] );
const Point proj = interfaceVertexCoords_[n][0] + s * ( interfaceVertexCoords_[n][1] - interfaceVertexCoords_[n][0] );
outwardNormal_[n] = ( innerPoint - proj );
outwardNormal_[n].normalize();
......
Markdown is supported
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