Compile error in unit tests
The unit tests don't compile after !420 (merged) (master) and !429 (merged) (2.4):
/home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp: In member function ‘virtual void BinomialTest_FullSigmaTest1_Test::TestBody()’:
/home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp:60:43: error: no matching function for call to ‘Distribution::create(size_t&, const double&)’
dist.create(numParticles, Physics::m_p);
^
In file included from /home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp:3:0:
/home/scratch/OPAL/OPAL-fork/OPAL-src/src/Distribution/Distribution.h:295:10: note: candidate: void Distribution::create(size_t&, double, double)
void create(size_t &numberOfParticles, double massIneV, double charge);
^~~~~~
/home/scratch/OPAL/OPAL-fork/OPAL-src/src/Distribution/Distribution.h:295:10: note: candidate expects 3 arguments, 2 provided
/home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp: In member function ‘virtual void BinomialTest_FullSigmaTest2_Test::TestBody()’:
/home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp:142:43: error: no matching function for call to ‘Distribution::create(size_t&, const double&)’
dist.create(numParticles, Physics::m_p);
^
In file included from /home/scratch/OPAL/OPAL-fork/OPAL-src/tests/opal_src/Distribution/BinomialTest.cpp:3:0:
/home/scratch/OPAL/OPAL-fork/OPAL-src/src/Distribution/Distribution.h:295:10: note: candidate: void Distribution::create(size_t&, double, double)
void create(size_t &numberOfParticles, double massIneV, double charge);
^~~~~~
/home/scratch/OPAL/OPAL-fork/OPAL-src/src/Distribution/Distribution.h:295:10: note: candidate expects 3 arguments, 2 provided
make[2]: *** [tests/CMakeFiles/opal_unit_tests.dir/opal_src/Distribution/BinomialTest.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [tests/CMakeFiles/opal_unit_tests.dir/all] Error 2
make: *** [all] Error 2
Edited by snuverink_j