aboutsummaryrefslogtreecommitdiff
path: root/src/macro
Commit message (Collapse)AuthorAge
* Undefine the guts instead of the declare. This bug has been there since thediener2010-11-04
| | | | | | | | | | | | | | beginning and showed up when using ADM with the leapfrog scheme using a predictor-corrector step at the first iteration. The source code to calculate the second derivative of the matric with respect to x and y was not included in the pre-processed source code for the corrector step, resulting in the value calculated for the last point in the predictor step was used for all grid points. This lead to wrong results that depended on the number of processors used, since different values where used on different processors. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@107 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Correct some compile problems with the C version of the macros.schnetter2007-09-11
| | | | | | | | | Obviously nobody used this code before. Now at least it compiles. Patch contributed by Frank Loeffler. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@97 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Correct syntax error in C versionschnetter2007-07-04
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@96 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Correct wrong macro declaration.schnetter2007-03-14
| | | | | | | | | This error should have had no effect on correctness; I believe that there could have been at most problems with duplicate macro definitions, about which the compiler would have complained. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@95 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Introduce a new schedule group ADMBase_InitialGauge which is run justschnetter2005-09-26
| | | | | | | | | | | | | | after ADMBase_InitialData. This makes it possible to set up all ADM data in these two groups, and then e.g. convert to the BSSN variables after these groups still in the bin "initial". Various other thorns, such as dissipation or multipatch, can now apply transformations to the initial data in the bin "postinitial". This simplifies the interaction between various thorns. Change various thorns to use these two groups. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@91 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Add missing file that undeclares the spacing macros.schnetter2004-12-01
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@89 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* in #ifdef CCODE section:jthorn2004-11-25
| | | | | | | | | | | | | | | | | change < dx=CCTK_DELTA_SPACE(1); < dy=CCTK_DELTA_SPACE(2); < dz=CCTK_DELTA_SPACE(3); to > dx=CCTK_DELTA_SPACE(0); > dy=CCTK_DELTA_SPACE(1); > dz=CCTK_DELTA_SPACE(2); since src/include/cctk.h defines #define CCTK_DELTA_SPACE(x) (cctk_delta_space[x]/cctk_levfac[x]) and C indices are 0-origin. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@88 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Provide C versions of these files as well so that they can be includedschnetter2004-11-23
| | | | | | | from C. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@87 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* [[code is from Frank Loeffler; I'm just the person committing]]jthorn2004-11-18
| | | | | | | | change two places where C code (presumably copied from Fortran) said TRK_TRK**2 to say TRK_TRK*TRK_TRK git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@76 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Make certain the matter include files actually exist (USES INCLUDE...)hawke2004-06-25
| | | | | | | | Make certain the temporary matter variables are declared by including the appropriate header file in STRESSENERGY_declare.h git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@73 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Untabified. Maybe this will help with the problem with the cpp in oldergoodale2004-03-27
| | | | | | | versions of gcc. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@67 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Replace "double" declarations by "CCTK_REAL" declarations.schnetter2004-01-02
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@66 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Some optimizations: precalculate some spacing terms for 4th order spatial ↵tradke2003-09-29
| | | | | | differencing. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@65 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Some optimizations: substituted divs by mults.tradke2003-09-29
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@64 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* A piece of Fortran code snuck into the C code section. Spotted by Michael ↵hawke2003-08-26
| | | | | | Koppitz and Florian Beyer. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@63 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Add the local_spatial_order grid scalar so that the choice of differencing ↵hawke2003-07-09
| | | | | | | | | | | order can be done pointwise. This allows a simple switch to second order near the boundaries of the grid so that the standard boundary conditions can be used. In order for a user thorn to make use of this you have to be a friend of ADMCoupling and inherit ADMMacros. Then you alter local_spatial_order within the loop. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@59 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Add in missing set of the abs for the normalized constraint.hawke2003-06-30
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@57 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Fixed indexing error.pollney2003-06-30
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@56 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* cctk_delta_* -> CCTK_DELTA_* for mesh refinement.hawke2003-06-27
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@55 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Update of macros for 4th order differencing.pollney2003-06-26
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@53 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* changes in HAMADM macro needed for calculation of normalized hamiltoniandorband2003-03-06
| | | | | | | constraint in ADMConstraints git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@51 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* eliminated upwinding here! Derivatives of the shift SHOULD NOT be upwinded.miguel2002-10-09
| | | | | | | | Upwinding happens in derivatives of other fields that are hit by a shift in front. This upwindind was wrong and was introducing large errors. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@49 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* added missing declarations of "advection" variables.miguel2002-10-09
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@48 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Replace cctk_delta_space with dxallen2002-10-07
| | | | | | | Fixes Cactus/1259 git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@47 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Modified logic for choice of upwind scheme, so that it now usespollney2002-08-08
| | | | | | | | | | admmacros_advectionx,y,z, to be consistent with other macros in this thorn. (Previously an 'advection' parameter was tested, as well as a local check for enough grid points in the required direction.) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@46 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Fixes for macros from Belaallen2002-05-22
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@42 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Typoallen2002-05-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@41 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Declare needed variables and fixed a typoallen2002-05-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@40 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Look at admmacros_advection? variables for which way to difference beta.allen2002-05-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@39 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Change the Fortran continuation lines to C style macros. This allows them to ↵hawke2002-05-17
| | | | | | be used in free format Fortran code. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@38 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* To use this macro you need to set the following variables (which are already ↵allen2002-05-17
| | | | | | | | | | | | | | | | | | | defined in the declare part) admmacros_advectionx admmacros_advectiony admmacros_advectionz to have the values 0 centered differencing -1,1 first order upwind for the two different directions -2,2 second order upwind for the two different directions git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@37 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* All comments in macros should be C styleallen2002-05-17
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@36 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Removing unnecessary explicit paths from #include lines, sincegoodale2002-04-26
| | | | | | | | | | | | | | #include "..." always looks in the current directory of the file containing the #include first. This should make it easier to move the macros around. Tom git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@34 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Cnverted to new syntax for conformal_state, and also removedgoodale2002-04-26
| | | | | | | | | dependency on having a SHIFT_ACTIVE/SHIFT_INACTIVE parameter. Tom git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@33 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Adding timelevels to metric, curvature and lapse variables.hawke2002-04-20
| | | | | | | | | Only 1 timelevel allocated in the schedule.ccl. Add INCLUDE statement for Einstein.h. Add declaration of first derivatives to macro. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@30 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Fixed bug in C code part (doesn't affect any fortran thorns using macros)allen2001-09-20
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@26 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* C code needs ; at end of linesallen2000-11-20
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@23 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Adding possibility of using upwind and second order upwind for calculationmiguel2000-08-02
| | | | | | | of advection terms in the Lie derivatives. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@22 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* ndex: DXDB_declare.hmiguel2000-06-08
| | | | | | | | a Typos. They shouldn't affect anything, juts names of things. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@19 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Fixing up macros for Callen1999-10-17
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@13 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* make it ready for matter-couplingthomasd1999-10-05
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@10 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Implementing new naming convention for variables on the cGH. See cGH.h forallen1999-06-25
| | | | | | | details. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@7 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Double -> CCTK_REALallen1999-06-15
| | | | | | | | | | | | | REAL -> CCTK_REAL POINTER -> CCTK_POINTER VARIABLE_REAL -> CCTK_VARIABLE_REAL (etc) GH->iteration is now an int (not an unsigned long int) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@6 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Changed h?? to k?? everywhere (apart from parameter files)allen1999-04-22
| | | | | | | | Changed CCTK_Warn to the new macro CCTK_WARN which takes the same arguments as CCTK_Warn used to take git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@5 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* Protecting a psiallen1999-03-20
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@4 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* changes shift_active to shift_stateallen1999-03-10
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@3 b1d164ef-f17a-46e7-89d4-021c7118ef4e
* added the Einstien macros.evans1999-03-09
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@2 b1d164ef-f17a-46e7-89d4-021c7118ef4e