/[ascend]/trunk/pygtk/simulation.cpp
ViewVC logotype

Log of /trunk/pygtk/simulation.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2326)

Revision 953 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 7 14:47:15 2006 UTC (17 years, 10 months ago) by johnpye
File length: 23030 byte(s)
Diff to previous 932
Added test for C99 FPE handling
Fixing mess-up of ChildByChar in arrayinst.h header.
Added 'safeeval' config option to IDA.
Changed 'SigHandler' to 'SigHandlerFn *' in line with other function pointer datatypes being used in ASCEND.
Moved processVarStatus *after* 'Failed integrator' exception (ongoing issue).

Revision 932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 23 13:23:33 2006 UTC (17 years, 10 months ago) by johnpye
File length: 22981 byte(s)
Diff to previous 921
Working on bugs in the 'error_reporter_tree' stuff.
Removed binary files from base/generic/utilities/test (these are built as needed by SCons now)

Revision 921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 6 07:49:06 2006 UTC (17 years, 11 months ago) by johnpye
File length: 22582 byte(s)
Diff to previous 919
Fixing up some malloc/free problems with  integrator.c, removing some debug output from slv3.
Working on fixing IDA for systems with inactive variables (ongoing).

Revision 919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 6 04:48:59 2006 UTC (17 years, 11 months ago) by johnpye
File length: 22576 byte(s)
Diff to previous 918
Fixing bug #305 (CONOPT not working with testconopt.a4c).
Some effort to rearrange external 'solve' scripts, ongoing.
Note, relman_diff2 returns 0 on success, but relman_eval returns 1 on success!

Revision 918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 4 03:58:06 2006 UTC (17 years, 11 months ago) by johnpye
File length: 22714 byte(s)
Diff to previous 915
Little bit of added debug output

Revision 915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 28 07:06:22 2006 UTC (17 years, 11 months ago) by johnpye
File length: 22423 byte(s)
Diff to previous 912
Working on what the problem is with 'on_load' methods in the C++/Python code.
Seems that 'EXTERNAL solve(SELF);' puts the model into a state which 'works' but if that's
not done first, then that set values in the model don't work correctly...

Revision 912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 27 07:18:21 2006 UTC (17 years, 11 months ago) by johnpye
File length: 22326 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, 11 months ago) by johnpye
File length: 21924 byte(s)
Diff to previous 900
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 900 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 06:03:04 2006 UTC (17 years, 11 months ago) by johnpye
File length: 21918 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 (17 years, 11 months ago) by johnpye
File length: 21207 byte(s)
Diff to previous 890
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 890 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 14:06:37 2006 UTC (18 years ago) by johnpye
File length: 21193 byte(s)
Diff to previous 841
Eliminated T1, T2 from dsg.a4c.
Added moody diagram example model (with python script)
Removed some debug output from solverreporter.py and simulation.cpp

Revision 841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 10 06:13:44 2006 UTC (18 years, 1 month ago) by johnpye
File length: 21177 byte(s)
Diff to previous 775
Fixed crash in simulation.cpp when freeable vars are not returned.

Revision 775 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 15 07:18:54 2006 UTC (18 years, 3 months ago) by johnpye
File length: 20928 byte(s)
Diff to previous 774
Tidied up headers in slvDOF.h
Added 'show freeable vars' to GUI.
Fixed up the 'check' function a bit. It was doing strange things.

Revision 774 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 14 08:01:48 2006 UTC (18 years, 3 months ago) by johnpye
File length: 19036 byte(s)
Diff to previous 772
Added the ability to run methods on sub-models within a simulation. Use the right-click context menu.

Revision 772 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 14 06:03:47 2006 UTC (18 years, 3 months ago) by johnpye
File length: 18922 byte(s)
Diff to previous 746
Improved the reporting of structural singularities in PyGTK interface.

