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

add fclose to RWGGeometry constructor #186

Open WenjieYao opened 5 years ago

WenjieYao commented 5 years ago

Add fclose(f) to the end of the RWGGeometry constructor so that the .scuffgeo file is closed after it is used. The file stream will keep growing and eventually overflow if it is not close after several iterations.