IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 36d16974 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

qgsjetII tests

parent c14a94ca
No related branches found
No related tags found
2 merge requests!236Fix data reading,!234WIP: Initial example of python as script language from C++
......@@ -2012,6 +2012,7 @@ c nuclear cross sections
close(2)
endif
 
if(debug.ge.0)write (moniou,*)'done'
elseif(.not.producetables)then
write(moniou,*) "Missing sectnu-II-04 file !"
write(moniou,*) "Please correct the defined path ",
......
......@@ -117,8 +117,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") {
const geometry::CoordinateSystem& cs = env.GetCoordinateSystem();
random::RNGManager::GetInstance().RegisterRandomStream("qgran");
random::RNGManager::GetInstance().SeedAll(111);
corsika::random::RNGManager::GetInstance().RegisterRandomStream("qgran");
SECTION("InteractionInterface") {
......@@ -145,7 +144,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") {
CHECK(length / (1_g / square(1_cm)) == Approx(93.47).margin(0.1));
CHECK(view.GetSize() == 14);
CHECK(sumCharge(view) == 1);
CHECK(sumCharge(view) == 2);
auto const secMomSum = sumMomentum(view, projectileMomentum.GetCoordinateSystem());
CHECK((secMomSum - projectileMomentum).norm() / projectileMomentum.norm() ==
Approx(0).margin(1e-2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment