CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Getting "Foam::sigFpe::sigHandler(int)" from custom code (https://www.cfd-online.com/Forums/openfoam-programming-development/128397-getting-foam-sigfpe-sighandler-int-custom-code.html)

Danath January 10, 2014 11:34

Getting "Foam::sigFpe::sigHandler(int)" from custom code
 
Hello Foamers!

I developed my code and i run serial . For 2 paricles my code run very well !

when i put 3 particles and above my code halt with errors

Code:

#0  Foam::error::printStack(Foam::Ostream&) in "/home/evangelos/OpenFOAM/OpenFOAM-2.2.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigFpe::sigHandler(int) in "/home/evangelos/OpenFOAM/OpenFOAM-2.2.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Uninterpreted:
#3  Foam::ParamagneticForce<Foam::KinematicCloud<Foam::Cloud<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > >::calcNonCoupled(Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > const&, double, double, double, double) const in "/home/evangelos/OpenFOAM/OpenFOAM-2.2.1/platforms/linuxGccDPOpt/lib/liblagrangianIntermediate.so"
#4 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#5 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#6 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#7 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#8 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#9 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#10 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#11 
 at NanoTher.C:0
#12 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
#13  __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#14 
 in "/home/evangelos/OpenFOAM/evangelos-2.2.1/platforms/linuxGccDPOpt/bin/NanoTher"
Εξαίρεση κινητής υποδιαστολής (core dumped)

Could someone please help me to understand the reason for the error to my code ?

wyldckat January 10, 2014 18:19

Greetings Danath,

Well, since you're building your own code, I suggest that you study this wiki page: http://openfoamwiki.net/index.php/HowTo_debugging

As for the output you're getting:
  1. Line #1 is telling you that a SIGFPE has been triggered: http://en.wikipedia.org/wiki/SIGFPE#SIGFPE
  2. Line #3 is telling you more or less where the problem occurred.
Best regards,
Bruno


All times are GMT -4. The time now is 22:08.