summaryrefslogtreecommitdiff
path: root/src/main/Groups.c
Commit message (Collapse)AuthorAge
* 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
* Allow vector groups of size 0.schnetter2003-10-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3426 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Deprecated CCTK_NumTimeLevels and all variants.allen2003-07-16
| | | | | | | | | | | | | | | | Replaced with new names int CCTK_MaxTimeLevels(const char *group); int CCTK_MaxTimeLevelsVN(const char *var); int CCTK_MaxTimeLevelsVI(int var); int CCTK_MaxTimeLevelsGN(const char *group); int CCTK_MaxTimeLevelsGI(int group); This is because we are adding CCTK_ActiveTimeLevels and also the names make more sense. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3281 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_NumTimeLevels and CCTK_NumTimeLevelsIallen2003-06-08
| | | | | | | Fixes Cactus/1309 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3237 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bugfix in setting size of a vector group, found by Ian Hawke.goodale2003-02-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3130 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3029 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added fortran wrapper for CCTK_FirstVarIndex().tradke2002-11-03
| | | | | | | This closes PR Cactus/1292. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3019 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed the definition of the magic 'cctk_one' constant used to build the thorntradke2002-06-21
| | | | | | | | | | | | | | bindings. Added internal routine CCTKi_VarDataPtr() which returns the data pointer for a given variable+timelevel, or NULL if the variable doesn't exist. This routine is regarded internal and should not be used anywhere else but in the thorn bindings. You must also update src/main/Groups.c and lib/sbin/GridFuncStuff.pl now and do a 'make <configuration>-clean; make <configuration>-rebuild;'. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2910 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
* Changing FN_POINTERs to FPOINTERsallen2002-04-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2774 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow implementation name for fully qualified parameter names when setting ↵goodale2002-04-03
| | | | | | | | | array sizes. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2687 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed the old regex stuff in CCTKi_ExtractSize() since Tom's new expressiontradke2001-11-27
| | | | | | | | parser stuff works much better now. This gets rid of gcc warnings about unused local variables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2472 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stuff for utility table routines, implemented by Jonathon Thornburg.goodale2001-11-13
| | | | | | | | | Documentation should follow shortly... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2462 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updated to use new version of expression parser.goodale2001-11-04
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2450 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't stop if a variable type isn't know, but give a level 4 warningallen2001-10-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2437 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Using the expression parser for array sizes again now that the memory buggoodale2001-10-25
| | | | | | | | | has been fixed. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2436 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing variable initialization in vector group setup.tradke2001-10-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2428 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New function to provide the implementation which provided a groupallen2001-10-23
| | | | | | | | | const char *CCTK_GroupImplementationI(int group) Also reduced warning level to fix Cactus/812 in DecomposeName git-svn-id: http://svn.cactuscode.org/flesh/trunk@2427 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use the old regex parameter parsing to extract the sizes of variable dims.tradke2001-10-23
| | | | | | | The new expression parser is buggy for cases like '<param>+<constant>'. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2420 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed the extraction of array size and vector group length from parametersgoodale2001-10-13
| | | | | | | | | | to use expression parser. This allows any combination of parameters and integer constants combined with +,-,/ and *, with parentheses. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2402 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. 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@2392 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include "cctk_GNU.h" which also knows where to include <regex.h> from.tradke2001-09-06
| | | | | | | Thanks Tom. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2343 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include system header file regex.h only if HAVE_REGEX_H is defined.tradke2001-09-06
| | | | | | | Otherwise take the one from "../gnu/". git-svn-id: http://svn.cactuscode.org/flesh/trunk@2342 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Extended parsing of SIZE option for ARRAY variables.tradke2001-09-03
| | | | | | | | | Now this can be a comma-separated list of positive integer constants or parameter names (optionally with an integer constant added/substracted to/from it). git-svn-id: http://svn.cactuscode.org/flesh/trunk@2327 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed parsing of option string in CCTK_TraverseString().tradke2001-07-31
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2297 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed grdoc for CCTK_GroupGhostsizesI().tradke2001-07-02
| | | | | | | This close PR Cactus-731. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2259 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now CCTK_VarTypeName() knows about CCTK_VARIABLE_COMPLEX8, ↵tradke2001-06-27
| | | | | | CCTK_VARIABLE_COMPLEX16, and CCTK_VARIABLE_COMPLEX32 types also. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2256 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now CCTK_VarTypeNumber() knows about CCTK_COMPLEX8, CCTK_COMPLEX16, andtradke2001-06-27
| | | | | | | CCTK_COMPLEX32 types also. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2255 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved level 2 warning to level 6 warning if no group/variable found with ↵allen2001-05-14
| | | | | | | | | given index. Maybe we need to suggest how to choose appropriate levels in the users guide (not that we seem able to decide ourselves) eg use 6 and over for more info like statements such as these. G. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2183 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying warning messagesallen2001-05-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2168 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTKi_CreateGroup returns an error code for GFs from mixed dims.allen2001-05-10
| | | | | | | | I'm actually trapping it in the CST generated code, which maybe isn't the best place. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2162 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for invalid group index in CCTK_GroupTypeI().tradke2001-04-21
| | | | | | | Fixed nasty warning about discarding const qualifier from pointer target type. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2132 17b73243-c579-4c4c-a9d2-2d5706c11dac
* For error/warning messages, put the variable/group name in quotes.tradke2001-04-20
| | | | | | | | | In CCTK_TraverseString(): check for special token 'all' before trying the get the index of a group or variable of that name. This closes PR CactusBase-621. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2129 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug when printing warning message in CCTKi_ExtractSize().tradke2001-04-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2128 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for array size parameters given by their fullname in CCTKi_ExtractSize().tradke2001-04-18
| | | | | | | | | | | | | | | | Also check if these parameters are of type INTEGER. This close PR Cactus-608. Restored the original warning level 2 for non-existing groups in CCTK_GroupIndex(). This routine is now bypassed by CCTKi_SetupGroup() so that no such warnings appear anymore at startup. Also smoothed the code in this file a bit, fixed most compiler warnings, deleted depricated routine CCTK_OldGroupData(), and added/completed grdoc (at least return type descriptions). Uffz. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2119 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus/588allen2001-04-14
| | | | | | | | Changed level 2 warning in CCTK_GroupIndex to a level 9 warning to remove warnings at startup. Thorns should be checking the return value of CCTK_GroupIndex if they want a high level warning git-svn-id: http://svn.cactuscode.org/flesh/trunk@2112 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding CCTK_BYTEallen2001-02-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2068 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed gcc warnings. Untabified. Fixed PR 365.tradke2001-02-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2023 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Handle CCTK_VARIABLE_COMPLEX{8}{16}{32} types in CCTK_VarTypeSize().tradke2000-11-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1905 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Macro name changesallen2000-09-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1841 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_TraverseString() which takes a string and traverses it fortradke2000-09-21
| | | | | | | group and/or variable names, calling a callback routine with the index. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1832 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing unused variablesallen2000-07-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1736 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying, and using CCTK_VWarnallen2000-07-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1728 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check that ExtractStrings extracts parametersallen2000-06-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1683 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing malloc statement. This wasn't a problem as it allocated moregoodale2000-05-19
| | | | | | | | | | memory than it needed, but it was still wrong. Thanks for pointing it out Erik. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1673 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New macros for Fortran callsallen2000-05-10
| | | | | | | CCTK_Warn -> CCTK_VWarn where appropriate git-svn-id: http://svn.cactuscode.org/flesh/trunk@1639 17b73243-c579-4c4c-a9d2-2d5706c11dac
* adding function: int CCTK_GroupDimFromVarI(int vi)lanfer2000-05-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1624 17b73243-c579-4c4c-a9d2-2d5706c11dac
* moving CCTK_StaggerVars into Groups.c, where it can access the static int ↵lanfer2000-04-19
| | | | | | staggered git-svn-id: http://svn.cactuscode.org/flesh/trunk@1604 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Compiler warningsallen2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1603 17b73243-c579-4c4c-a9d2-2d5706c11dac