HomerReid / scuff-em

A comprehensive and full-featured computational physics suite for boundary-element analysis of electromagnetic scattering, fluctuation-induced phenomena (Casimir forces and radiative heat transfer), nanophotonics, RF device engineering, electrostatics, and more. Includes a core library with C++ and python APIs as well as many command-line applications.
http://www.homerreid.com/scuff-em
GNU General Public License v2.0
125 stars 50 forks source link

*** stack smashing detected *** #218

Open sean-mcsherry opened 4 years ago

sean-mcsherry commented 4 years ago

Hello,

I am receiving a stack smashing detected error.

I am using the scuff-scatter tool on a geometry that is a simple cylindrical fiber, which is infinitely extended in the x-direction. I need to make the mesh small enough such that the scattering cross section is accurate for small wavelengths (0.2 - 2 um). However, if the mesh is small and I apply periodic boundary conditions, I receive the stack smashing detected error.

Is this an error specific to my computer? (i.e. I do not have enough memory for the calculation) Or is a problem with my geometry/simulation? It occurs when the incoming plane wave is polarized in the x-direction, the same direction that the fiber is "infinitely" extended.

I have attached in image of a representative geometry that I am modeling. bead

sean-mcsherry commented 4 years ago

Here is another geometry that it will occur for: fiber

texnokrates commented 4 years ago

Hi, could you please provide the exact input files and command line arguments that gives you the error?

texnokrates commented 4 years ago

And BTW no, this is not a problem with your computer, "stack smashing" points to an error that is almost certainly a bug in the software. It might be easy to fix it for me if you help me to reproduce the bug.

texnokrates commented 4 years ago

If you are using extended geometry, it's quite likely that this error has the same source as #220; if it's the case, #222 should fix it for you. You can try my fork, which currently has some more bugfixes compared to the upstream, https://github.com/texnokrates/scuff-em