/[ascend]/trunk/models/johnpye/extfn/extfntest.py
ViewVC logotype

Diff of /trunk/models/johnpye/extfn/extfntest.py

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

revision 376 by johnpye, Mon Feb 20 07:40:03 2006 UTC revision 377 by johnpye, Wed Mar 15 11:27:22 2006 UTC
# Line 5  sys.setdlopenflags(dl.RTLD_GLOBAL|dl.RTL Line 5  sys.setdlopenflags(dl.RTLD_GLOBAL|dl.RTL
5  import ascend  import ascend
6  L = ascend.Library()  L = ascend.Library()
7    
8    #--------------------------------
9    print "\n\n\n\nLOADING EXTERNAL TEST...\n\n\n"
10  L.load("extfntest.a4c")  L.load("extfntest.a4c")
11    
12    #--------------------------------
13    print "\n\n\n\nLOADING INTERNAL TEST...\n\n\n"
14    L.load("intfntest.a4c")
15    
16    #--------------------------------
17    print "\n\n\n\nINSTANTIATING TEST...\n\n\n"
18  t = L.findType("test_extfntest")  t = L.findType("test_extfntest")
19    #t = L.findType("test_intfntest")
20  sim = t.getSimulation("S")  sim = t.getSimulation("S")
21    
22  print chr(27)+"[31;1mEXTERNAL FUNCTIONS:"+chr(27)+"[0m"  print "\n--------------------------\n"
23    raise RuntimeError("stop")
24    #--------------------------------
25    print "\n\n\n\nLISTING EXTERNAL METHODS...\n\n\n"
26    print chr(27)+"[31;1mEXTERNAL METHODS (!):"+chr(27)+"[0m"
27  ff = L.getExtMethods()  ff = L.getExtMethods()
28  for f in ff:  for f in ff:
29      fn = f.getName()      fn = f.getName()
# Line 23  for f in ff: Line 37  for f in ff:
37    
38      print chr(27)+"[31;1m"+fn+chr(27)+"[31;2m: "+fh+chr(27)+"[0m"      print chr(27)+"[31;1m"+fn+chr(27)+"[31;2m: "+fh+chr(27)+"[0m"
39    
40    #--------------------------------
41    print "\n\n\n\nBUILDING...\n\n\n"
42  sim.build()  sim.build()

Legend:
Removed from v.376  
changed lines
  Added in v.377

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