summaryrefslogtreecommitdiff
path: root/lib/sbin/CST
Commit message (Collapse)AuthorAge
* Use "cctk_unlikely_dummy_name" instead of "dummy" when sorting thorns.schnetter2007-04-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4417 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Minor cleanup in generated code -- remove spacesschnetter2005-09-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4138 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve error messageschnetter2005-09-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4137 17b73243-c579-4c4c-a9d2-2d5706c11dac
* configuration.ccl fix. Please test and report if anything breaksyye002005-08-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4109 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make cactus thorn lib names less likely to clash with system namesgoodale2004-11-30
| | | | | | | by prefixing - currently use thorn_ for nostalgie reasons 8-) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3921 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added tracking of options for thorn configuration scripts. Now a thorngoodale2004-08-27
| | | | | | | | | | | | | | | | | | | | | | may specify OPTIONS a b c in a PROVIDES block in its configuration.ccl and these options will be tracked and stored in the configuration's config-info file. The config-info file, and any options file specified on the command line are now used to setup the environment before a configuration script is run by the CST. Note that the only options stored to the config-info file by the CST are ones specified in the configuration.ccl files, and configuration scripts are invoked each time the CST is run, so any option used by a thorn's configuration script MUST be mentioned in the configuration.ccl file to be remembered the next time the CST is invoked. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3855 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Detect if two thorns providing the same implementation have inconsistentgoodale2004-08-17
| | | | | | | | | restricted parameter sets. Patvh from Yaakoub. Fixes PR 1289. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3832 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow a thorn, which PROVIDES a certain capability, to also REQUIRE it.tradke2004-05-17
| | | | | | | | In this case the REQUIRES clause will be silently ignored to avoid cyclic dependencies in the makefile as well as for the tsort algorithm. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3739 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Just another fix for my latest commit on sorting an empty thornlist.tradke2004-05-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3707 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for my last commit: forgot to remove dummy entries in thornlist.tradke2004-05-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3706 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't try to sort an empty thornlist.tradke2004-05-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3705 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes from Yaakoub.goodale2004-05-03
| | | | | | | | Added true topological sorting of thorns. Proper error logging from configuration scripts. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3685 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed compile-time dependency of all thorns on Cactus and CactusBindings.tradke2004-03-29
| | | | | | | | Now that the F90 interface declarations were sourced out into AlphaThorns/F90 this isn't necessary anymore. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3618 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Erik Schnetter:goodale2004-03-27
| | | | | | | | | | Do not list thorn dependencies twice. Do not use upper case for makefile variables containing thorn names, because the makefiles cannot convert the library names to upper case. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3608 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing a debugging statement.goodale2004-03-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3606 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implementation of configuration.ccl spec from Yaakoub Y El-Khamra.goodale2004-03-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3602 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix dependency generationschnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3535 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add (incomplete) Fortran 90 bindings for the flesh functions.schnetter2004-01-19
| | | | | | | Also, detect Fortran 90 inter-module dependencies automatically. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3524 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow vector groups of scalars.schnetter2003-11-21
| | | | | | | | | | Allow vector groups with more than one declared variable. Much of this patch consists of removing special case code for scalars. Scalars are now almost everywhere treated as rank 0 arrays. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3465 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed routine to create a minimal THORN_LINKLIST. Also checks for crosstradke2003-11-18
| | | | | | | dependencies but doesn't deal with them (just issues an error message). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3458 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Traverse all hashes alphabetically, so that all output files of theschnetter2003-10-07
| | | | | | | | CST stage will be identical. This is necessary at least since perl 5.8.1 to avoid redundant recompilation. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3425 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Another fix for the generation of the THORN_LINKLIST.tradke2003-09-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3401 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Another fix in creating the THORN_LINKLIST.tradke2003-09-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3398 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Sort the thorn link list also by the 'Requires Thorns:' list as taken fromtradke2003-09-05
| | | | | | | configuration.ccl files. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3396 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Parse information in thorns' configuration.ccl files.tradke2003-09-04
| | | | | | | | | So far only the "REQUIRES THORNS: <list of thorns>" attribute is evaluated and checked that (1) all required thorns are in the ThornList to be compiled and (2) activated at runtime. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3393 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improved CreateThornLinkList() so that it greatly reduces the link list fortradke2003-07-22
| | | | | | | a thorn list with cross dependencies. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3344 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a bug when sorting out the order of libs in the thorn linklist.tradke2003-01-28
| | | | | | | This closes PR Compiler/1369 and probably also Cactus/1323. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3115 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed hint message for long thorn namesallen2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2976 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus/983allen2002-04-26
| | | | | | | | | | | | Check for existance of timebins/groups for scheduling <IN> as well as scheduling <AT>. Give a warning for scheduling <IN> a non-existant timebin. Print warnings at the end of CST as well as during CST. This needs more tidying to look prettier. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2756 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reworked treatment of CCTK_DECLARE macros. Now the C file preprocessortradke2002-03-27
| | | | | | | | | | | | | | | | | | | will put everything up to the closing bracket for a routine into a new block. Also, the USE_CCTK macro is now appended directly to the CCTK_DECLARE macro. There is no need anymore to use CCTK_NO_AUTOUSE_MACRO. Also changed the way how parameters and arguments are used within the USE_CCTK macros: now it's done by "(void) (parameter = 0);" which is better than assigning the address of it to some dummy pointer. This fixes problems where one had to parse for a possible return statement at the end of the routine. This fix closes PR Cactus/949. Also did some perl code optimization and added grdoc headers for files generated by the CST. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2676 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check thorn names are valid when running CSTallen2001-09-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2363 17b73243-c579-4c4c-a9d2-2d5706c11dac
* removing some line breaks in print statementsallen2001-09-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2330 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a "help" argument to the CST_error call to start adding suggested ↵allen2001-08-19
| | | | | | | | | causes for the errors. At the moment the help message is always shown, since I've only added a couple so far. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2307 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added more checking for consistency of ancestors. Now CST catches privateallen2001-07-11
| | | | | | | | | | | | | | variables in a thorn with the same names as public variables from it's parents. (I'm sure I did this to fix a bug report but I can't find it now). Expanded some warnings to give more suggestions. Also added a system_database to hold odd things like the configuration and cctk directories. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2286 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a missing space in the link lineallen2001-07-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2285 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Build a sorted list of all thorns' libraries which is minimal if there aretradke2001-07-11
| | | | | | | | | | | | | | | | no cross-dependencies - otherwise it will fall back to the old scheme of putting every lib twice on the linker command line. This should fix problems with unresolved symbols for configurations with thorns which indirectly depend on other thorns (.eg. IOStreamedHDF5 -> IOHDF5Util -> PUGHSlab). Closes PR Cactus 658 and Cactus-722. You need to also update lib/make/make.configuration and then rebuild your configuration in order to use the new liblist. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2283 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check that array sizes in interface.ccl are parametersallen2001-05-12
| | | | | | | | At the moment this is still crude, only check is that the parameter name is in a thorn, I'm not checking the implementation/thorn name git-svn-id: http://svn.cactuscode.org/flesh/trunk@2177 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Initial implementation of Function Aliasing for thorns.allen2001-02-24
| | | | | | | | | | | | | | | | | | This is described on a Spec on the web pages at the moment, and will move to the documentation once it is tested and extended a bit more. If you want to have a look at it in action, checkout the thorns TestFunctions1A, TestFunctions1B and TestFunctions2 which will be in AlphaThorns in a few minutes time. At the moment it is only possible to use Function Aliasing for C functions which use and return Cactus data types. You will need to rebuild your configurations once you update, but apart from that these changes shouldn't affect anyone ... if you see any problems please let us know. Gabrielle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2060 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't stop if the thorn list contains identical thorns from identical packages.allen2000-09-17
| | | | | | | Added better error message for duplicate thorn names git-svn-id: http://svn.cactuscode.org/flesh/trunk@1822 17b73243-c579-4c4c-a9d2-2d5706c11dac
* configuration.ccl stuff from a while back. Parses the .ccl file as pergoodale2000-08-31
| | | | | | | | | | spec, and generates a list of 'thorns' with no source files - i.e. ones which shouldn't get libraries built for them. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1804 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ignore directives in thorn listsallen2000-06-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1678 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing PACKAGE to ARRANGEMENT as spotted by Wernerallen2000-01-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1277 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Report errors in CST at end of scriptallen1999-12-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1193 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Renaming definethorn.h to cctk_DefineThorn.hallen1999-11-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1138 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed some things noticed by perl -w .goodale1999-10-25
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1102 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to use Perl5 stuff...goodale1999-10-24
| | | | | | | | | | | | | local -> my used perl 5 references for passing databases around in the CST. CST is now about a factor of 16 faster ! Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1101 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Creating all files with WriteFile, and changing filenames ofallen1999-10-24
| | | | | | | required packages git-svn-id: http://svn.cactuscode.org/flesh/trunk@1090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New schedule stuff.goodale1999-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! You can now create schedule groups and schedule items (other groups or functions) IN a group. You may then schedule a group AT a particular CCTK entry point, or inside another group. There is a new keyword WHILE in the schedule specification. The argument(s) to this are the full names of integer scalars, and the item which is scheduled WHILE will be executed while this integer, or these integers, are non-zero. Note that currently there is little checking of the type of these scalars, 'though this will be coming soon. BEFORE, AFTER, or WHILE can take a list of arguments of the form (a,b,c) to stop you having to do something like BEFORE a BEFORE b BEFORE c So the full format of a schedule statement is SCHEDULE [GROUP] <name> <AT entrypoint | IN group> [BEFORE|AFTER <item | (item...)>] [WHILE <integer gridscalar>] { [LANG: <language>] [COMM: <group(s)>] [STORAGE: <groups(s)] [TRIGGERS: <groups(s)] } "<description>" Note that even for a group you need to provide { } "<description>" 'though that may be relaxed soon. Also TRIGGERS are now on a group basis, not on a variable basis. So, for example, to test this I had -------------------------------------- SCHEDULE TEST1_InitialData AT INITIAL { LANG: Fortran } "Initialise" SCHEDULE TEST1_InitialData AT EVOL { LANG: Fortran } "Initialise" SCHEDULE TEST1_Evolve IN testit { LANG: Fortran } "Evolution routine" SCHEDULE GROUP testit WHILE test1::foo_int_scalar AT EVOL AFTER TEST1_InitialData { } "Test a group within a group. " --------------------------------------- where the initialisation routine set test1::foo_int_scalar to 4 and the evolution routine decremented it. The group "testit" is redundant here as only one thing is scheduled in it, the WHILE and AFTER could have gone directly onto the scheduling of TEST1_Evolve. Apart from the checking of the while stuff, the perl does a fair amount of checking that groups exist. It doesn't yet check that a group you are scheduling at or in exists, and neither does the C, so please check the screen output of the final schedule tree. Checks for this an for unreachable groups will go in, but perhaps not in the next week. There's also some tidying up which needs to go in, but this stuff passes all the tests that the unmodified code does. I have also tried to make the output of the CST a bit more useful, 'though now it's a wee bit long-winded. Please send me comments if you want more output of various things, or would like the current output, or how the WHILE stuff works, changed. Tom IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! git-svn-id: http://svn.cactuscode.org/flesh/trunk@966 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Took out some commentsallen1999-09-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@921 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Calls to the build headers routinesallen1999-09-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@912 17b73243-c579-4c4c-a9d2-2d5706c11dac