On Thu, 12 Oct 2006, Jun She wrote:
There is no destructor in the Class dft_flux. Is it a bug?
No, it's intentional. The dft_chunks are removed when the fields are deallocated, so there should be no memory leak. If I added a ~dft_flux destructor, however then there is a chance that it would try to deallocate the dft_chunks twice, depending on the order in which the destructors are called. This could be fixed with reference counting or similar tricks, but I didn't see the need for this.
Steven _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

