84 logger(
INFO,
"First test the gamma function is working\n"
85 "---------------------------------------- \n\n"
86 "Gamma(4) = % : Error %\n"
87 "Gamma(3.5) = % : Error %",
91 logger(
INFO,
"Second test the chi-squared distribution is working\n"
92 "---------------------------------------------------\n\n"
93 "\nFirst test chi(1.07,1) = % Error %\n"
94 "First test chi(1.07,1) = % Error %\n"
95 "First test chi(1.07,1) = % Error %",
106 logger(
INFO,
"\nSecond test the actually random number generate : Linear Congruential Generator\n"
107 "----------------------------------------------\n\n"
108 "First with the default parameters, prob numbers are from uniform = ",
Flusher::NO_FLUSH);
112 logger(
INFO,
"Third test, now with Stefans' the default parameters, prob numbers are from uniform = ",
117 problem.random.setLinearCongruentialGeneratorParmeters(1103515245, 12345, 1024 * 1024 * 1024);
118 problem.random.setRandomSeed(0);
120 logger(
INFO,
"\nForth test the actually random number generate : Lagged Fibonacci Generator\n"
121 "----------------------------------------------\n"
122 "First with the default parameters, prob numbers are from uniform = ",
Flusher::NO_FLUSH);
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
@ LAGGED_FIBONACCI_GENERATOR
@ LINEAR_CONGRUENTIAL_GENERATOR
todo{This code is not working as is wanted}
Definition: elastic_gas.cpp:13
#define INFO(i)
Definition: mumps_solver.h:54
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:16
Mdouble gamma(Mdouble gamma_in)
This is the gamma function returns the true value for the half integer value.
Definition: ExtendedMath.cc:116
Mdouble chi_squared_prob(Mdouble x, unsigned int k)
This is the function which actually gives the probability back using a chi squared test.
Definition: ExtendedMath.cc:167
T cubic(const T val)
calculates the cube of a number
Definition: ExtendedMath.h:95
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213