IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d66d4f13 authored by Ralf Ulrich's avatar Ralf Ulrich
Browse files

Merge branch 'fix_data_reading' into 'master'

Fix data reading

See merge request !236
parents c14a94ca 4e1792ad
No related branches found
No related tags found
2 merge requests!236Fix data reading,!234WIP: Initial example of python as script language from C++
Pipeline #1858 passed with warnings
Subproject commit 221d945be7d2e08b9c1432b0bcc2707e8687eee9
Subproject commit 0fd890c3e110dae8041654eb190462bd46b5a5ef
......@@ -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