Commit 439a77b8 authored by Roxana Bujack's avatar Roxana Bujack
Browse files

chnge error message

parent 2901de7e
......@@ -15,7 +15,6 @@
#include <vtkm/cont/DataSet.h>
#include <vtkm/cont/DeviceAdapterAlgorithm.h>
#include <vtkm/cont/EnvironmentTracker.h>
#include <vtkm/cont/ErrorBadValue.h>
#include <vtkm/cont/Field.h>
#include <vtkm/cont/AmrDataSet.h>
#include <vtkm/Math.h>
......@@ -264,8 +263,7 @@ void AmrDataSet::ComputeGenerateParentChildInformation()
// do not execute if it has been run previously
if (ParentChildInfoComputed)
{
std::string msg = "The parent child Relationships has already been computed.\n";
throw ErrorBadValue(msg);
throw ErrorExecution("The parent child Relationships has already been computed.\n");
return;
}
ParentChildInfoComputed = true;
......@@ -414,22 +412,19 @@ void AmrDataSet::GenerateIndexArrays()
VTKM_CONT
void AmrDataSet::AppendPartition([[maybe_unused]]const vtkm::cont::DataSet& ds)
{
std::string msg = "AmrDataSet does not support appending of partitions. Use ReplacePartition instead \n";
throw ErrorBadValue(msg);
throw ErrorExecution("AmrDataSet does not support appending of partitions. Use ReplacePartition instead \n");
}
VTKM_CONT
void AmrDataSet::InsertPartition([[maybe_unused]]const vtkm::cont::DataSet& ds)
{
std::string msg = "AmrDataSet does not support insertion of partitions. Use ReplacePartition instead \n";
throw ErrorBadValue(msg);
throw ErrorExecution("AmrDataSet does not support insertion of partitions. Use ReplacePartition instead \n");
}
VTKM_CONT
void AmrDataSet::AppendPartitions([[maybe_unused]] const std::vector<vtkm::cont::DataSet>& partitions)
{
std::string msg = "AmrDataSet does not support insertion of partitions. Use ReplacePartition instead \n";
throw ErrorBadValue(msg);
throw ErrorExecution("AmrDataSet does not support insertion of partitions. Use ReplacePartition instead \n");
}
VTKM_CONT
......
Supports Markdown
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