Error in Gradient Of Unstructured Grid Data Set when using fields with different number of components
Tested in Paraview 5.9.1 + Windows
Steps to reproduce
Unstructured Cell Types
-
Calculator
-> Expression ->DistanceToCenter*iHat
(this field is stored inResult
and has 3 components) Gradient Of Unstructured Grid Data Set
- The
Gradients
field (computed by default from theDistanceToCenter
field) will have three components as expected - Change the
Scalar Array
of theGradient Of Unstructured Grid Data Set
filter toResult
- The resulting
Gradients
field only has 3 components while 9 are expected sinceResult
is a vector
Besides, it seems that ParaView enters a strange after state after 6. probably due to some UB or out of bounds issue?
Similar behavior can be observed when using first Result
to compute the Gradients
field and then changing DistanceToCenter
in ScalarArray
.