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
Andrew Bauer
VTK
Commits
3f926f87
Commit
3f926f87
authored
Apr 27, 2012
by
Philippe Pébay
Browse files
Allow for variable levels of recursion
Change-Id: I26e97b9edbc5a4d3a22fc872f40f881b34d7a627
parent
b22181b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Filters/HyperTree/Testing/Cxx/TestHyperTreeGrid.cxx
View file @
3f926f87
...
...
@@ -31,6 +31,7 @@ int TestHyperTreeGrid( int argc, char* argv[] )
{
// Default parameters and options
int
dim
=
3
;
int
max
=
3
;
int
nX
=
3
;
int
nY
=
4
;
int
nZ
=
2
;
...
...
@@ -50,6 +51,10 @@ int TestHyperTreeGrid( int argc, char* argv[] )
vtksys
::
CommandLineArguments
::
SPACE_ARGUMENT
,
&
dim
,
"Dimension of hyper tree grid"
);
clArgs
.
AddArgument
(
"--max-level"
,
vtksys
::
CommandLineArguments
::
SPACE_ARGUMENT
,
&
max
,
"Maximum depth of hyper tree grid"
);
clArgs
.
AddArgument
(
"--grid-size-X"
,
vtksys
::
CommandLineArguments
::
SPACE_ARGUMENT
,
&
nX
,
"Size of hyper tree grid in X direction"
);
...
...
@@ -90,6 +95,12 @@ int TestHyperTreeGrid( int argc, char* argv[] )
<<
"
\n
"
;
}
// Ensure that parsed maximum level makes sense
if
(
max
<
1
)
{
max
=
1
;
}
// Ensure that parsed dimensionality makes sense
if
(
dim
>
3
)
{
...
...
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