Revision 746 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 7 11:01:26 2006 UTC (18 years, 3 months ago) by johnpye
File length: 19288 byte(s)
Diff to previous 714
Fixed small int/unsigned warnings.
Switched to preferring 'numarray' over 'numpy' (perhaps temporarily)

Revision 714 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 1 03:16:38 2006 UTC (18 years, 3 months ago) by johnpye
File length: 19283 byte(s)
Diff to previous 669
Commented out some disused vars

Revision 669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 07:00:45 2006 UTC (18 years, 3 months ago) by johnpye
File length: 19277 byte(s)
Diff to previous 532
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 532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 02:23:08 2006 UTC (18 years, 5 months ago) by johnpye
File length: 18520 byte(s)
Diff to previous 531
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.

Revision 531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 02:04:02 2006 UTC (18 years, 5 months ago) by johnpye
Original Path: trunk/interface/simulation.cpp
File length: 18520 byte(s)
Diff to previous 506
Removing extra subdir level in pygtk path

Revision 506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 14:30:39 2006 UTC (18 years, 6 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18520 byte(s)
Diff to previous 502
The Visual C++ 2005 version now builds without linker errors.
But I ran the installer and it crashed during the first C++ call, so still problems.

Revision 502 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 12:57:30 2006 UTC (18 years, 6 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18470 byte(s)
Diff to previous 328
Added check to see that YACC runs OK.
Fixing build with MSVC++ 2005.
All builds now except for some problems in the SWIG-generated code.

Revision 328 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 24 06:05:10 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18461 byte(s)
Diff to previous 322
Added ability to output variables at bounds (currently just to the console).
Changed solver parameters window into a proper 'dialog'.
Various fixes to make dialogs focus and position correctly.

Revision 322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 14:28:36 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 17463 byte(s)
Diff to previous 321
Cleaning up: In PopupSolverReporter, change 'Variables' to 'n of N' instead of just 'N'

Revision 321 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 14:14:36 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18438 byte(s)
Diff to previous 319
Added 'close on non-converged' preference
Unified message output for popup/non-popup status reporting

Revision 319 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 12:30:40 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18455 byte(s)
Diff to previous 317
Fixed a bug with the diagnose window after a successful solve
Added preference: SolverReporter:close_on_converged

Revision 317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 10:21:17 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18914 byte(s)
Diff to previous 316
Added GUI SolverReporter... you can now watch the residuals shrink, etc.

Revision 316 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 07:49:27 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18800 byte(s)
Diff to previous 315
Fixed bug #233

Revision 315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 07:40:47 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18807 byte(s)
Diff to previous 314
Expanded the python solver reporter a little
Added detection of newer SWIG versions that can optimise (-O)

Revision 314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 06:00:42 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18981 byte(s)
Diff to previous 310
Finally fixed the SolverReporter problems. Thanks Marcelo!

Revision 310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 23 03:48:56 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18795 byte(s)
Diff to previous 307
Fixed the SolveReporter functionality so that it works from Python

Revision 307 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 22 07:48:17 2006 UTC (18 years, 7 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18688 byte(s)
Diff to previous 297
Added wrapping of slv_status_t (SolverStatus) for bug #138.
Improved 'About...' box.

Revision 297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 17 01:51:19 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18585 byte(s)
Diff to previous 295
Fixed bug #227

Revision 295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 16 08:10:24 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 18494 byte(s)
Diff to previous 290
Added ability to output structural singularity analysis.

Revision 290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 10 03:30:05 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16389 byte(s)
Diff to previous 286
Fixable vars added to interface (outputs to console)
Added 'next big' and 'prev big' to move between 'big blocks' in the diagnose window.

Revision 286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 9 07:36:39 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16409 byte(s)
Diff to previous 285
Added cursor to report mouse-over variable and residual

Revision 285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 9 04:21:30 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16399 byte(s)
Diff to previous 275
Colours fixed, zooming works, active block focussed by default.

Revision 275 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 5 13:33:25 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16284 byte(s)
Diff to previous 260
Added reporting of divergent relation names.
Found more convergent form of LMTD heat-exchanger equation

Revision 260 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 2 15:31:29 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 15996 byte(s)
Diff to previous 258
Improved behaviour of incidence matrix when you mouseover points outside the matrix
Stopped emitting exception for Block out of range (why does it happen?)

Revision 258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 2 14:50:05 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16111 byte(s)
Diff to previous 255
Made it so that fixed variables never get an icon.

Revision 255 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 2 14:02:23 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 16015 byte(s)
Diff to previous 254
Adding preliminary support for showing variable solve-status in browser view

Revision 254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 2 06:27:17 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 15168 byte(s)
Diff to previous 252
Added reporting of unconverged variables to the console

Revision 252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 1 06:29:46 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 14737 byte(s)
Diff to previous 237
Implemented editable 'active' row in observer
Move focus of to active row when new row added and observer tab already focussed

Revision 237 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 30 06:10:26 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 14540 byte(s)
Diff to previous 233
Incidence matrix now reports the mouseover-ed variable on the console

Revision 233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 29 16:55:27 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 14516 byte(s)
Diff to previous 230
Something resembling an incidence matrix returned via SWIG...

Revision 230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 29 07:16:06 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 14264 byte(s)
Diff to previous 225
Solverparameters GUI code split into separate file.
Help launcher started, will need more work.
Corrected wrong cpu_elapsed values in GUI by direct use of tm_cpu_time()
Added 'about' box.
Fixed 'auto' menu option.

Revision 225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 27 14:55:43 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 14233 byte(s)
Diff to previous 208
Added const-ness to 2nd parameter of slv_set_char_parameter.
Implemented setting of int, real and string parameters via PyGTK interface.

Revision 208 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 24 03:19:37 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 13947 byte(s)
Diff to previous 207
Added menu bar at top of PyGTK interface.
'Preferences' menu currently just outputs the number of
solver parameters in use. Plan is to allow the parameters
to be viewed and edited via the GUI.

Revision 207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 23 06:47:06 2006 UTC (18 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 13612 byte(s)
Diff to previous 196
Added ability to output expressions from PyGTK interface. Expressions are
output to the console using WriteRelationString. You must right-click on
a relation an hit 'properties'.

Revision 196 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 15:58:23 2006 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 13633 byte(s)
Diff to previous 190
Improved status reporting for solvers. When a solver is going slowly, you'll get a fair bit of output. If it's going fast there shouldn't be much input at all. Todo: use some kind of callback technique to get this information back to the GUI.

Revision 190 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 08:53:30 2006 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 13028 byte(s)
Diff to previous 164
- Simplifying many 'error_reporter' calls with new macros:
    ERROR_REPORTER_NOLINE and ERROR_REPORTER_HERE
- Adding some cygwin cases in the PyGTK build.

Revision 164 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 3 09:54:43 2006 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 13043 byte(s)
Diff to previous 154
Added wait-cursor during compile/build, started working
on correct destruction of Simulation objects.

Revision 154 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 15:18:02 2005 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 12642 byte(s)
Diff to previous 153
Removing debug output, adding self_test to iapws95.

Revision 153 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 13:53:42 2005 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 12634 byte(s)
Diff to previous 151
Fixing bug #178.

Revision 151 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 10:58:33 2005 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 12481 byte(s)
Diff to previous 150
Working on a test case for bug #178

Revision 150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 09:24:56 2005 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 12407 byte(s)
Diff to previous 132
Committed changes to C++ solver class to accommodate new slv_lookup_client.
Still seeing bug #178 though.

Revision 132 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Dec 21 00:14:13 2005 UTC (18 years, 9 months ago) by johnpye
Original Path: trunk/pygtk/interface/simulation.cpp
File length: 12373 byte(s)
Adding the PyGTK interface to CMU repository. Whaddyareckon?

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