/[ascend]/trunk/pygtk/interface/library.cpp
ViewVC logotype

Diff of /trunk/pygtk/interface/library.cpp

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

revision 499 by johnpye, Tue Apr 18 04:47:11 2006 UTC revision 500 by johnpye, Tue Apr 18 11:55:12 2006 UTC
# Line 45  extern "C"{ Line 45  extern "C"{
45  Library::Library(const char *defaultpath){  Library::Library(const char *defaultpath){
46      static int have_init;      static int have_init;
47      if(!have_init){      if(!have_init){
48          cerr << "Initialising ASCEND library..." << endl;          //cerr << "Initialising ASCEND library..." << endl;
49          Asc_RedirectCompilerDefault(); // Ensure that error message reach stderr          Asc_RedirectCompilerDefault(); // Ensure that error message reach stderr
50          Asc_CompilerInit(1);          Asc_CompilerInit(1);
51          Asc_ImportPathList(PATHENVIRONMENTVAR);          Asc_ImportPathList(PATHENVIRONMENTVAR);
52          char *x = Asc_GetEnv(PATHENVIRONMENTVAR);          char *x = Asc_GetEnv(PATHENVIRONMENTVAR);
53          if(x==NULL || strcmp(x,"")==0){          if(x==NULL || strcmp(x,"")==0){
54              string s = string(PATHENVIRONMENTVAR "=") + defaultpath;              string s = string(PATHENVIRONMENTVAR "=") + defaultpath;
55              cerr << "SETTING " << s << endl;              cerr << "Setting" << s << endl;
56              Asc_PutEnv(s.c_str());              Asc_PutEnv(s.c_str());
57          }          }
58          Asc_ImportPathList(PATHENVIRONMENTVAR);          Asc_ImportPathList(PATHENVIRONMENTVAR);
59          cerr << PATHENVIRONMENTVAR << " = " << x << endl;          cerr << PATHENVIRONMENTVAR << " = " << x << endl;
60          cerr << "Created LIBRARY" << endl;          //cerr << "Created LIBRARY" << endl;
61          cerr << "Registering solvers..." << endl;          cerr << "Registering solvers..." << endl;
62          registerStandardSolvers();          registerStandardSolvers();
63      }else{      }else{

Legend:
Removed from v.499  
changed lines
  Added in v.500

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