/[ascend]/trunk/base/generic/utilities
ViewVC logotype

Log of /trunk/base/generic/utilities

View Directory Listing Directory Listing


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

Revision 977 - Directory Listing
Modified Wed Dec 20 00:39:52 2006 UTC (17 years, 10 months ago) by johnpye
Abstracted the internal integrator calls into a struct IntegratorInternals.
Fixed up compile-time list of integrators.
If IDA is not available, then 'INTEG_IDA' will not be defined.
Added ASC_ASSERT_RANGE for assertions x in [low,high).
Changed calling convention for integrator_get_engines().

Revision 976 - Directory Listing
Modified Tue Dec 19 13:52:51 2006 UTC (17 years, 10 months ago) by johnpye
Improved line/file/func reporting via Asc_Panic, using CPP var-arg macros under GCC.
Added ASC_ASSERT_LT and ASC_ASSERT_EQ assertion macros.
Tracking down a crash in IDA (ongoing).

Revision 972 - Directory Listing
Modified Tue Dec 19 07:55:02 2006 UTC (17 years, 10 months ago) by johnpye
Fixed a bug with initial time step in IDA (and added a checking asc_assert)
Added switch to turn on and off 'IDACalcIC'.
Changed 'already loaded' ASC_PROG_ERR into ASC_PROG_WARN (so that repeated 'IMPORT' doesn't cause problems)
Removed unnecessary solver tricks from shm.a4c (for easier debugging of Integrator API)
Widened self_test limits in zill.a4c.
Some more debugging in simulation.cpp.
Breaking down test.py into smaller test classes (thinking about moving it to its own directory)

Revision 968 - Directory Listing
Modified Mon Dec 18 05:49:00 2006 UTC (17 years, 10 months ago) by johnpye
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 962 - Directory Listing
Modified Mon Dec 11 14:43:02 2006 UTC (17 years, 11 months ago) by johnpye
Adding more LSODE test cases.
Removing some 'error tree' debug output.
Added RTOLDEF and ATOLDEF parameters to LSODE (and fixed a bug relating to integrator_lsode_params_default).

Revision 961 - Directory Listing
Modified Mon Dec 11 14:04:13 2006 UTC (17 years, 11 months ago) by johnpye
Fixed a silly bug with Integrator::setEngine.
Added test case for lotka.a4c to test.py

Revision 956 - Directory Listing
Modified Sat Dec 9 15:38:05 2006 UTC (17 years, 11 months ago) by johnpye
Removed references to 'ASC_BIG_BUGMAIL' and 'ASC_MILD_BUGMAIL'
Disabled stream redirection functions (they were making testing difficult)
Re-wrote the main test-runner to permit specific tests to be run from the commandline (ongoing)
Disabled readln tests that required stream redirection.

Revision 954 - Directory Listing
Modified Sat Dec 9 02:20:15 2006 UTC (17 years, 11 months ago) by johnpye
A few cleanups to get towards compilation on Solaris.

Revision 953 - Directory Listing
Modified Thu Dec 7 14:47:15 2006 UTC (17 years, 11 months ago) by johnpye
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 939 - Directory Listing
Modified Fri Nov 24 07:00:05 2006 UTC (17 years, 11 months ago) by johnpye
Fixing test_ascMalloc for case where dmalloc is in use

Revision 938 - Directory Listing
Modified Fri Nov 24 06:09:46 2006 UTC (17 years, 11 months ago) by johnpye
Added support for dmalloc (http://dmalloc.com)
Added Integrator::setEngine(string name)
Minor other stuff.

Revision 937 - Directory Listing
Modified Fri Nov 24 03:58:49 2006 UTC (17 years, 11 months ago) by johnpye
Fixed ability to run 'solve' from an external script method, without the present of the PyGTY GUI.

Revision 936 - Directory Listing
Modified Fri Nov 24 01:06:10 2006 UTC (17 years, 11 months ago) by johnpye
Fixed double-flush bug that results in duplicate output of some error_reporter messages.

Revision 933 - Directory Listing
Modified Thu Nov 23 22:28:00 2006 UTC (17 years, 11 months ago) by johnpye
Fixed some bugs with error_reporter_tree, and with error_callback in gtkbrowser.py

Revision 932 - Directory Listing
Modified Thu Nov 23 13:23:33 2006 UTC (17 years, 11 months ago) by johnpye
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 931 - Directory Listing
Modified Thu Nov 23 04:31:19 2006 UTC (17 years, 11 months ago) by johnpye
Added 'error_reporter_tree' that can organise error messages/output into a structured hierarchy.

Revision 929 - Directory Listing
Modified Wed Nov 22 11:01:06 2006 UTC (17 years, 11 months ago) by johnpye
Little more on removing stream redirection (ongoing)

Revision 928 - Directory Listing
Modified Wed Nov 22 10:32:18 2006 UTC (17 years, 11 months ago) by johnpye
Commented out some stream redirection stuff for simplicity.
The CUnit test suite now works as expected (but without output suppression, for the moment).
Some more effort on IDA (ongoing).

Revision 927 - Directory Listing
Modified Wed Nov 22 07:23:02 2006 UTC (17 years, 11 months ago) by johnpye
Fixed windows path for test_ascDynaLoad

Revision 926 - Directory Listing
Modified Wed Nov 22 07:22:17 2006 UTC (17 years, 11 months ago) by johnpye
Fixed test of ascDynaLoad

Revision 913 - Directory Listing
Modified Sat Oct 28 03:55:19 2006 UTC (18 years ago) by johnpye
Added test for SUNDIALS version (2.2.1 and 2.3.0-pre are preferred)
Fixed silly warning message about ignored return values from CONSOLE_DEBUG on GCC.

Revision 908 - Directory Listing
Modified Thu Oct 26 10:18:53 2006 UTC (18 years ago) by johnpye
first attempt at merging with Ben's changes on the trunk

Revision 895 - Directory Listing
Modified Tue Oct 24 00:12:34 2006 UTC (18 years ago) by johnpye
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 862 - Directory Listing
Modified Tue Sep 26 13:47:27 2006 UTC (18 years, 1 month ago) by johnpye
Some work on the IMPORT handler functionality. Mostly just placeholders at this stage.

Revision 819 - Directory Listing
Modified Wed Aug 16 15:36:12 2006 UTC (18 years, 2 months ago) by johnpye
Moved the location of the PATHENVIRONMENTVAR to config.h.in so that
it can be shared with other places that want to use that variable.
Did some bug fixing of the simple TMY reader.

Revision 818 - Directory Listing
Modified Wed Aug 16 12:54:08 2006 UTC (18 years, 2 months ago) by johnpye
Renamed the installer from 'ASCEND PyGTK' to 'ASCEND'
Added the '-y' to YACCFLAGS and '-l' TO LEXFLAGS.
Other changes are trivial.

Revision 811 - Directory Listing
Modified Thu Aug 10 17:08:16 2006 UTC (18 years, 3 months ago) by johnpye
Added vim 'syntax=python' comments to many SConscript files.
Lots more work on the datareader extfn.
The testtmy.a4c file requires the file obtained here ('gzip -d' before use)
http://rredc.nrel.gov/solar/old_data/nsrdb/tmy2/unix/23161.tm2.Z

Revision 804 - Directory Listing
Modified Fri Aug 4 05:54:34 2006 UTC (18 years, 3 months ago) by johnpye
In slv9, made changes to keep CONOPT from complaining. CMSlv still not working as expected though.
Decreased required version of Bison to 2.0.
Switched search path for CONOPT on Linux to the CONOPT_PATH env var
(LD_LIBRARY_PATH was being interfered with when ASC_DEV=1).
Some other debug message changes.

Revision 800 - Directory Listing
Modified Tue Aug 1 12:22:09 2006 UTC (18 years, 3 months ago) by johnpye
Fixed for CONOPT under Windows.

Revision 791 - Directory Listing
Modified Thu Jul 27 12:04:19 2006 UTC (18 years, 3 months ago) by johnpye
Moved 'SearchArchiveLibraryPath' into ascDynaLoad so that it can be shared between
compiler/packages and solver/conopt.

Changed debug messages in ospath.

Fixed conopt to search for consub3 in $LD_LIBRARY_PATH or /usr/lib:/usr/local/lib
by default on Linux (or %PATH% or c:\Program Files\ASCEND on Windows).

Modified definition of testconopt so that some parameters can be varied via the interface.

Revision 790 - Directory Listing
Modified Thu Jul 27 07:33:45 2006 UTC (18 years, 3 months ago) by johnpye
Added support for dlopening of CONOPT. This means that we can distribute ASCEND without
needing to maintain two versions.

Revision 783 - Directory Listing
Modified Wed Jul 26 09:16:19 2006 UTC (18 years, 3 months ago) by johnpye
First work towards reinstating the CONOPT solver. So far, I've got it building
and linking without errors, but haven't tested the resulting runtime.

Revision 779 - Directory Listing
Modified Tue Jul 18 06:40:17 2006 UTC (18 years, 3 months ago) by johnpye
Trying to fix autotools build

Revision 778 - Directory Listing
Modified Tue Jul 18 05:10:03 2006 UTC (18 years, 3 months ago) by johnpye
Working to fix the 'NORETURN' stuff so that it works on both MSVC++ and GCC and fails
gracefully elsewhere.

Revision 777 - Directory Listing
Modified Tue Jul 18 04:40:08 2006 UTC (18 years, 3 months ago) by johnpye
Working on fixing a couple of VC++ warnings

Revision 721 - Directory Listing
Modified Mon Jul 3 06:22:42 2006 UTC (18 years, 4 months ago) by johnpye
Added '--models' option to ascend-config.
Fixed a bug with packages.c wrt generating absolute paths to library files.
Added SCons directives to install header files in INSTALL_INCLUDE subdirs.
Changed rel.c so that init function is only run if provided in the package.
Added 'ospath_getabs' to convert relative paths into absolute paths by adding prefix of fully-resolved '.'

Revision 713 - Directory Listing
Modified Fri Jun 30 05:30:41 2006 UTC (18 years, 4 months ago) by johnpye
Removed disused 'cancel' facility in Asc_Panic (replaced it with
a warning saying so).

Revision 709 - Directory Listing
Modified Wed Jun 28 16:28:57 2006 UTC (18 years, 4 months ago) by johnpye
Monster commit!
Lots of recommenting and reorganising of external relations-related stuff.
Replaced a lot of ascmalloc and asccalloc calls with the new ASC_NEW* macros.
Fixed (?) the problem Art is having with icons in PyGTK.
Turned on -Wall in SConstruct and fixed up a stack of warnings.
Removed the redundant exit(2) from after Asc_Panic calls and added __attribute__((noreturn)).
Set doxygen to create callgraphs to level 2, updated doxyfile to version 1.4.7.
Fixed up building of extfntest.c.

Revision 708 - Directory Listing
Modified Tue Jun 27 07:34:31 2006 UTC (18 years, 4 months ago) by johnpye
Replaced some references to ascmalloc with ASC_NEW_ARRAY

Revision 704 - Directory Listing
Modified Mon Jun 26 23:00:56 2006 UTC (18 years, 4 months ago) by ben.allan
- fixed a minor bug in the use of dimensions in samplelist
and a #define misuse in ospath.
- defined eolstyle unix on the trunk, as I have encountered
at least 4 too many mixed-eol-style-in-one-file files in trying to 
rebuild today. obviously committer discipline is insufficient.


Revision 669 - Directory Listing
Modified Wed Jun 21 07:00:45 2006 UTC (18 years, 4 months ago) by johnpye
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 641 - Directory Listing
Modified Mon May 29 06:51:22 2006 UTC (18 years, 5 months ago) by johnpye
Putting back #include <windows.h> in ascConfig.

Revision 639 - Directory Listing
Modified Mon May 29 06:32:42 2006 UTC (18 years, 5 months ago) by johnpye
Fixing up declaration of ascstrdupf_dbg to stop MSVC whinge.

Revision 636 - Directory Listing
Modified Mon May 29 06:22:52 2006 UTC (18 years, 5 months ago) by johnpye
Fixed up some other small probs with MSVC2005

Revision 628 - Directory Listing
Modified Wed May 24 01:45:02 2006 UTC (18 years, 5 months ago) by johnpye
Fixed up standard paths stuff to use 'INSTALL_ASCDATA' as the place where tcltk/python/models etc
will live. The confusion here came from the fact that I was taking 'INSTALL_SHARE' to be be assumed
to mean 'the location of /usr/share' -- hence the resulting '$INSTALL_SHARE/ascend' that was bothering
Ben. The 'INSTALL_ASCDATA' fixes this, and behaves as he will like, I hope.

Also note that I have switched the default situation in config.h.in to use relative paths by default,
which is the preferred CMU way. SCons builds will default to absolute paths on non-Windows systems.

Revision 624 - Directory Listing
Modified Thu May 18 15:39:38 2006 UTC (18 years, 5 months ago) by ben.allan
Summary: most of the recent complaints about autotools build fixed,
but the buildbot might find a problem with the scons build/install/rpmbuild.


Details:

configure,Driver.c,utilities/config.h.in:
The choice of INSTALL_DATA as a configure variable name
has been repaired (renamed INSTALL_SHARE); INSTALL_DATA is the unix
canonical name for the program 'install' handling a data file.
Both autotools and scons builds have been updated to reflect this,
in the process correcting the definition from prefix/share to
prefix/share/ascend. 

autotools build:
Added --with-quiet option to make the install of already installed and
unchanged files less verbose.
Put in a workaround for the '' problem in tkConfig.sh seen by KC/JP.
Added --datadir support to autotools configure. If you configure
the autotools --datadir=PREFIX/share/ascend you get the same behavior
as the Pye packaging; by default you get the CMU packaging convention instead.
Added utilities/env.c to build.

compiler:
Turned off AWAL in anontype.c.
Noodling away at blackboxes continues...


Revision 615 - Directory Listing
Modified Wed May 17 06:29:40 2006 UTC (18 years, 5 months ago) by johnpye
Forced pygtk to share major env vars with base library.
Modified 'can't use this here' error messages.
Added notification when colour codes are being disabled.

Revision 605 - Directory Listing
Modified Tue May 16 00:29:51 2006 UTC (18 years, 5 months ago) by johnpye
Completing missing part of RELATIVE_PATHS configuration for SCons, to address bug #262.

Revision 600 - Directory Listing
Modified Fri May 12 14:30:18 2006 UTC (18 years, 6 months ago) by johnpye
Added some missing export symbols. Unfortunately this seems to have caused a segfaul in the CUnit tests.

Revision 599 - Directory Listing
Modified Fri May 12 12:53:57 2006 UTC (18 years, 6 months ago) by johnpye
Fixing up MALLOC_DEBUG to use config.h

Revision 598 - Directory Listing
Modified Fri May 12 12:43:57 2006 UTC (18 years, 6 months ago) by johnpye
woops

Revision 597 - Directory Listing
Modified Fri May 12 12:29:45 2006 UTC (18 years, 6 months ago) by johnpye
Still working on a way to add options to config.h.in such that it doesn't break
autotools.

Revision 596 - Directory Listing
Modified Fri May 12 11:37:24 2006 UTC (18 years, 6 months ago) by johnpye
fixed for scons, can't work out a way to allows @MISSING_SOMETHING@ to fallback safely, unfort.

Revision 595 - Directory Listing
Modified Fri May 12 11:28:44 2006 UTC (18 years, 6 months ago) by johnpye
fixing so that Ben won't need to add this macro to autoconf, hopefully.

Revision 594 - Directory Listing
Modified Fri May 12 11:10:34 2006 UTC (18 years, 6 months ago) by johnpye
Adding configuration option to turn off xterm colours in output.

Revision 593 - Directory Listing
Modified Fri May 12 10:03:59 2006 UTC (18 years, 6 months ago) by johnpye
Bumped version to 0.9.5.91.
Changed WITH_CUNIT_TESTS to WITH_CUNIT.
Added GCOV scons option.
Fixed up 'test' target for SCons.
Added lots of export symbols to libascend.so.


Revision 592 - Directory Listing
Modified Fri May 12 09:50:57 2006 UTC (18 years, 6 months ago) by johnpye
Working on adding some more export symbols, for purpose of getting Jerry's test suite to work with SCons build.

Revision 589 - Directory Listing
Modified Thu May 11 03:10:43 2006 UTC (18 years, 6 months ago) by johnpye
Fixing some malloc bugs.

Revision 588 - Directory Listing
Modified Thu May 11 02:06:46 2006 UTC (18 years, 6 months ago) by johnpye
This fixes the new Driver.c implementation. Now, default values of the environment variables
are specified in the file base/generic/utilities/config.h.in, which should be tooled up with
you configuration process. These default values will be subject to environment substiution,
so that if you set the default ASCENDTK=$ASCENDDIST/TK, that will be expanded *at runtime*.
This is to help with the 'application folder' style of installation off-root.

Revision 586 - Directory Listing
Modified Thu May 11 00:47:54 2006 UTC (18 years, 6 months ago) by johnpye
Working on improving handling of paths.

Revision 552 - Directory Listing
Modified Sat Apr 29 08:53:04 2006 UTC (18 years, 6 months ago) by johnpye
Created 'scons install' command that also works for Tcl/Tk interface.
These changes required some modifications to the default values of the environment variables.
Installed Tcl/Tk version now works with only the LD_LIBRARY_PATH env var being required.

Revision 545 - Directory Listing
Modified Thu Apr 27 03:14:08 2006 UTC (18 years, 6 months ago) by ben.allan
fixed autotools build for ospath file, config.h.in file.

Revision 543 - Directory Listing
Modified Thu Apr 27 00:04:13 2006 UTC (18 years, 6 months ago) by johnpye
Fix windows behaviour for 'IMPORT "johnpye/extfn/extfntest";'

Revision 542 - Directory Listing
Modified Wed Apr 26 15:15:40 2006 UTC (18 years, 6 months ago) by johnpye
This is a patch to allow statements like "IMPORT johnpye/extfn/extfntest".
It modifies the methods in packages.c. Plan is to reuse the same code for "REQUIRE xxxxxx" statements as well.


Revision 534 - Directory Listing
Modified Tue Apr 25 13:25:04 2006 UTC (18 years, 6 months ago) by johnpye
Working on platform-independent pathnames for the IMPORT command.
Added 'ospath.c' to base/generic/general for this purpose.
Patched kvalues and sensitivity to use the 'IMPORT "libname";' syntax
instead of 'IMPORT registerfn FROM libname;'.
Fixed pathnames in create.nsi.
Added GPL header to coupla files.
Added quoting to 'IMPORT' syntax in ascParse.y.
Removed 'PackageOption' from Tcl/Tk related Scons options so that missing Tcl/Tk
doesn't cause breakage.

Revision 530 - Directory Listing
Modified Sat Apr 22 07:52:30 2006 UTC (18 years, 6 months ago) by johnpye
Found the problem with the PyGTK interface: a too-long vsprintf. Changed to vsnprintf.

Revision 529 - Directory Listing
Modified Sat Apr 22 06:26:23 2006 UTC (18 years, 6 months ago) by johnpye
Working of debugging the mysterious PyGTK bug. Seems to be coming from a wrong
char *filename in an error_reporter call from the DEBUG_RELS sections of the
compiler code.
Also renamed the WSEM and WSNM macros for clarity, removed unused file pointer.

Revision 526 - Directory Listing
Modified Fri Apr 21 13:47:31 2006 UTC (18 years, 6 months ago) by johnpye
Fixed up a problem with ordering of headers with Python.h.
Removed psyco initialisation, pending evidence that it actually does something :-)
Disabled python 'director' error message callbacks, trying to debug a segfault.
Added ability to disable GCC Visibility, scons WITH_GCCVISIBILITY=0.
Turned off runtime signal tests for SIG_INT and SIG_FPE (makes using GDB a pain), see base/generic/utilities/ascSignal.[ch].

Revision 525 - Directory Listing
Modified Fri Apr 21 10:41:45 2006 UTC (18 years, 6 months ago) by johnpye
Rolled 'ascPrintType.h' into 'ascPrint.h' for simplicity.

Revision 522 - Directory Listing
Modified Fri Apr 21 07:22:20 2006 UTC (18 years, 6 months ago) by johnpye
Fixed all the missing symbols so that ASCEND Tcl/Tk interface builds with separate 'ascendtcl.dll'.
Split Driver.c across Driver.c and new main.c, which has no Tcl/Tk references.


Revision 513 - Directory Listing
Modified Wed Apr 19 14:18:05 2006 UTC (18 years, 6 months ago) by johnpye
Fixing error.h so variadic macros only used in MSVC++ 2005.

Revision 507 - Directory Listing
Modified Wed Apr 19 02:44:25 2006 UTC (18 years, 6 months ago) by johnpye
Fixing for ubuntu GCC 4

Revision 506 - Directory Listing
Modified Tue Apr 18 14:30:39 2006 UTC (18 years, 6 months ago) by johnpye
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 501 - Directory Listing
Modified Tue Apr 18 12:40:59 2006 UTC (18 years, 6 months ago) by johnpye
Managing GCC visibility is the job of the build too, not ascConfig.h

Revision 500 - Directory Listing
Modified Tue Apr 18 11:55:12 2006 UTC (18 years, 6 months ago) by johnpye
Reduced some runtime debug messages from Python and C++ and base/generic/compiler/type_descio.c.
Fixed up support for GCC Visibility and add SCons 'sniffer' for this.
Fixed a bug with 'fileopenpath' in PyGTK interface (File->Open location is remembered from last time).
Fixed a bug with missing includes in C++.

Revision 495 - Directory Listing
Modified Tue Apr 18 07:25:04 2006 UTC (18 years, 6 months ago) by johnpye
Still trying to get the Lionux build working again. I think it's still broken.

Revision 492 - Directory Listing
Modified Tue Apr 18 07:10:01 2006 UTC (18 years, 6 months ago) by johnpye
Incorporating 'extern' into ASC_DLLSPEC

Revision 490 - Directory Listing
Modified Tue Apr 18 06:55:20 2006 UTC (18 years, 6 months ago) by johnpye
Moved 'extern "C"' into the ASC_DLLSPEC macro.
Renamed .no.yacc and .no.flex files to have .c extension, so that SCons can tell what they are.
Working on getting things building on VC++, still some problems (maybe just issues with $PATH tho)./

Revision 489 - Directory Listing
Modified Tue Apr 18 06:45:06 2006 UTC (18 years, 6 months ago) by wangym
a warning free for ascDynaLoad.c
winVC8 project update for libascend
add dir dummy to contain dummy file in the future

Revision 488 - Directory Listing
Modified Tue Apr 18 06:08:03 2006 UTC (18 years, 6 months ago) by wangym
warning free for vc compile.

Revision 487 - Directory Listing
Modified Tue Apr 18 06:04:16 2006 UTC (18 years, 6 months ago) by wangym
fix the dll built for win32

Revision 486 - Directory Listing
Modified Tue Apr 18 05:31:35 2006 UTC (18 years, 6 months ago) by johnpye
Adding GCC 'pragma' default hidden symbol visibility.

Revision 485 - Directory Listing
Modified Tue Apr 18 04:47:11 2006 UTC (18 years, 6 months ago) by johnpye
Huge cleanup of file header comments (GPL notice etc).

Changed from ASC_DLLSPEC to ASC_DLLSPEC(TYPE) -- like python

Fixed up some badly export symbols (missing 'extern')

Fixed exporting of symbols from error.h

Removed ASC_DLLSPEC from .c files-- only in .h files now (hope that's right...)

Changed the way bintoken does its exporting, to take 
advantage of ASC_BUILDING_LIBASCEND (needs testing)

I wonder if the 'extern' keywork should be a part of the ASC_DLLSPEC macro?


Revision 480 - Directory Listing
Modified Mon Apr 17 10:45:23 2006 UTC (18 years, 6 months ago) by johnpye
Adding ASC_DLLSPEC to all functions that are being used by Python interface.
Also cleaned up some #ifdef header brackets and html-style comments inside doxygen comments.
Renamed pygtk/interface/config.in to pygtk/interface/config.h.in and made 
this active again (for ASC_BUILDING_INTERFACE) use.
Trying to catch error in ascpy.Library call with try/except, doesn't work though.

Revision 478 - Directory Listing
Modified Mon Apr 17 08:10:48 2006 UTC (18 years, 6 months ago) by johnpye
Fixing build for SWIG 1.3.24 (no -O flag)
Adding more debug info to loading output in PyGTK interface/config.py.in
Adding SWIGVERSION flag to SCons env.
Commenting in ascDynaLoad.c and ascParse.y
Adding VERSION to config.py

Revision 467 - Directory Listing
Modified Mon Apr 17 03:18:06 2006 UTC (18 years, 6 months ago) by ben.allan
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 466 - Directory Listing
Modified Sun Apr 16 15:07:48 2006 UTC (18 years, 6 months ago) by johnpye
Rolled back revision 451, since the DLL loading issue on Windows is now resolved.
Fixed up some #ifdef brackets in slv*.h headers.
Added NSIS functionality to SConstruct file
Renamed default installer to 'ascend-setup.exe' pending a more clever approach to version numbers.

Revision 463 - Directory Listing
Modified Sun Apr 16 10:18:16 2006 UTC (18 years, 6 months ago) by johnpye
Converting to the new shared-object configuration (on email discussion with Ben)
First stage: PyGTK interface on windows. More to come.

Revision 456 - Directory Listing
Modified Wed Apr 5 13:35:15 2006 UTC (18 years, 7 months ago) by wangym
move redifinition macros from HAVE_C99 TO MSVC

Revision 451 - Directory Listing
Modified Wed Apr 5 05:14:20 2006 UTC (18 years, 7 months ago) by johnpye
Got the test suite to compile with SCons. Seems that there are some
serious problems still though.

Revision 433 - Directory Listing
Modified Tue Apr 4 07:30:54 2006 UTC (18 years, 7 months ago) by ben.allan
got rid of old solaris executable in mtx_test.
fixed buggy perm bits on sourcecode.
put better error reporting in external rel evaluation in compiler.

Revision 427 - Directory Listing
Modified Tue Apr 4 04:13:34 2006 UTC (18 years, 7 months ago) by johnpye
tentative: Disabled ascDynaload functions when DYNAMIC_PACKAGES is not defined. 
Altered error.[ch] so that MS VC++ variadic macros are used when available. 
Disabled Windows MessageBox in ascPanic, so that compilation of base engine is possible with the Platform SDK.
Added SConscript files to build FORTRAN components.
Removed some autoconf-related stuff from the pygtk/interface directory.

Revision 423 - Directory Listing
Modified Mon Apr 3 23:15:49 2006 UTC (18 years, 7 months ago) by ben.allan
Fixed instatiation of blackbox (and probably glassbox)
relations, for poorly tested definitions of 'fix'.
Blackbox evaluation is still broken.

There seems to be some chaos around win32_lean_and_mean
in ascConfig.h

updated reconfig. setenv TKROOT /where/is/tk8.3dir before 
running and all is good.

Revision 414 - Directory Listing
Modified Mon Apr 3 04:55:35 2006 UTC (18 years, 7 months ago) by johnpye
Some progress on getting a MSVC build to work with SCons. Issues with linking still.

Revision 411 - Directory Listing
Modified Sun Apr 2 07:05:54 2006 UTC (18 years, 7 months ago) by ben.allan
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 400 - Directory Listing
Modified Fri Mar 31 10:59:36 2006 UTC (18 years, 7 months ago) by johnpye
Almost there with getting Jerry's tests to run. Just sorting out the linking.

Revision 399 - Directory Listing
Modified Fri Mar 31 08:52:57 2006 UTC (18 years, 7 months ago) by johnpye
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 386 - Directory Listing
Modified Thu Mar 30 04:46:48 2006 UTC (18 years, 7 months ago) by johnpye
Added SConscript to Tcl/Tk directory.
Still having some problems with linking.

Revision 385 - Directory Listing
Modified Thu Mar 30 04:14:29 2006 UTC (18 years, 7 months ago) by johnpye
First attempt at SCons build. This will build the static libraries
for me on Linux with GCC 4.0.2. Will work now on getting it to 
build the Tcl/Tk GUI.

Revision 380 - Directory Listing
Modified Sat Mar 18 07:29:48 2006 UTC (18 years, 7 months ago) by johnpye
Fixed up dynamic loading so that external libraries can be used on Windows -- no unresolved symbols in the DLL.

Revision 379 - Directory Listing
Modified Wed Mar 15 12:48:03 2006 UTC (18 years, 7 months ago) by johnpye
Ensuring that plugins contain no undefined symbols (for the sake of Windows).
Rearranging and commending error.c slightly.
Removing some debug output in solverreporter.

Revision 377 - Directory Listing
Modified Wed Mar 15 11:27:22 2006 UTC (18 years, 7 months ago) by johnpye
By default, no xterm console colour codes are used now.
More output in extfn test python script.
pygtk/interface/Makefile cleans up gcov files when 'make clean'.

Revision 369 - Directory Listing
Modified Fri Mar 10 09:14:29 2006 UTC (18 years, 8 months ago) by johnpye
Debugging output for loading external packages.
Export error_reporter to windows DLL (needs testing).

Revision 341 - Directory Listing
Modified Wed Mar 1 05:25:23 2006 UTC (18 years, 8 months ago) by johnpye
Added support for default ASCENDLIBRARY value specified in the configure.in script.
This value used in Library(string defaultpath) and and is also passed to ASCEND by
gtkbrowser.py. Getting and setting of environment variables seems pretty messy
but hopefully this will work for now.

Revision 332 - Directory Listing
Modified Tue Feb 28 04:39:00 2006 UTC (18 years, 8 months ago) by johnpye
These changes fix compilation 'make libs' on MinGW.

I have changed the configure.in to allow '--without-tcl'
however this will likely break linux compiles. I'll commit this
on windows, then try to check out and fix on a linux machine.

Revision 224 - Directory Listing
Modified Fri Jan 27 08:19:51 2006 UTC (18 years, 9 months ago) by johnpye
Correcting a bug with error_reporter macros, reversing change of funciton name in bnd.c

Revision 222 - Directory Listing
Modified Fri Jan 27 04:23:20 2006 UTC (18 years, 9 months ago) by johnpye
Updating for Jerry's new error_reporter syntax, bug #179

Revision 216 - Directory Listing
Modified Wed Jan 25 02:12:20 2006 UTC (18 years, 9 months ago) by jds
Minor rework of jam system to stop relinking of libraries when sources not modified.
Minor tweaks to stem the tide of compiler warnings.

Revision 195 - Directory Listing
Modified Tue Jan 17 05:49:40 2006 UTC (18 years, 9 months ago) by johnpye
Commenting
Adding coloured output on CONSOLE_DEBUG
Adding test testextfn for monolithic tests of external function calls.

Revision 190 - Directory Listing
Modified Mon Jan 16 08:53:30 2006 UTC (18 years, 9 months ago) by johnpye
- Simplifying many 'error_reporter' calls with new macros:
    ERROR_REPORTER_NOLINE and ERROR_REPORTER_HERE
- Adding some cygwin cases in the PyGTK build.

Revision 188 - Directory Listing
Modified Mon Jan 16 07:47:02 2006 UTC (18 years, 9 months ago) by johnpye
Adding some missing 'EXT' code, adding 'error_reporter_here' functionality.

Revision 163 - Directory Listing
Modified Tue Jan 3 07:17:41 2006 UTC (18 years, 10 months ago) by johnpye
Fixed bug #198

Revision 162 - Directory Listing
Modified Tue Jan 3 06:51:30 2006 UTC (18 years, 10 months ago) by johnpye
Fixing problem with btprolog.h in Tcl/Tk interface

Revision 159 - Directory Listing
Modified Mon Jan 2 09:54:52 2006 UTC (18 years, 10 months ago) by johnpye
Changing FPRINTF to error_reporter

Revision 158 - Directory Listing
Modified Mon Jan 2 09:02:52 2006 UTC (18 years, 10 months ago) by johnpye
Removed support for Ultrix, OSF, which seem to be dead. This
makes the ascDynaload.c file much smaller. Also removed unused DynamicLoad
function (use Asc_DynamicLoad instead). Please let me know if these changes
break anything for you.

Revision 157 - Directory Listing
Modified Fri Dec 23 01:30:46 2005 UTC (18 years, 10 months ago) by johnpye
Adding test for other WHEN branch
Colour highlighting of failed ASSERTs on xterm

Revision 153 - Directory Listing
Modified Thu Dec 22 13:53:42 2005 UTC (18 years, 10 months ago) by johnpye
Fixing bug #178.

Revision 141 - Directory Listing
Modified Thu Dec 22 02:16:37 2005 UTC (18 years, 10 months ago) by johnpye
Modifying build so that static libraries have same name under both Jam and Autotools builds.

Revision 130 - Directory Listing
Modified Tue Dec 20 23:37:10 2005 UTC (18 years, 10 months ago) by johnpye
Working on eliminating some compiler warnings about unitialised vars
and the like.

Revision 127 - Directory Listing
Modified Tue Dec 20 14:34:32 2005 UTC (18 years, 10 months ago) by johnpye
Improving reporting of Asc_Panic for cases where the GUI is going to be killed.

Revision 124 - Directory Listing
Modified Tue Dec 20 08:32:25 2005 UTC (18 years, 10 months ago) by johnpye
Adding 'TEST' statement to ASCEND METHOD syntax.
Standardising messages in slv3.
Trying to debug bug #175.

Revision 122 - Directory Listing
Modified Mon Dec 19 06:12:40 2005 UTC (18 years, 10 months ago) by johnpye
Refactoring all MAX, MIN, ABS calls to general/mathmacros.
Adding a GCC optimisation for these macros.

Revision 114 - Directory Listing
Modified Fri Dec 16 00:20:44 2005 UTC (18 years, 10 months ago) by jds
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 103 - Directory Listing
Modified Sun Dec 11 14:31:02 2005 UTC (18 years, 11 months ago) by jds
Bug fixes & killing more compiler warnings:
- general/list.c - fixed AssertAllocatedMemory and AssertContainedMemory bugs.
- added #include of ascPanic.h where necessary to compile with ALLOCATED_TESTS defined.
- reworked utilities/ascDynaLoad to eliminate compiler warnings related to casting between data & function pointers.
- switched utilities/ascEnvVar.c over to ascstrdup (had static ascstringcopy, which did the same thing).

All regression tests passed on Windows and Linux (except pre-existing solver/slv_common issues).

Revision 102 - Directory Listing
Modified Sat Dec 10 13:53:20 2005 UTC (18 years, 11 months ago) by jds
Reworked internal ascSignal handler storage.  
Was using gl_lists, which ought not be used for function pointers.  Changed to local array implementation.  Eliminated compiler warnings related to object pointer - function pointer mismatch.  Passed regression test on Win32.

Revision 101 - Directory Listing
Modified Sat Dec 10 04:22:07 2005 UTC (18 years, 11 months ago) by jds
A little more progress killing compiler warnings.

Revision 100 - Directory Listing
Modified Fri Dec 9 23:25:15 2005 UTC (18 years, 11 months ago) by jds
ascMalloc now working on Linux.
Fixed minor bugs in ascPanic.c, test suite functions.

Revision 99 - Directory Listing
Modified Fri Dec 9 20:27:28 2005 UTC (18 years, 11 months ago) by jds
Stupid backslash habit.

Revision 97 - Directory Listing
Modified Fri Dec 9 03:49:19 2005 UTC (18 years, 11 months ago) by jds
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 - Directory Listing
Modified Wed Dec 7 15:44:43 2005 UTC (18 years, 11 months ago) by johnpye
Small changes to eliminate GCC warnings

Revision 86 - Directory Listing
Modified Wed Dec 7 04:38:54 2005 UTC (18 years, 11 months ago) by johnpye
Fixing bug #152 (jerry's solution)
Also some minor fixes to error reporting calls
Changed default values of IAPWS95 to some that converge.

Revision 85 - Directory Listing
Modified Tue Dec 6 18:04:27 2005 UTC (18 years, 11 months ago) by johnpye
A working (very slow) version of IAPWS95 which works around bug #154.
Added some debugging messages to solver (temporary).
Removed SIGINT trap.

Revision 82 - Directory Listing
Modified Tue Dec 6 08:56:24 2005 UTC (18 years, 11 months ago) by johnpye
Minor fixes

Revision 77 - Directory Listing
Modified Tue Dec 6 04:06:12 2005 UTC (18 years, 11 months ago) by johnpye
Reorganised 'HAVE_PACKAGES' in Jamrules_general.
Removed -DTHIS_IS_AN_UNUSED_FUNCTION from Jamfile so that we find if they really *are* unused.
Added CCFLAGS += stdc=c99 to Jamfile
Changed ASCEND contact details to Wiki URL instead of outdated(?) email address
Conditional HAVE_C99 flag in ascConfig.
ascDynaload.h added __unix__ CPP flag
error.h using C99 rather than GNUC extension

Revision 76 - Directory Listing
Modified Mon Dec 5 17:31:00 2005 UTC (18 years, 11 months ago) by johnpye
More error_reporter calls.
Removed some C++-unfriendly var names.
Removed some debug messages.
Turned off compiler timing and relation debugging.

Revision 67 - Directory Listing
Modified Wed Nov 30 16:31:29 2005 UTC (18 years, 11 months ago) by johnpye
Standardised the "if seen" #defines to [ASC|ASCTK|ASCPY|ASCXX]_FILENAME_H
Fixed compile on FC3

Revision 66 - Directory Listing
Modified Wed Nov 30 09:33:54 2005 UTC (18 years, 11 months ago) by johnpye
Fixing a typo

Revision 65 - Directory Listing
Modified Wed Nov 30 09:31:55 2005 UTC (18 years, 11 months ago) by johnpye
Add error.c to autotools and jam build files

Revision 62 - Directory Listing
Modified Wed Nov 30 05:53:20 2005 UTC (18 years, 11 months ago) by johnpye
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 61 - Directory Listing
Modified Mon Nov 14 02:37:20 2005 UTC (18 years, 11 months ago) by jds
Minor bug fixes, extend unit tests to solver:

minor doc changes - compiler/func.h, general/list.h, solver/mtx.h, utilities/mem.h
solver/example - upgraded examples so they run under current system
solver/slv_common.[ch] - added unit tests, minor bug fixes, extended vector_data functions
utilities/ascDynaLoad.c - bug fix on *nix so dlopen, dlsym not called with NULL arguments

Revision 60 - Directory Listing
Modified Mon Oct 31 03:39:15 2005 UTC (19 years ago) by jds
- jam build up and limping on Linux (finally).
- fixes to CUnit test suite to compile on Linux (still not operable, though).

Revision 59 - Directory Listing
Modified Sun Oct 30 01:38:20 2005 UTC (19 years ago) by jds
- prototype unit test suite based on CUnit added.
- unit tests for base/generic/general and base/generic/utilites added.
- 2nd manual rework of doxygen documentation in general and utilities.
- bug fixes (mostly general & utilities) found during test development.
- added asc_assert prototype to redirect failures to Asc_Panic() and enable decoupling assertions from NDEBUG.
- some modifications of interface & implementation to facilitate testing.
- utilities/ascPrint & utilities/ascMalloc functions now always included in base libs to minimize recompilation when an interface chooses different options.

Revision 56 - Directory Listing
Modified Sat Oct 1 00:22:50 2005 UTC (19 years, 1 month ago) by jds
Updates to jam build:
   - moved FORTRAN library references to Jamrules_general
   - reworked internal referencing; now via Jamrules_general
   - FORTRAN support libs now built & referenced properly
   - initial build of prototype test suite

Other minor source updates:
   - removed references to base.h from header file comments
   - exempted Mingw from __WIN32__ #define of LSODE in Lsode.c

Revision 55 - Directory Listing
Modified Sat Sep 3 01:25:36 2005 UTC (19 years, 2 months ago) by jds
Minor comment updates, add doc subdir to tclck98 subdir

Revision 54 - Directory Listing
Modified Tue Aug 2 11:20:09 2005 UTC (19 years, 3 months ago) by jds
Manual rework of doxygen comments in all headers.
- Added @file comment to all headers.
- Added parameter names to all function declarations in headers.
- Corrected comment referencing where necessary.
- Split some comments which documented blocks of declarations.
- Converted notes about required work into @todo comments so doxygen can generate a todo list.
Minor bug fixes.

Revision 52 - Directory Listing
Modified Sat May 21 06:14:31 2005 UTC (19 years, 5 months ago) by ben.allan
moved print vtable struct into a separate header
as only implementers of the printtype need to see
it. callers on print functions do not.


Revision 49 - Directory Listing
Modified Tue Apr 12 23:36:01 2005 UTC (19 years, 7 months ago) by ben.allan
fixed the problems with return codes jerry found.

Revision 48 - Directory Listing
Modified Sat Apr 9 13:04:03 2005 UTC (19 years, 7 months ago) by jds
Fix typo in utilities/ascConfig.h.  mea culpa.
Update WinVC7 project files.

Revision 47 - Directory Listing
Modified Thu Apr 7 23:59:22 2005 UTC (19 years, 7 months ago) by jds
Updated jam build files:
-Added support for -DTIMESTAMP builder credit.
- Renamed Tcl/Tk/TkTable libs for MinGW to match common gcc names.
- Corrected Linux ref in tcltk98 Jamfile.
- Added ascPrintTcl.c to list of interface sources.
- Fixed default CP definition in Jambase.
- Reworked gcc warning options in Jamrules_general.

utilities/ascConfig.h
- Added UNREFERENCED_PARAMETER() macro to standardize handling of unreferenced parameters.
-__WIN32__ macros for isnan(), isinf(), finite() not redefined if the plain versions exist (underscore not added in all __WIN32__ compiler systems, e.g. MinGW)

interface/ascPrintTcl.[ch]
- Added return value to Asc_PrintInit_TclVtable().
- Modified doxygen comments to describe function return values.

interface/Driver.c
- Added #include "interface/tkConsole.h" for __WIN32__ to pull in console functions.
- Added UNREFERENCED_PARAMETER() for WinMain() parameters.

Revision 45 - Directory Listing
Modified Sat Mar 5 01:53:39 2005 UTC (19 years, 8 months ago) by ben.allan
Split the tcl-io redirects out of the ascend core and moved
it to the tcltk98 interface directory. In the core
is now an expanded facility. by default  Driver.c
inits this facility to redirect stderr/out to tcl io channels.
It is also possible to add additional stderr/out
output clients for example to extra log files.

This has not been tested on windows.

in theory, we now have a tcl free core for ascend.


Revision 44 - Directory Listing
Modified Thu Mar 3 07:19:05 2005 UTC (19 years, 8 months ago) by ben.allan
Updated configure and all the makefiles to handle
VPATH with or without --srcdir. gnu make is now
required on unix.

Revision 40 - Directory Listing
Modified Sat Jan 22 14:22:13 2005 UTC (19 years, 9 months ago) by jds
Initial commit of WinVC7 and jam build files.  jam builds Ascend base libs and tcltk98 executable on Windows using msvc, borland, mingw, and watcom (watcom can't yet link executable due to lack of isnan() and copysign() functions).

Also includes minor source updates to compile & run on Windows.

Revision 35 - Directory Listing
Modified Wed Dec 29 15:05:47 2004 UTC (19 years, 10 months ago) by aw0a
corrections to make ascend compile in parallel tree

Revision 33 - Directory Listing
Modified Sun Dec 26 20:06:01 2004 UTC (19 years, 10 months ago) by ben.allan
First pass at doxygenation -- mechanically putting in ** and where
most likely needed **< using sed. Lots of cleanup needed to
be really useful, including grouping data types and their
member methods into class-like documentation.

Revision 32 - Directory Listing
Modified Thu Dec 23 18:07:19 2004 UTC (19 years, 10 months ago) by aw0a
updating configure.in - still not correct

Revision 18 - Directory Listing
Modified Tue Dec 7 20:53:37 2004 UTC (19 years, 11 months ago) by aw0a
updating configure.in and Makefile.in files throughout

Revision 16 - Directory Listing
Modified Thu Nov 25 22:52:42 2004 UTC (19 years, 11 months ago) by ben.allan
replaced nonportable strdup with ascend equivalent.

Revision 14 - Directory Listing
Modified Thu Nov 18 06:17:50 2004 UTC (19 years, 11 months ago) by ben.allan
Lots of patches to enable debugging with valgrind and
gdb (conditional use of signal.h and friends, pool and friends).
Bug fix for compiler anontype.c that was breaking
arts model under relation sharing.

Revision 11 - Directory Listing
Modified Sat Nov 13 16:45:56 2004 UTC (20 years ago) by aw0a
Copied from: trunk/ascend4/utilities revision 10
moving things to base/generic

Revision 1 - Directory Listing
Added Fri Oct 29 20:54:12 2004 UTC (20 years ago) by aw0a
Original Path: trunk/ascend4/utilities
Setting up web subdirectory in repository

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