Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
sensei
sensei
Commits
05d6854d
Commit
05d6854d
authored
Aug 30, 2018
by
Burlen Loring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a double negative
parent
2b4a7d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
sensei/ConfigurableAnalysis.cxx
sensei/ConfigurableAnalysis.cxx
+3
-8
No files found.
sensei/ConfigurableAnalysis.cxx
View file @
05d6854d
...
...
@@ -300,12 +300,8 @@ int ConfigurableAnalysis::InternalsType::AddVTKmVolumeReduction(pugi::xml_node n
SENSEI_ERROR
(
"VTK-m analysis was requested but is disabled in this build"
)
return
-
1
;
#else
if
(
requireAttribute
(
node
,
"mesh"
)
||
requireAttribute
(
node
,
"field"
)
||
requireAttribute
(
node
,
"association"
)
||
requireAttribute
(
node
,
"reduction"
)
)
if
(
requireAttribute
(
node
,
"mesh"
)
||
requireAttribute
(
node
,
"field"
)
||
requireAttribute
(
node
,
"association"
)
||
requireAttribute
(
node
,
"reduction"
))
{
SENSEI_ERROR
(
"Failed to initialize VTKmVolumeReductionAnalysis"
);
return
-
1
;
...
...
@@ -316,8 +312,7 @@ int ConfigurableAnalysis::InternalsType::AddVTKmVolumeReduction(pugi::xml_node n
auto
assoc
=
node
.
attribute
(
"association"
).
as_string
();
auto
reduction
=
node
.
attribute
(
"reduction"
).
as_int
();
bool
haveWorkDir
=
!!
node
.
attribute
(
"working-directory"
);
std
::
string
workDir
=
haveWorkDir
?
node
.
attribute
(
"working-directory"
).
as_string
()
:
"."
;
std
::
string
workDir
=
node
.
attribute
(
"working-directory"
).
as_string
(
"."
);
auto
reducer
=
vtkSmartPointer
<
VTKmVolumeReductionAnalysis
>::
New
();
this
->
TimeInitialization
(
reducer
,
[
&
]()
{
...
...
Write
Preview
Markdown
is supported
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