Commit 1d192b38 authored by Marcus Mohr's avatar Marcus Mohr
Browse files

Fixes P2VectorToP1ScalarOperator::toMatrix()

The method was broken for 3D. We need to call getDimension() on the source
function to see whether we have a 3D setting. The destination function
represents a scalar field and, thus, we always get a 1 back.
parent ee497d4f
Pipeline #34540 failed with stages
in 88 minutes
......@@ -63,7 +63,7 @@ class P2VectorToP1ScalarOperator : public Operator< P2VectorFunction< real_t >,
operX.toMatrix( mat, src[0], dst, level, flag );
operY.toMatrix( mat, src[1], dst, level, flag );
if ( dst.getDimension() == 3 )
if ( src.getDimension() == 3 )
operZ.toMatrix( mat, src[2], dst, level, flag );
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