IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6bdecf0b authored by ralfulrich's avatar ralfulrich
Browse files

replace function by subroutine

parent 806b67ff
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!232Conex EM
......@@ -343,10 +343,6 @@ example-clang-8:
- cd build
- cmake --build . -- -j4 VERBOSE=1
- set -o pipefail
- echo "aha"
- ldd corsika_data/readLib/testData
- corsika_data/readLib/testData
- echo "ahaddd"
- ctest -j4 -VV | gzip -v -9 > test.log.gz
- make -j4 run_examples | gzip -v -9 > examples.log.gz
rules:
......
Subproject commit dc1eb37e1a309993cb0c696109c7a29201375f95
Subproject commit 417c94a28fde8824e0de3ead918b55781293e6b8
......@@ -415,7 +415,10 @@ c reading cross sections from the file
if(ifIIdat.ne.1)then
inquire(file=DATDIR(1:INDEX(DATDIR,' ')-1)//'qgsdat-II-04.bz2'
* ,exist=lcalc)
if (lcalc.and.CorDataCanDeCompress().ne.0) then
lcanRead=0
call CorDataCanDeCompress(lcanRead)
write (*,*) 'lcanRead=', lcanRead
if (lcalc.and.lcanRead.ne.0) then
luseCompress=1
else
inquire(file=DATDIR(1:INDEX(DATDIR,' ')-1)//'qgsdat-II-04'
......@@ -1970,7 +1973,9 @@ c nuclear cross sections
if(ifIIncs.ne.2)then
inquire(file=DATDIR(1:INDEX(DATDIR,' ')-1)//'sectnu-II-04.bz2'
* ,exist=lcalc)
if (lcalc.and.CorDataCanDeCompress().ne.0) then
lcanRead = 0
call CorDataCanDeCompress(lcanRead)
if (lcalc.and.lcanRead.ne.0) then
luseCompress=1
else
inquire(file=DATDIR(1:INDEX(DATDIR,' ')-1)//'sectnu-II-04'
......
......@@ -145,9 +145,9 @@ TEST_CASE("QgsjetIIInterface", "[processes]") {
[[maybe_unused]] const process::EProcessReturn ret = model.DoInteraction(projectile);
[[maybe_unused]] const GrammageType length = model.GetInteractionLength(particle);
CHECK(length / (1_g / square(1_cm)) == Approx(26568.64).margin(0.1));
CHECK(view.GetSize() == 8);
CHECK(sumCharge(view) == 2);
CHECK(length / (1_g / square(1_cm)) == Approx(93.47).margin(0.1));
CHECK(view.GetSize() == 14);
CHECK(sumCharge(view) == 1);
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