Commit 9eed666b authored by frey_m's avatar frey_m

Merge branch '598-compile-error-in-unit-tests' into 'master'

Resolve "Compile error in unit tests"

See merge request !431
parents 73120351 0ac90170
...@@ -57,7 +57,7 @@ TEST(BinomialTest, FullSigmaTest1) { ...@@ -57,7 +57,7 @@ TEST(BinomialTest, FullSigmaTest1) {
dist.checkIfEmitted(); dist.checkIfEmitted();
size_t numParticles = 1000000; size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles; dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p); dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3; double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size())); double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
...@@ -139,7 +139,7 @@ TEST(BinomialTest, FullSigmaTest2) { ...@@ -139,7 +139,7 @@ TEST(BinomialTest, FullSigmaTest2) {
size_t numParticles = 1000000; size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles; dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p); dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3; double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size())); double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
......
...@@ -55,7 +55,7 @@ TEST(GaussTest, FullSigmaTest1) { ...@@ -55,7 +55,7 @@ TEST(GaussTest, FullSigmaTest1) {
dist.checkIfEmitted(); dist.checkIfEmitted();
size_t numParticles = 1000000; size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles; dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p); dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3; double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size())); double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
...@@ -140,7 +140,7 @@ TEST(GaussTest, FullSigmaTest2) { ...@@ -140,7 +140,7 @@ TEST(GaussTest, FullSigmaTest2) {
size_t numParticles = 1000000; size_t numParticles = 1000000;
dist.totalNumberParticles_m = numParticles; dist.totalNumberParticles_m = numParticles;
dist.create(numParticles, Physics::m_p); dist.create(numParticles, Physics::m_p, Physics::z_p);
double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3; double R11 = sqrt(gsl_stats_variance(&(dist.xDist_m[0]), 1, dist.xDist_m.size())) * 1e3;
double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size())); double R22 = sqrt(gsl_stats_variance(&(dist.pxDist_m[0]), 1, dist.pxDist_m.size()));
......
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