/[ascend]/trunk/pygtk/solver.i
ViewVC logotype

Diff of /trunk/pygtk/solver.i

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1132 by johnpye, Sat Jan 13 06:11:02 2007 UTC revision 1133 by johnpye, Sun Jan 14 11:51:48 2007 UTC
# Line 46  Line 46 
46      Instanc __getattr__(const char *name){      Instanc __getattr__(const char *name){
47          return self->getModel().getChild(SymChar(name));          return self->getModel().getChild(SymChar(name));
48      }      }
49        %pythoncode{
50            def setParameter(self,name,value):
51                """ set the value of a parameter for this integrator """
52                P = self.getParameters()
53                P.set(name,value)
54                self.setParameters(P)
55            def getParameterValue(self,name):
56                """ retrieve the *value* of the specified parameter """
57                P = self.getParameters()
58                for p in P:
59                    if p.getName()==name:
60                        return p.getValue()
61                raise KeyError
62        }
63  }  }
64    
65  %typemap(in) FILE * {  %typemap(in) FILE * {

Legend:
Removed from v.1132  
changed lines
  Added in v.1133

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22