Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Scott Wittenburg
VTK
Commits
84653eb2
Commit
84653eb2
authored
Dec 25, 2013
by
Bill Lorensen
Committed by
Code Review
Dec 25, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge topic 'Warnings_MFIXReader' into master
5df08873
COMP: Shadowed variable warning
parents
69b73931
5df08873
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
IO/Geometry/Testing/Cxx/TestMFIXReader.cxx
IO/Geometry/Testing/Cxx/TestMFIXReader.cxx
+8
-8
No files found.
IO/Geometry/Testing/Cxx/TestMFIXReader.cxx
View file @
84653eb2
...
...
@@ -92,12 +92,12 @@ int TestMFIXReader(int argc, char *argv[])
// 2) Disable one array
std
::
cout
<<
"----- Disable one array"
<<
std
::
endl
;
const
char
*
n
ame
=
reader
->
GetCellArrayName
(
0
);
reader
->
SetCellArrayStatus
(
n
ame
,
0
);
if
(
reader
->
GetCellArrayStatus
(
n
ame
)
!=
0
)
const
char
*
arrayN
ame
=
reader
->
GetCellArrayName
(
0
);
reader
->
SetCellArrayStatus
(
arrayN
ame
,
0
);
if
(
reader
->
GetCellArrayStatus
(
arrayN
ame
)
!=
0
)
{
std
::
cout
<<
"ERROR: Cell Array: "
<<
"0"
<<
" is named "
<<
n
ame
<<
" is named "
<<
arrayN
ame
<<
" and should be disabled"
<<
std
::
endl
;
return
EXIT_FAILURE
;
...
...
@@ -121,12 +121,12 @@ int TestMFIXReader(int argc, char *argv[])
// 4) Enable one array
std
::
cout
<<
"----- Enable one array"
<<
std
::
endl
;
n
ame
=
reader
->
GetCellArrayName
(
0
);
reader
->
SetCellArrayStatus
(
n
ame
,
1
);
if
(
reader
->
GetCellArrayStatus
(
n
ame
)
!=
1
)
arrayN
ame
=
reader
->
GetCellArrayName
(
0
);
reader
->
SetCellArrayStatus
(
arrayN
ame
,
1
);
if
(
reader
->
GetCellArrayStatus
(
arrayN
ame
)
!=
1
)
{
std
::
cout
<<
"ERROR: Cell Array: "
<<
"0"
<<
" is named "
<<
n
ame
<<
" is named "
<<
arrayN
ame
<<
" and should be disabled"
<<
std
::
endl
;
return
EXIT_FAILURE
;
...
...
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