bugfix: used uninitialized vector

This commit is contained in:
Martin Diehl 2019-09-21 00:08:14 +02:00
parent 8d66136f9c
commit 93c8aa8f75
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ function rotVector(self,v,active) result(vRot)
if (dEq0(norm2(v))) then
vRot = v
else
v_normed = v_normed/norm2(v)
v_normed = v/norm2(v)
if (passive) then
q = self%q * (quaternion([0.0_pReal, v_normed(1), v_normed(2), v_normed(3)]) * conjg(self%q) )
else