/[ascend]/trunk/ascend/compiler/importhandler.c
ViewVC logotype

Log of /trunk/ascend/compiler/importhandler.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 2353 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 8 11:21:09 2011 UTC (11 years, 5 months ago) by jpye
File length: 17028 byte(s)
Diff to previous 2336
fixed bug in destruction of importhandler_library. More work still to be done there.
Improved parser message for failed IMPORT.

Revision 2336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 26 03:44:24 2010 UTC (11 years, 6 months ago) by jpye
File length: 16895 byte(s)
Diff to previous 2334
Suppress some debug output.
In mtx_vector, initialise some members of mtx_vector class, because otherwise they trigger valgrind errors.

Revision 2334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 24 05:11:35 2010 UTC (11 years, 6 months ago) by jpye
File length: 16712 byte(s)
Diff to previous 2329
Some work to support cleaning up of importhandler (more work to be done still, don't know how to unload the DLLs yet).
Fixed valgrind issues with ospath, switched to strtok_r for linux.

Revision 2329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 22 12:52:47 2010 UTC (11 years, 6 months ago) by jpye
File length: 16392 byte(s)
Diff to previous 2326
Suppressing some console output.
Added test case that current crashes ASCEND/IPOPT with a memory error.
Issue with library.cpp not containing any way to free libascend memory.

Revision 2326 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 11:35:07 2010 UTC (11 years, 6 months ago) by jpye
File length: 16356 byte(s)
Diff to previous 2323
Comment out some disused functions and variables (reverse_ad.c, cmslv.c, relation.c).
Add comments about ascConfig.h->platform.h rename.
Address some compiler warnings with minor code changes in ospath and importhandler.

Revision 2323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 06:35:43 2010 UTC (11 years, 6 months ago) by jpye
File length: 16334 byte(s)
Diff to previous 2183
Refactor some more stuff from 'utilities' into 'general' with goal that 'general' never refers to 'utilities'.

Revision 2183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 4 13:38:42 2010 UTC (12 years, 2 months ago) by jpye
File length: 16339 byte(s)
Diff to previous 2143
Merging slvreq functionality into trunk.

Revision 2143 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 21 02:41:42 2009 UTC (12 years, 6 months ago) by jpye
File length: 16235 byte(s)
Diff to previous 2133
Fix SWIG detection using Python 'subprocess' module.

Revision 2133 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 18 08:37:30 2009 UTC (12 years, 6 months ago) by jpye
File length: 16229 byte(s)
Diff to previous 2036
Fixing ascend.bat for current directory layout.
Some debug output for directory scanning (disabled).

Revision 2036 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 15:03:16 2009 UTC (13 years, 1 month ago) by ballan
File length: 15867 byte(s)
Diff to previous 2018
issues resolved:
295
390
301
cmslv.c: unused var cleanup.
lsode/SConscript: fortran flags bugs-- may not work with 0.9x scons.
works with 1.2+. when adding -w, or any special flags, be sure to add
them and not replace the original flag.
system/var.c: 64bit clarity.
system/discrete.c: 64bit clarity.
system/analyze*: g_reuse declared in wrong place. 64bit clarity
system/diffvars: missing prototype function, 64bit clarity.
compiler/numlist.*: changed from int to glint.
compiler/simlist.c: missing includes needed for 64bit clarity.
compiler/instance_io.c: missing includes needed for 64bit clarity.
compiler/initialize.[ch]: const clarifications.
compiler/packages.c: const clarifications.
compiler/module.c: const clarifications.
compiler/statio.c: unused var cleanup.
compiler/procframe; const clarification. memory deallocation bugs.
compiler/notequery.c: repaired multiple casting and 64bit issues.
compiler/importhandler.c: const and free issues fixed.
compiler/type_desc.c: ridiculous if constructs clarified.
compiler/createinst.c: casting stupidity repaired.
linear/ranki2.c: missing includes needed for 64bitness.
solver/solver.c: const issues clarified.
utilities/ascConfig.h: added GLint typedefs for dealing with gllist
64bit portability.
utilities/ascPanic.c: removed extraneous const.
general/ospath.c: safer,quieter handling for string pointer difference.
integrator/integrator.c: const issues clarified.
packages/sensitivity.c: missing includes needed fo 64bit sanity.
tcltk/interface/Integrators.c: 64 bitness.
tcltk/interface/SimsProc.c: const errors.
tcltk/interface/Driver.c: fixed env var handling wrt ascend-config (295)
models/test/z*a4c: fixed meters -> m conversion; someone never ran the
test suite after teasing the default units to ambiguous abbreviations.
SConstruct: added sizeof checks; output might be better put in a ascend
system-wide header.



Revision 2018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 29 03:38:10 2009 UTC (13 years, 2 months ago) by jpye
File length: 15837 byte(s)
Diff to previous 2011
Fixed compile for new header file locations <ascend/compiler/xxx.h> etc.

Revision 2011 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 28 08:58:48 2009 UTC (13 years, 2 months ago) by jpye
File length: 15795 byte(s)
Copied from: trunk/base/generic/compiler/importhandler.c revision 2010
Diff to previous 1749
Moving libascend components from #/base/generic into #/ascend

Revision 1749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 10 07:46:48 2008 UTC (14 years, 4 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15795 byte(s)
Diff to previous 1668
Removed a whole lot of debug output from various places.

Revision 1668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 17 05:05:52 2007 UTC (14 years, 6 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15858 byte(s)
Diff to previous 1653
remove debug output

Revision 1653 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 22 13:17:06 2007 UTC (14 years, 7 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15852 byte(s)
Diff to previous 1629
Clean up some #includes and func headers.
Turn on debugging in packages.c and importhandler.c.

Revision 1629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 26 12:08:19 2007 UTC (14 years, 9 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15858 byte(s)
Diff to previous 1628
Fixed dlopen bug where path contains no slash on Linux.

Revision 1628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 26 09:36:47 2007 UTC (14 years, 9 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15549 byte(s)
Diff to previous 1597
Corrected lib dependency in Debian (libtktable2.9 instead of libtktable).
Added some ATOM types for heat exchanger analysis.
Identified a bug in package_load for case where DLL is in the current directory (still needs fixing).

Revision 1597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 17 05:26:05 2007 UTC (14 years, 10 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15450 byte(s)
Diff to previous 1539
New external library naming scheme on Windows: 'name_ascend.dll' instead of 'name.dll'.
This applies to solvers as well as external methods, extpy, import handlers, etc.

Revision 1539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 11 09:14:41 2007 UTC (14 years, 11 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15441 byte(s)
Diff to previous 1520
Debug info removed.
Comment about header files removed.

Revision 1520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 30 01:23:36 2007 UTC (15 years ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15435 byte(s)
Diff to previous 1512
Fixing for missing yacc/lex on Windows, auto-update of them when yacc/lex *are* avail.
Fixing 'test.py' operation on Windows (ASCENDSOLVERS env var)
Adding missing ida.dll to installer.
Adding some missing export symbols in libascend.

Revision 1512 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 27 13:45:17 2007 UTC (15 years ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15429 byte(s)
Diff to previous 1509
Fixed handling of IDA not present. Commented out some debug stuff.

Revision 1509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 27 13:08:47 2007 UTC (15 years ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15424 byte(s)
Diff to previous 1332
Fixed external loading of integrators, at least on my system. Needs testing
with/without fortran, sundials, etc.
Changed little thing kn d1mach.c to make default behaviour correct on Linux.

Revision 1332 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 06:39:30 2007 UTC (15 years, 3 months ago) by jpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15430 byte(s)
Diff to previous 1281
Removed some debug output

Revision 1281 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 13 04:45:22 2007 UTC (15 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 15368 byte(s)
Diff to previous 1228
Fixed importhandler to work with files outside the path as well (ie absolute or relative to cwd)

Revision 1228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 25 06:57:40 2007 UTC (15 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 13977 byte(s)
Diff to previous 1063
Added getParameter by name in SolverParameters.
Fixed up refences to signal-related header files.
Fixed up various warnings from -pedantic compilation.
Identified an apparent bug with RelationCalcGradient (unsafe version).
Added support for compilation of a standalone C++ program (idatest) in SCons build.

Revision 1063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 7 07:54:06 2007 UTC (15 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 13883 byte(s)
Diff to previous 1027
Changed ASC_DLLSPEC(TYPE) to ASC_DLLSPEC TYPE, because it was causing havoc with doxygen and ctags.

Revision 1027 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 3 12:46:37 2007 UTC (15 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 13884 byte(s)
Diff to previous 1026
Fixing bug with importhandler_setsharedpointer (you need to RemoveTableData if you want to overwrite a value)
Minor correction to (not fully implemented) importhandler_destroylibrary for case where library is NULL.

Revision 1026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 3 12:03:08 2007 UTC (15 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 13655 byte(s)
Diff to previous 968
Working on tracking down a segfault occuring when TestIDADENSE and TestExtFn test suites are run together.
Added comments about new solverparameter macros.

Revision 968 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 18 05:49:00 2006 UTC (15 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12910 byte(s)
Diff to previous 931
Added SCons tests to check SIGINT and to replace ascresetneeded (need replacement for this in Autoconf as well).
Removed debugging from createinst.c
Typo (text) in evaluate.c
Commented out redundant code in importhandler.c
Added signal handling in ExecuteCASGN.
Added missing ospath_free in ModuleSearchPath.
Exported InitSymbolTable, DestroySymbolTable in symtab (dubious)
Moved FPRESET macro out of ascConfig.h and into ascSignal.h
Added Asc_SignalHandler{Push,Pop}Default.
Added ASC_RESETNEEDED and HAVE_C99FPE macros in config.h.in.
Found the bug causing the SIGFPE in idakryx.a4c (raises a question about int/float division in modelling, I think)
Added system_destroy call in Simulation::~Simulation (dubious).

Revision 931 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 23 04:31:19 2006 UTC (15 years, 7 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12918 byte(s)
Diff to previous 930
Added 'error_reporter_tree' that can organise error messages/output into a structured hierarchy.

Revision 930 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 22 13:09:09 2006 UTC (15 years, 7 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12920 byte(s)
Diff to previous 912
solve.py raises ImportError if 'browser' object is not available (right approach?)
Freeing some variables in dsgsat2.a4c.
Returing Py_None from extpy routine in 'browser' object not defined (eg during non-GUI unit testing)
Error reporting from extpy import handler (ongoing)
Timeout in versioncheck (when server unavailable)
A little more tinkering with IDA.

Revision 912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 27 07:18:21 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12918 byte(s)
Diff to previous 900
Removed BBOXWHINE (replaced with some one-time-only warnings for the moment)
Added ExtMethodDestroyFn to allow 'user_data' associated with external methods to be destroyed.
Implemented the destroy fn through to 'extpy' module.
Added 'name' as an extra parameter in the user_data for extpy, to help with debug msgs.
Moved 'solvernotes' to a file of its own (was part of listnotes.py)
Added 'repaint' to GTK 'tools' menu (for debugging)
Added 'python.h' to top of library, type files (pygtk) to stop silly warnings.
Working on some diagnosing of problems as noted in Simulation::checkInstance.
Removed some old comments from namio.h and others.
Renamed 'blsys' to 'sys' in integrator.c.
Some work on fixing up the J*v function for IDA (not yet complete).
Added new 'destroyfn' parameter (as NULL) to all calls to 'CreateUserFunctionMethod'.

Revision 900 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 06:03:04 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12845 byte(s)
Diff to previous 897
The 'sim' object is correctly accessible from script methods now, even if run during on_load.
Added 'getSimulation' to registry.cpp, added 'runDefaultMethod' to Simulation, added 'getMethod' to Type.
Running of 'on_load' is instigated at the Python level now, so that relevent python variables are set at simulations are built, etc. This appears to have cause some changes to the way the solver behaves, possibly.
Added SearchProcList to exports in libascend.


Revision 897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 24 11:05:18 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12787 byte(s)
Diff to previous 895
Adding 'NOTES' support to C++ interface. 'johnpye/thermalequilibrium2.a4c' is the example case.
listnotes.py performs listing via a python external script method.
annotation.h and annotation.cpp implement the C++ wrapper referenced by SWIG.
library.{h,cpp} modified to provide access to the AnnotationDatabase.
Typemapping modified in ascpy.i in attempt to get a more maintainable wrapping.
Added annotation.cpp to build.
Updated copyright header and formatting of notate.{c,h}.
Improved ErrMsg_BracesEOF error message fn.
Updated copyright header and formatting of braced.{c,h}
Some misc debug output removed esp in simulation.cpp, conopt.c, importhandler.c.


Revision 895 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 24 00:12:34 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12775 byte(s)
Diff to previous 888
Removed debug output (modelview.py)
Fixed bug in diagnose.py with large blocks
Removed debug output and improved error message in conopt.c
Removed debug output in lsode.c
Removed debup output in ascDynaload.c

Revision 888 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 11 14:53:27 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12760 byte(s)
Diff to previous 881
Added 'energy_per_volume' and 'power_per_volume' to atoms.a4l.
Converting dsg.a4c into a dynamic (IVP) model.
Removed some debug output from various places.
Renamed some functions in lsode.c (removed references to 'blsode' name)
Added comments in LSODE about what method is being used.
Improved LSODE error output a little bit (why bother tho eh)
Improved coupla error msgs in slv_stdcalls.c.

Revision 881 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 9 10:51:06 2006 UTC (15 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12754 byte(s)
Diff to previous 873
Removed some debug output in importhandler.
Fixed aspect ratio on four bar linkage plot.
Fixed up dsg.a4c for consistency with dsg-transient library.

Revision 873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 5 14:51:49 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12724 byte(s)
Diff to previous 869
Can now register python methods with ASCEND. Still can't execute the python code, but getting close.

Revision 869 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 4 14:03:46 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 12744 byte(s)
Diff to previous 866
'hello world' works from external python module, correctly hooks into 'browser' object.

Revision 866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 06:22:21 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 11767 byte(s)
Diff to previous 865
Adding polar moment of inertia to atoms.a4l.
Fixing two small windows-related bugs in new importhandler stuff.

Revision 865 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 28 14:19:17 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 11775 byte(s)
Diff to previous 864
First success at executing python code from inside ASCEND "IMPORT" statement :-)

Revision 864 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 28 13:39:16 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 11589 byte(s)
Diff to previous 862
ImportHandler seems to be working, tested with datareader/testtmy.a4c and extfn/testextfn.a4c.

Revision 862 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Sep 26 13:47:27 2006 UTC (15 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/importhandler.c
File length: 5550 byte(s)
Some work on the IMPORT handler functionality. Mostly just placeholders at this stage.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

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