IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 78640fcf authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

avoid infinite loop when UrQMD can't generate a collision

parent 2647a2a9
No related branches found
No related tags found
No related merge requests found
...@@ -337,6 +337,10 @@ cdh write(*,*)'(W) No collision in event ',event ...@@ -337,6 +337,10 @@ cdh write(*,*)'(W) No collision in event ',event
print *,'no collision problem in UrQMD' print *,'no collision problem in UrQMD'
c~ stop c~ stop
endif endif
if (noc.ge.50000) then
call exit(2) ! think of a better way to hand over the error
! to C++
endif
goto 1 goto 1
endif endif
......
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