LucianHL / SuperChic

SuperChic Monte Carlo event generator for central exclusive production
GNU General Public License v3.0
4 stars 5 forks source link

FPE for AA collisions. #175

Closed andriish closed 11 months ago

andriish commented 11 months ago

Hi @LucianHL,

in the AA collisions I see FPE


Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0  0x7f68f1c5fbaf in ???
    at /usr/src/debug/glibc-2.37-13.fc38.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
#1  0x492681 in qinit_
    at /home/andriish/Projects/SuperChic/src/diss/qinit.f:27
#2  0x44c750 in cs_
    at /home/andriish/Projects/SuperChic/src/main/main.f:1049
#3  0x42838e in master.0.vegas
    at /home/andriish/Projects/SuperChic/src/int/vegas.f:121
#4  0x40671a in superchic
    at /home/andriish/Projects/SuperChic/src/main/superchic.f:756
#5  0x4024a7 in main
    at /home/andriish/Projects/SuperChic/src/main/superchic.f:944
<end of output>
Test time =  11.90 sec

Basically here:

      xit=-bq-dsqrt(rootq)
      xit=xit/2d0/aq

in src/diss/qinit.f rootq <0.

That is a discriminant of some quadratic equation.

Could you, please, have a look?

LucianHL commented 11 months ago

I think you are trying to include inelastic photon emission for AA collisions which is not currently supported - just 'el' should be ok though

andriish commented 11 months ago

Hi @LucianHL ,

Hm. if you mean the photoproduction in AA, then I have excluded it. And the program ends there with 'STOP' and a reasonable error message. This case is exactly for the 'el'.

LucianHL commented 11 months ago

Ok thanks @andriish. This subroutine should only be called for dissociative production I believe so something else is going on here it seems. I will look into it

LucianHL commented 11 months ago

Non - el production was indeed being tested for on the latest version - I have updated to remove these and now there are crashes but "only" for showering