Commit 5ce8ac8b authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

changed demo and tutorial according new usage of Parameters::init(...)

parent aecf40a9
......@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: ball initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create projection =====
WorldVector<double> ballCenter;
......
......@@ -44,7 +44,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: bunny initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create projection =====
WorldVector<double> ballCenter;
......
......@@ -49,7 +49,7 @@ int main(int argc, char* argv[])
// ===== init parameters =====
Parameters::init(true, argv[1]);
Parameters::init(argv[1]);
// ===== create and init the scalar problem =====
......
......@@ -147,7 +147,7 @@ int main(int argc, char** argv)
TEST_EXIT(argc > 1)("usage: heat initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
Parameters::readArgv(argc, argv);
......
......@@ -48,7 +48,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: neumann initfile\n");
// ===== init parameters =====
Parameters::init(true, argv[1]);
Parameters::init(argv[1]);
// ===== create and init the scalar problem =====
ProblemStat neumann("neumann");
......
......@@ -126,7 +126,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: parametric initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create and init the scalar problem =====
ParametricSphere parametric("parametric");
......
......@@ -38,7 +38,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: periodic initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create and init the scalar problem =====
ProblemStat periodic("periodic");
......
......@@ -32,7 +32,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: sphere initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create projection =====
WorldVector<double> ballCenter;
......
......@@ -92,7 +92,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: torus initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create projection =====
double r2 = (1.5 - 1.0 / sqrt(2.0)) / 2.0;
......
......@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create and init the scalar problem =====
......
......@@ -193,7 +193,7 @@ int main(int argc, char** argv)
TEST_EXIT(argc > 1)("usage: vecheat initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
Parameters::readArgv(argc, argv);
// ===== create and init stationary problem =====
......
......@@ -126,7 +126,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc >= 2)("usage: ellipt initfile\n");
// ===== init parameters =====
Parameters::init(true, argv[1]);
Parameters::init(argv[1]);
\end{lstlisting}
The macro \verb+FUNCNAME+ defines the current function name that is
......@@ -136,9 +136,7 @@ brackets. If the condition does not hold, an error message given in
the second bracket pair is prompted and the program exits. Here the
macro is used to check, whether the parameter file was specified by
the user as command line argument. If this is the case, the parameters
are initialized by \verb+Parameters::init(true, argv[1])+. The first
argument specifies, whether the initialized parameters should be
printed after initialization for debug reasons. The second argument is
are initialized by \verb+Parameters::init(argv[1])+. The argument is
the name of the parameter file.
Now, a stationary problem with name \verb+ellipt+ is created and initialized:
......
......@@ -237,7 +237,7 @@ int main(int argc, char** argv)
TEST_EXIT(argc == 2)("usage: heat initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
Parameters::readArgv(argc, argv);
// ===== create and init stationary problem =====
......
......@@ -152,7 +152,7 @@ int main(int argc, char* argv[])
TEST_EXIT(argc == 2)("usage: torus initfile\n");
// ===== init parameters =====
Parameters::init(false, argv[1]);
Parameters::init(argv[1]);
// ===== create projection =====
double r2 = (1.5 - 1.0/std::sqrt(2.0)) / 2.0;
......
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