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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 2399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 1 00:34:00 2011 UTC (12 years, 9 months ago) by jpye
File length: 62201 byte(s)
Diff to previous 2398
Fixes bug 488.

Revision 2398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 1 00:16:02 2011 UTC (12 years, 9 months ago) by jpye
File length: 62225 byte(s)
Diff to previous 2397
Errors in FIX/FREE partly caught, more to do still.

Revision 2397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 28 12:18:48 2011 UTC (12 years, 9 months ago) by jpye
File length: 61217 byte(s)
Diff to previous 2345
Add test of failing FIX statements for bug #488.
Commented out unmigrated makemps code (need to migrate to new slv_param_* functions).

Revision 2345 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 29 11:52:16 2010 UTC (12 years, 11 months ago) by jpye
File length: 60978 byte(s)
Diff to previous 2344
add note about needing new proc_enum for this case.

Revision 2344 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 29 11:47:13 2010 UTC (12 years, 11 months ago) by jpye
File length: 60928 byte(s)
Diff to previous 2342
Addresses bug 456, maybe fixes it: failing ASSERT needs to pass back error flag for Proc_frame.

Revision 2342 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 27 07:02:45 2010 UTC (12 years, 11 months ago) by jpye
File length: 60866 byte(s)
Diff to previous 2339
Add compiler_basics.stoponerror test (fails currently).
Add solver_ipopt test suite, most tests passing.
Refactor test registration to use macros uniformly throughout.
Minor text change in initialize.c.

Revision 2339 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 26 07:05:04 2010 UTC (12 years, 11 months ago) by jpye
File length: 60864 byte(s)
Diff to previous 2338
Suppress some debug output.
Add a missing memory deallocation call in test_slvreq.c.

Revision 2338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 26 06:48:56 2010 UTC (12 years, 11 months ago) by jpye
File length: 60837 byte(s)
Diff to previous 2337
Fixes apparent memory leak from Initialize (fmncreate).

Revision 2337 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 26 06:24:38 2010 UTC (12 years, 11 months ago) by jpye
File length: 60804 byte(s)
Diff to previous 2329
Identified error with top-level ProcFrame not being destroyed. Will ask Ben to comment.

Revision 2329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 22 12:52:47 2010 UTC (12 years, 11 months ago) by jpye
File length: 60497 byte(s)
Diff to previous 2323
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 2323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 06:35:43 2010 UTC (12 years, 11 months ago) by jpye
File length: 60470 byte(s)
Diff to previous 2322
Refactor some more stuff from 'utilities' into 'general' with goal that 'general' never refers to 'utilities'.

Revision 2322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 06:12:36 2010 UTC (12 years, 11 months ago) by jpye
File length: 60473 byte(s)
Diff to previous 2275
Refactoring ascMalloc.h, mem.h to belong in 'general' with goal of having no references in 'general' to functions in 'utilities'.

Revision 2275 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 11 13:58:25 2010 UTC (13 years, 4 months ago) by jpye
File length: 60475 byte(s)
Diff to previous 2242
Fixing error return from asc_helmholtz function.
The bug with 'defaultall' functionality is still here... see boiler_simple_test mode in models/johnpye/fprops/rankine_fprops.a4c.

Revision 2242 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 1 03:55:33 2010 UTC (13 years, 4 months ago) by jpye
File length: 60307 byte(s)
Diff to previous 2219
Working on bug 477, trying to fix recursive 'default_self' behaviour.
Looks like problem is something to do with the 'RUN default' in basemodel.a4l, not sure why.
Added 'STOP' to gedit syntax highlighting.

Revision 2219 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 20 13:03:40 2010 UTC (13 years, 4 months ago) by jpye
File length: 60118 byte(s)
Diff to previous 2183
Fixed misplaced ascfree in the execute_init_fix_or_free fn.
In debian/control, updated dependency name as for 10.04

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

Revision 2036 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 15:03:16 2009 UTC (14 years, 6 months ago) by ballan
File length: 56457 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 (14 years, 7 months ago) by jpye
File length: 56439 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 (14 years, 7 months ago) by jpye
File length: 56411 byte(s)
Copied from: trunk/base/generic/compiler/initialize.c revision 2010
Diff to previous 1332
Moving libascend components from #/base/generic into #/ascend

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

