summaryrefslogtreecommitdiff
path: root/lib/sbin/interface_parser.pl
Commit message (Collapse)AuthorAge
* Introduce cctk_ash, retire cctk_lssheschnett2012-07-04
| | | | | | | | | | | | Introduce cctk_ash, describing the process-local array shape that has been allocated. This may be larger than cctk_lsh, the process-local shape that should be used. Retire cctk_lssh and related infrastructure to handle staggered grid functions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4841 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Discard spaces after "LANGUAGE xxx" specification in interface.ccleschnett2012-03-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4795 17b73243-c579-4c4c-a9d2-2d5706c11dac
* simplify code by combining similar (debug) functionsknarf2009-09-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4569 17b73243-c579-4c4c-a9d2-2d5706c11dac
* add function to save interface database to file for further analysis. ↵knarf2009-09-11
| | | | | | Disabled by default (to enable, uncomment "$debug_interface" in lib/sbin/CST) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4568 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set distribution default for scalars correctlyschnetter2008-02-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4466 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check the dimension and distribution type of grid scalars and theschnetter2008-02-29
| | | | | | | distribution type of grid functions git-svn-id: http://svn.cactuscode.org/flesh/trunk@4465 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct small error in commentschnetter2008-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4447 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Pass arrays and hashes by reference rather than by value.tradke2007-02-06
| | | | | | | | | | | | | It turned out that most of the runtime of the parameter parser was spent in flattening list/hash arguments during function calls. Using references conveniently solves this performance bottleneck; for the 'PublicThorns' configuration used in the nightly integration tests (with a list of some 120 thorns), the overall CST runtime went from 100s down to 8s. This applies patch http://www.cactuscode.org/old/pipermail/patches/2007-February/000218.html git-svn-id: http://svn.cactuscode.org/flesh/trunk@4406 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check the language specification in alias function definitions.tradke2006-03-07
| | | | | | | The language must be either 'C' or 'Fortran', allow for case-independence. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4265 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Escape metacharacters when extracting a variable group description.tradke2005-11-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4189 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct error in handling DISTRIB attributeschnetter2005-09-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4141 17b73243-c579-4c4c-a9d2-2d5706c11dac
* If a thorn defines group A containing one variable A the CST prints a level-1tradke2005-08-29
| | | | | | | | warning. Now it also gives an error if that group A contains more than one variable of the same name as its group. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4114 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
* Insert a single space also at the beginning of all string values withtradke2005-06-20
| | | | | | | | | | | "{USES|REQUIRES|PROVIDES} FUNCTION" keys in the interface database. When matching the function list against a specific function name, use that space as a delimiter. This closes PR Cactus/1947: "Name clashes for aliased functions". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4080 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Slightly more informative error message.goodale2004-08-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3841 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix to patch for PR 821. Hopefully these regexes will work better.goodale2004-08-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3839 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Detect if an inherited variable has the same name as a locally declaredgoodale2004-08-17
| | | | | | | | | one in an interface.ccl file. Patch from Yaakoub. Fixes PR 821. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3835 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Clean up comment and indentation.schnetter2004-08-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3821 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding thorn name to error message. (Patch from Yaakoub.)goodale2004-06-21
| | | | | | | Fixes PR 1723. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3782 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed from homegrown chomp to perl 5 chomp - needed to add somegoodale2004-06-06
| | | | | | | | | | extra formatting in the interface_parser to keep things looking nice afterwards. This should solve some problems with carriage returns under windows. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3757 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Yaakoub to grive warning if a variable and the group it is ingoodale2004-05-11
| | | | | | | | | | | have the same name, which could cause problems for IO thorns. Goes some way to solving PR 1328, although it doesn't cover the case where we have a variable named the same as another group in the thorn's scope, which would need to be checked thouroughly at the consistency checking phase. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3715 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement 'REQUIRES FUNCTION' for interface.ccl files.tradke2004-04-23
| | | | | | | | | | Added a CST check that a required function is provided by at least one thorn from the thornlist. Added a runtime check (to CCTKBindings_RegisterThornFunctions()) to verify that all required functions are provided by some active thorn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3673 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Re-instating the consistency check that all thorns providing the samegoodale2004-04-01
| | | | | | | | implementation have the same ancestors. This should never have been changed to just a warning. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3631 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing apostrophes in messages.goodale2004-04-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3630 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow interface.ccl to end with a non-'\n'-terminated comment.rideout2003-12-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3474 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
* Correct $Header$ templateschnetter2003-11-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3464 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce the new Cactus variable type CCTK_INT1.schnetter2003-10-13
| | | | | | | Extend routines to handle the new type. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3431 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
* Give grid scalars the dimension 0 instead of 1.schnetter2003-10-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3424 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Relax the consistency check for identical inheriting. If thorns providing thetradke2003-09-02
| | | | | | | | | same implementation differ in their inherits, a warning will be issued rather than stopping the code with an error message. This now allows thorns PUGH and Carpet to be compiled in the same configuration. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3391 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More careful pattern matching for INCLUDE HEADERallen2003-07-04
| | | | | | | Fixes Cactus/1554 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3245 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support for new(er) aliased function declaration format:rideout2003-05-02
| | | | | | | | | | | | <CCTK_TYPE> FUNCTION <function name> (<CCTK_TYPE> [ARRAY] IN|OUT|INOUT <argument name>) by Ian Hawke, with some minor fixes/enhancements by myself. void functions can now be declared as "SUBROUTINE". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3208 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Amended an error messageallen2003-03-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3182 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Function aliasing code by Ian Hawke, with modifications by Thomasrideout2003-02-26
| | | | | | | | | | | Radke and David Rideout. Now Fortran aliasing is handled properly (for the most part). I tried to leave commented out versions of code I changed. This should be cleaned up. Also now the documentation at the beginning of CreateFunctionBindings.pl is no longer completely correct, so this must be addressed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3153 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix matching for an error message for duplicate names of groupsallen2003-02-09
| | | | | | | Closes Cactus/1396 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3127 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add helpful comment to 'Unknown option $option in grouprideout2003-01-07
| | | | | | | | | $current_group...' error message. Add a few commented lines for debuging. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3081 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve error messages for unknown linesallen2002-12-30
| | | | | | | Fixes Cactus/1352 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3056 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Variable group description is now added to database, e.g. for use inrideout2002-12-10
| | | | | | | | | | | | ThornGuide. Variable group descriptions are now allowed on same line as group declaration when no variable block is present. Partly fixes CactusEinstein/1003, in a sense. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3037 17b73243-c579-4c4c-a9d2-2d5706c11dac
* TAGS tables for groups.goodale2002-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now do TAGS='foo=... bar=...' in a group definition in your interface.ccl files. The intention is that this can be used to assign tensor types and coordinate systems to gorups. This is implemented as a table, the handle of which you can get by calling CCTK_GroupTagsTable or CCTK_GroupTagsTableI and query using the normal table operators. Note that currently the Util_TableCreateFromString function, which is used to generate the table, doesn't support setting of string members. This will be changed soon. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2845 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a missing newline at the end of a message string.tradke2002-03-25
| | | | | | | This closes PR Cactus/946. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2663 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow the length of a vector array can to be an arithmetical combination ofgoodale2001-11-02
| | | | | | | | | parameters. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2445 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2001-10-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2408 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bug fix for parsing the size of vector groups.goodale2001-10-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2403 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Preliminary support for 'vector' Grid Variables -goodale2001-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defined as <type> <group_name>[<size>] ... as per a normal 1 variable group except with an extra argument. This creates a vector of GVS, with an extra index (the last one for a GA or GF) corresponding to the element in the vector. For scalars this creates an array similar to a DISTRIB=CONSTANT GA. <size> may be either an integer or an integer-valued parameter (which must not be steerable). So, fortran sees REAL foo[param] TYPE=GF DIM=3 as CCTK_REAL foo(nx,ny,nz,param) and in C it should be accessed as foo[CCTK_GFINDEX3D(cctkGH,i,j,k)*l] When we have COMPACT groups you will also be able to make the extra index the first one rather than the last one. Please treat this as volatile until it is documented, and let me know if you are using it. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2393 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Expanding some error messagesallen2001-09-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2368 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed typo. This should close PR Cactus-759.tradke2001-09-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2338 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
* Recognize CCTK_COMPLEX8, CCTK_COMPLEX16, and CCTK_COMPLEX32 types in ccl files.tradke2001-06-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2257 17b73243-c579-4c4c-a9d2-2d5706c11dac