[ET Trac] [Einstein Toolkit] #456: Ensure functions are not defined twice
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Sun Aug 12 09:26:16 CDT 2012
#456: Ensure functions are not defined twice
--------------------------+-------------------------------------------------
Reporter: hinder | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Cactus | Version:
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Comment (by eschnett):
That would be straightforward.
However, I do not think that this is about scheduled functions. Any
function defined twice is an error. In most cases, it is a helper function
that has a non-unique name when a thorn is copied (e.g. called
SpatialDeterminant).
The best solution would be to check while linking. Most linkers (at least
the linux linkers) have options for this (--whole-archive). One would need
to introduce new configuration variables, autoconf these, and then uses
these while linking.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/456#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list