Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roxana Bujack
VTK-m
Commits
439a77b8
Commit
439a77b8
authored
Sep 13, 2021
by
Roxana Bujack
Browse files
chnge error message
parent
2901de7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vtkm/cont/AmrDataSet.cxx
View file @
439a77b8
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment