Commit a82ebb7a authored by Dion Haefner's avatar Dion Haefner

added dimensions key for all parameter field generators

parent 2a5ad2b4
......@@ -170,6 +170,15 @@ adding an empty line, make text **bold** or ``monospaced``.
<suggestion> false </suggestion>
</parameter>
<parameter name="dimensions">
<definition>
Spatial dimension of the created field. 3-dimensional fields are only supported
by the fft and hdf5 generators.
</definition>
<values> 2, 3 </values>
<suggestion> 2 </suggestion>
</parameter>
<parameter name="variance">
<definition>
Variance of the resulting field, if ``millerSimilarity`` is used.
......@@ -188,14 +197,6 @@ adding an empty line, make text **bold** or ``monospaced``.
</category>
<category name="generator.fft">
<parameter name="dimensions">
<definition>
Spatial dimension of the created field.
</definition>
<values> 2, 3 </values>
<suggestion> 2 </suggestion>
</parameter>
<parameter name="outputPath">
<definition>
Path to the output folder of the generated field. Note that this only accepts
......
......@@ -56,7 +56,7 @@ int main(int argc, char** argv)
Dune::ParameterTree inifile;
Dune::ParameterTreeParser ptreeparser;
ptreeparser.readINITree(inifilename,inifile);
const unsigned int dim = inifile.get<unsigned int>("generator.fft.dimensions");
const unsigned int dim = inifile.get<unsigned int>("generator.dimensions");
// Attempt to create output directory
const std::string outputPath = inifile.get<std::string>("generator.fft.outputPath");
......
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