Commit 3f926f87 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Allow for variable levels of recursion

Change-Id: I26e97b9edbc5a4d3a22fc872f40f881b34d7a627
parent b22181b3
......@@ -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 )
{
......
Markdown is supported
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