Make sure each worklet test uses a different namespace.
Otherwise NVCC compiler has issues are we are breaking ODR, since it smashes all these files into a single compilation unit.
This commit is contained in:
parent
bdbced9c4f
commit
eb572169a5
@ -30,7 +30,7 @@
|
||||
#include <vtkm/cont/testing/Testing.h>
|
||||
#include <vtkm/cont/testing/MakeTestDataSet.h>
|
||||
|
||||
namespace test {
|
||||
namespace test_explicit {
|
||||
|
||||
class MaxNodeOrCellValue : public vtkm::worklet::WorkletMapTopology
|
||||
{
|
||||
@ -167,7 +167,7 @@ TestMaxNodeOrCell()
|
||||
//derived implementation. The vtkm::cont::CellSet should have
|
||||
//a method that return the nodesOfCellsConnectivity / structure
|
||||
//for that derived type. ( talk to robert for how dax did this )
|
||||
vtkm::worklet::DispatcherMapTopology< ::test::MaxNodeOrCellValue > dispatcher;
|
||||
vtkm::worklet::DispatcherMapTopology< ::test_explicit::MaxNodeOrCellValue > dispatcher;
|
||||
dispatcher.Invoke(ds.GetField("cellvar").GetData(),
|
||||
ds.GetField("nodevar").GetData(),
|
||||
cse->GetNodeToCellConnectivity(),
|
||||
@ -208,7 +208,7 @@ TestAvgNodeToCell()
|
||||
|
||||
VTKM_TEST_ASSERT(cse, "Expected an explicit cell set");
|
||||
|
||||
vtkm::worklet::DispatcherMapTopology< ::test::AvgNodeToCellValue > dispatcher;
|
||||
vtkm::worklet::DispatcherMapTopology< ::test_explicit::AvgNodeToCellValue > dispatcher;
|
||||
dispatcher.Invoke(ds.GetField("nodevar").GetData(),
|
||||
cse->GetNodeToCellConnectivity(),
|
||||
ds.GetField("outcellvar").GetData());
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <vtkm/cont/testing/Testing.h>
|
||||
#include <vtkm/cont/testing/MakeTestDataSet.h>
|
||||
|
||||
namespace test {
|
||||
namespace test_regular {
|
||||
|
||||
class MaxNodeOrCellValue : public vtkm::worklet::WorkletMapTopology
|
||||
{
|
||||
@ -166,7 +166,7 @@ TestMaxNodeOrCell()
|
||||
//derived implementation. The vtkm::cont::CellSet should have
|
||||
//a method that return the nodesOfCellsConnectivity / structure
|
||||
//for that derived type. ( talk to robert for how dax did this )
|
||||
vtkm::worklet::DispatcherMapTopology< ::test::MaxNodeOrCellValue > dispatcher;
|
||||
vtkm::worklet::DispatcherMapTopology< ::test_regular::MaxNodeOrCellValue > dispatcher;
|
||||
dispatcher.Invoke(ds.GetField("cellvar").GetData(),
|
||||
ds.GetField("nodevar").GetData(),
|
||||
cs->GetNodeToCellConnectivity(),
|
||||
@ -210,7 +210,7 @@ TestAvgNodeToCell()
|
||||
//derived implementation. The vtkm::cont::CellSet should have
|
||||
//a method that return the nodesOfCellsConnectivity / structure
|
||||
//for that derived type. ( talk to robert for how dax did this )
|
||||
vtkm::worklet::DispatcherMapTopology< ::test::AvgNodeToCellValue > dispatcher;
|
||||
vtkm::worklet::DispatcherMapTopology< ::test_regular::AvgNodeToCellValue > dispatcher;
|
||||
dispatcher.Invoke(ds.GetField("nodevar").GetData(),
|
||||
cs->GetNodeToCellConnectivity(),
|
||||
ds.GetField("outcellvar").GetData());
|
||||
|
Loading…
Reference in New Issue
Block a user