2 #include "../../include/SolverParameters.h" 4 template <
int dim,
typename T>
9 std::cout <<
"\nTesting 'NonlinearSolverParameters'... " << std::endl;
19 unsigned int subtest_index = 0;
29 std::cout <<
"Subtest " << subtest_index <<
" result for 'getMaxIterations': " << result << std::endl;
31 pass = pass && result;
39 std::cout <<
"Subtest " << subtest_index <<
" result for 'getToleranceType': " << result << std::endl;
41 pass = pass && result;
49 std::cout <<
"Subtest " << subtest_index <<
" result for 'getToleranceValue': " << result << std::endl;
51 pass = pass && result;
59 std::cout <<
"Subtest " << subtest_index <<
" result for 'getBacktraceDampingFlag': " << result << std::endl;
61 pass = pass && result;
69 std::cout <<
"Subtest " << subtest_index <<
" result for 'getDefaultDampingCoefficient': " << result << std::endl;
71 pass = pass && result;
73 sprintf (buffer,
"Test result for 'NonlinearSolverParameters': %u\n", pass);
SolverToleranceType getToleranceType(unsigned int index)
double getDefaultDampingCoefficient(unsigned int index)
bool getBacktrackDampingFlag(unsigned int index)
void loadParameters(unsigned int _var_index, SolverToleranceType _tolerance_type, double _tolerance_value, bool _backtrack_damping_flag, double _backtrack_step_modifier, double _backtrack_residual_decrease_coeff, double _default_dampling_coefficient, bool _laplace_for_initial_guess)
bool test_NonlinearSolverParameters()
double getMaxIterations()
void setMaxIterations(unsigned int _max_iterations)
double getToleranceValue(unsigned int index)