Revision 1310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 4 12:34:05 2007 UTC (16 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56405 byte(s)
Diff to previous 1290
Silenced some debug output
Added ability to ctrl-C IDA when running through python

Revision 1290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 04:54:45 2007 UTC (16 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56312 byte(s)
Diff to previous 1211
Added new 'default' functionality plus test case

Revision 1211 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 05:09:50 2007 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56684 byte(s)
Diff to previous 1210
Fixed dependencies on dimen.h and fractions.h.

Revision 1210 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 04:25:51 2007 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56724 byte(s)
Diff to previous 978
Removed unnecessary #include <compiler.h>

Revision 978 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 20 10:26:04 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56745 byte(s)
Diff to previous 937
Failed 'ASSERT' statements in a METHOD now cause the statement to be output (as well as its location).
Improved code docs/GPL header for a few files.
Added support for 'ASSERT' in WriteStatement.
Added new WriteStatementError that included var-arg support.
Fixed ASC_ASSERT_RANGE in AscPanic.

Revision 937 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 24 03:58:49 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56741 byte(s)
Diff to previous 912
Fixed ability to run 'solve' from an external script method, without the present of the PyGTY GUI.

Revision 912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 27 07:18:21 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56761 byte(s)
Diff to previous 910
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 910 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 26 13:35:25 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56623 byte(s)
Diff to previous 908
In instantiate.c, made new blackbox code tolerant of blackboxes that don't need initialisation.
Removed some debug output.
Expanded 'extfntest.py' a little bit, for ease of testing.
Converted 'blackbox is experimental' warnings to one-time-only.
Minor change to way that webbrowser is invoked under linux.

Revision 908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 26 10:18:53 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56593 byte(s)
Diff to previous 873
first attempt at merging with Ben's changes on the trunk

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

Revision 870 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 4 15:18:18 2006 UTC (17 years, 2 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56572 byte(s)
Diff to previous 669
Added 'user_data' to the external method structure, changed some corresponding functions.
Tried adding to C++ API the means to declare a Python method, still ongoing.

Revision 669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 07:00:45 2006 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56500 byte(s)
Diff to previous 620
Merged changes from DAE branch (revisions 702 to 819) back into trunk.
This adds the Integration API to the ASCEND solver (in base/generic).
Also provides pre-alpha support for 'IDA' from the SUNDIALS suite, a DAE solver.
Many other minor code clean-ups, including adoption of new 'ASC_NEW' and friends (to replace 'ascmalloc')
Added some very sketchy stuff providing 'DIFF(...)' syntax, although it is anticipated that this will be removed.

Revision 620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 06:24:24 2006 UTC (17 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56495 byte(s)
Diff to previous 467
Added reporting of invalid units in assignments (inside METHODs)

Revision 467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 17 03:18:06 2006 UTC (17 years, 7 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56203 byte(s)
Diff to previous 411
Changed the syntax of import from
IMPORT id FROM id;
to
IMPORT id FROM "quoted/text/lib";
Writing external
METHOD calls via the EXTERNAL methname(arglist);
now works.

Against my better judgement in a few cases,
cleaned up the old EXT statement code from Abbott
to work in a typesafe manner. A better solution
is to get the CALL syntax working as defined in 
the grammar, but this takes a good deal more work
and meanwhile people want to get their phds...

Still some known bugs in relation_util.
I need to commit the test models that go with
the EXT statements. Fixed a bunch of lintish
compiler complaints. Don't try to solve external
models yet.


Revision 411 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 2 07:05:54 2006 UTC (17 years, 8 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56266 byte(s)
Diff to previous 407
Restored autotools to working, parsers to typ_ and zz_,
Fixed many missing initializations, many casting insanities
that have been creeping in, many missing forward declarations
in preparation for fixing external relations.


Revision 407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 1 21:13:03 2006 UTC (17 years, 8 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56264 byte(s)
Diff to previous 399
- Fixed missing header and casting problems in initialize.c around
JP FIX implementation.
- Repaired extfunc header declaration-- someone deleted array pointers without asking.
- Repaired casting errors in extfunc.c, probably ala kirk.
- Put in a #define for zz_lval in scanner.h to work around brokenness in flex 2.5.4;
if this breaks something for others, we need a better solution.


Revision 399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 31 08:52:57 2006 UTC (17 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56233 byte(s)
Diff to previous 371
Normalised all #include statements so that files in the current directory
are included as "localfile.h" and files in other directories are included as
<directory/file.h>
This is in accordance with the spec at
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/cpp/Include-Syntax.html#Include-Syntax

Revision 371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 14 05:04:06 2006 UTC (17 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56584 byte(s)
Diff to previous 304
Added some debug output related to external relations.
Added ./configure flags for relation debugging and compiler timing.
Removed some <!-- --> comments.

Revision 304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 22 03:05:37 2006 UTC (17 years, 9 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56538 byte(s)
Diff to previous 222
Some rationalising of duplicated code in statement.c.
Fixed bug #206 (support for FREE statement).

Revision 222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 27 04:23:20 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56033 byte(s)
Diff to previous 203
Updating for Jerry's new error_reporter syntax, bug #179

Revision 203 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 23 04:13:17 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56048 byte(s)
Diff to previous 194
Documentation changes; making 'FIX' statement less verbose;
Commenting out ununsed 'CreateExternalFunction' function

Revision 194 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 05:48:00 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56030 byte(s)
Diff to previous 190
Documentation and CONSOLE_DEBUGging.

Revision 190 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 08:53:30 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 55983 byte(s)
Diff to previous 184
- Simplifying many 'error_reporter' calls with new macros:
    ERROR_REPORTER_NOLINE and ERROR_REPORTER_HERE
- Adding some cygwin cases in the PyGTK build.

Revision 184 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 03:30:09 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 56076 byte(s)
Diff to previous 183
Fixing up error reporting for the 'FIX' statement. Addresses bug 204.

Revision 183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 02:35:00 2006 UTC (17 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 55766 byte(s)
Diff to previous 148
Added 'FIX varlist' statement to ASCEND.

Revision 148 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 08:49:39 2005 UTC (17 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 54054 byte(s)
Diff to previous 128
Changed from 'TEST expr' syntax to 'ASSERT expr' syntax.
Corrected ConfigAscend ability to compile with CMSlv solver.

Revision 128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 20 14:35:09 2005 UTC (17 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 54040 byte(s)
Diff to previous 124
Changing TEST success to ASC_USER_SUCCESS

Revision 124 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 20 08:32:25 2005 UTC (17 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 54047 byte(s)
Diff to previous 114
Adding 'TEST' statement to ASCEND METHOD syntax.
Standardising messages in slv3.
Trying to debug bug #175.

Revision 114 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 16 00:20:44 2005 UTC (17 years, 11 months ago) by jds
Original Path: trunk/base/generic/compiler/initialize.c
File length: 51996 byte(s)
Diff to previous 97
Fixed various bugs & compiler warnings:
- numerous AssertAllocateMemory & AssertMemory() bugs
- converted strdup() calls to ascstrdup() (and ascfree())
- several minor (mostly VisualC) compiler warnings (old style declarations, assignment in conditional, ...)

Revision 97 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 9 03:49:19 2005 UTC (18 years ago) by jds
Original Path: trunk/base/generic/compiler/initialize.c
File length: 51915 byte(s)
Diff to previous 89
Minor fixes to:
 - continue killing compiler warnings on gcc & msvc 
 - start working on function/data pointer mismatches
 - documentation tweaks

Fixed ascMalloc.c memory logging problems.  This has not been tested on linux/unix.  If it fails to compile, please revert to the previous version and let me know.

Revision 89 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 7 15:44:43 2005 UTC (18 years ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 51891 byte(s)
Diff to previous 76
Small changes to eliminate GCC warnings

Revision 76 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 5 17:31:00 2005 UTC (18 years ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 51913 byte(s)
Diff to previous 62
More error_reporter calls.
Removed some C++-unfriendly var names.
Removed some debug messages.
Turned off compiler timing and relation debugging.

Revision 62 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 30 05:53:20 2005 UTC (18 years ago) by johnpye
Original Path: trunk/base/generic/compiler/initialize.c
File length: 51897 byte(s)
Diff to previous 11
My first commit:
Added 'error_reporter' for standardised error reporting
Working on getting external functions running again
Also: issue 130, issue 68, issue 131, issue 89, issue 127, issue 138, issue 94.

Revision 11 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 13 16:45:56 2004 UTC (19 years ago) by aw0a
Original Path: trunk/base/generic/compiler/initialize.c
File length: 50939 byte(s)
Copied from: trunk/ascend4/compiler/initialize.c revision 10
Diff to previous 1
moving things to base/generic

Revision 1 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Oct 29 20:54:12 2004 UTC (19 years, 1 month ago) by aw0a
Original Path: trunk/ascend4/compiler/initialize.c
File length: 50939 byte(s)
Setting up web subdirectory in repository

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