Commit 30951dcd authored by Spiros Tsalikis's avatar Spiros Tsalikis
Browse files

Fix TestNamedComponents and TestContourCases tests

parent 28b64138
Pipeline #240441 failed with stages
...@@ -166,8 +166,8 @@ int TestNamedComponents(int, char*[]) ...@@ -166,8 +166,8 @@ int TestNamedComponents(int, char*[])
calc->SetAttributeTypeToPointData(); calc->SetAttributeTypeToPointData();
// Add coordinate scalar and vector variables // Add coordinate scalar and vector variables
calc->AddCoordinateScalarVariable("coordsX", 0); calc->AddCoordinateScalarVariable("coordsX", 0);
calc->AddScalarVariable("point coords_YLOC", "point coords", 1); calc->AddScalarVariable("\"point coords_YLOC\"", "point coords", 1);
calc->SetFunction("coordsX + point coords_YLOC"); calc->SetFunction("coordsX + \"point coords_YLOC\"");
calc->SetResultArrayName("Result"); calc->SetResultArrayName("Result");
calc->Update(); calc->Update();
......
...@@ -75,7 +75,7 @@ class CellTestBase: ...@@ -75,7 +75,7 @@ class CellTestBase:
calcFilter.AddVectorArrayName('grad') calcFilter.AddVectorArrayName('grad')
calcFilter.AddVectorArrayName('Normals') calcFilter.AddVectorArrayName('Normals')
calcFilter.SetResultArrayName('dir') calcFilter.SetResultArrayName('dir')
calcFilter.SetFunction('grad.Normals') calcFilter.SetFunction('dot(grad,Normals)')
calcFilter.Update() calcFilter.Update()
out = vtk.vtkUnstructuredGrid() out = vtk.vtkUnstructuredGrid()
......
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