|
[Rivet] segfault while declaring arrays of histogramsDavid Bjergaard david.bjergaard at gmail.comThu Aug 4 15:04:53 BST 2016
Hi Raghav, It looks like Holger found the typo. A few tips: 1. C++ is multi-paradigm, but I tend to prefer using C++ data structures over C since they tend to throw meaningful exceptions where C just blows up 2. Gdb is your friend when it comes to debugging segfaults Shameless plug for a resource I wrote: www.phy.duke.edu/~dmb60/the-guide There are links to lots of HEP software resources and, specific to you gdb, tutorials. Good luck! David > On Aug 4, 2016, at 9:55 AM, Holger Schulz <holger.schulz at durham.ac.uk> wrote: > > Hi Raghav, > > that looks roughly correct to me, maybe this is the culprit: > >> On 04/08/16 14:08, Raghav Kunnawalkam Elayavalli wrote: >> for(int j = 0; j<_NJES_pt; ++i){ > ++j maybe? > > Holger > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160804/babb8572/attachment.html>
More information about the Rivet mailing list |