Hi charles and all

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 ;-)

regards
gary

-- 
-------------------------------------------------------------------
Dr Gary Thompson                  [Homans Lab Research Coordinator]

Astbury Centre for Structural Molecular Biology,
University of Leeds,
Leeds, LS2 9JT, West-Yorkshire, UK             Tel. +44-113-3433024
email: garyt at bmb.leeds.ac.uk                   Fax  +44-113-3431935
-------------------------------------------------------------------

Reply via email to