Hello Gary--

> 
> A quick question about potentials, python potentials and swig to aid
> my understanding
> 
> If i look for example  at PyPot the signature of its constructor is
> PyPot.__init__(self,name). However, the signature of the underlying
> potential is PyPot(const String& instanceName, PyObject* pyObject,
> Simulation* defaultSimulation); so my question is where does the
> Simulation* come from? My suspicion (from staring at the swig code;
> which is definitely painful) is that it is filled in by swig possibly
> using a default entry in the typemap, but I could be way off the mark
> here ;-)
> 

For the details, it's renamed to _wrap_new_PyPot_LetterClass in the
swig wrappers, and that function takes the Simulation* argument. Swig
is not pretty.

Charles

Reply via email to