aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Add missing #include <stdio.h> and #include <stddef.h> statementsschnetter2004-12-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@80 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Tighten error checking when changing variable type. Certain no-op operations ↵hawke2004-10-15
| | | | | | | | | | | are now safe and potential segfaults caught. Correct warning messages. Fixes PRs 1865,1866. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@77 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct some warning statementsyye002004-10-11
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@76 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* committing the patch sent by Ian Hawke to ChangeType.cyye002004-10-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@75 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Runge-Kutta (Fehlberg) 45 with error estimation.hawke2004-09-06
| | | | | | | | | | | | | Fourth order accurate evolution with an additional fifth order step for error estimation. How much sense the error makes is unclear to me, but hey. For the moment the error is stored in an internal MoL array ErrorEstimate; there is one per evolved variable. At a later point this may be moved out to user thorns who can register their own etc. As the implementation uses 6 evaluations of the RHS (necessary) and 6 levels of scratch space (one more than necessary - laziness kicked in) then this is very expensive. This is a partial fix for PR/1840. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@74 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Add the Classic RK3 method (as a generic method, so use Generic_Type).hawke2004-07-01
| | | | | | | | | | | | Agrees with other RK3's to floating point round off (except at boundaries) for linear case. Uses more storage and is slower than standard RK3 so I don't recommend it. This showed up (so I fixed) a bug with the generic methods when used with Carpet. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@72 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Update CCTK_FILEVERSION macros to CactusBase.hawke2004-07-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@71 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Make MoL independent of dimensions for GFs.hawke2004-06-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@70 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* If the new keyword parameter 'verbose' is set to 'register' thenhawke2004-06-21
| | | | | | | report the names of all registered variables. Closes PR 1771. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@69 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Fix memory leak. Hint to self: NEVER use group names when trying tohawke2004-04-21
| | | | | | | extract group information. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@64 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Switch the order of warning messages and arrays accesses so that you get the ↵hawke2004-04-02
| | | | | | WARN(0,...) before the segmentation fault... git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@61 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Reduce warning for not provided aliased function to level 4.hawke2004-04-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@60 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Forgot to remove inclusion of Carpet header files.hawke2004-03-30
| | | | | | | Ensure that storage is not switched on for empty ArrayScratchSpace group. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@58 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Use the aliased function to en/dis able prolongation instead of linking ↵hawke2004-03-29
| | | | | | | | | direct through the header file. Add parameter to say if we want to use this function (by default we do, so nothing changes). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@56 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Include Carpet header fileschnetter2004-03-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@55 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Initialise the RHS with zero before scheduling the physics routines.schnetter2004-03-23
| | | | | | | | This is necessary because MoL switches off boundary prolongation when there is mesh refinement, leaving certain grid points undefined. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@54 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Convert to int before printing with %dschnetter2004-03-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@52 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct a bug in storing the scratch space levels. This will fix RK4.hawke2004-02-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@49 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Nasty bugs in the save and restore variables.hawke2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@47 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Erik's changes to do general dissipation adding.hawke2004-01-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@45 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct the way that the FillAllTimelevels routine works, now thathawke2003-12-09
| | | | | | | | | | QueryGroupStorage changed. Should have done this months ago Of course, it would be better if the initial data thorns set up all timelevels themselves, but hey. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@44 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct all the warning messages in the registration functions.hawke2003-12-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@43 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Check that we don't try to allocate zero size arrays.hawke2003-11-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@42 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Stupid bug in change variables to constrained type.hawke2003-11-11
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@41 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Remove "const" that shouldn't have been there.schnetter2003-10-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@38 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Add missing #include statement.schnetter2003-10-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@37 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Add the ability to NaNcheck the RHS GFs.hawke2003-09-04
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@34 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Formatting changes only.hawke2003-07-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@32 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Protect against buffer overruns...hawke2003-07-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@30 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Add two methods:hawke2003-07-22
| | | | | | | | | | | RK3. The optimized version of the TVD RK3 solver. Requires no scratch space so is about as efficient as ICN, but third order. Generic method from a parameter table. By specifying the number of intermediate steps and the alpha and beta arrays, create your own method at parameter time. Not well (or at all) documented because it doesn't seem to work correctly at the moment. Some tidying of extraneous code as well. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@29 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Switch off prolongation in Carpet during evolution - patch from Erik Schnetter.hawke2003-07-21
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@26 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Formatting changes and extra debugging statements only.hawke2003-07-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@25 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Erik Schnetter's implementation of ICN with averaging, so the intermediate ↵hawke2003-07-18
| | | | | | steps are always at t+dt. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@24 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Optionally don't fill all timelevels after initial data is computed (changes ↵hawke2003-07-17
| | | | | | the default but should have no effect). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@23 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Take the ScratchSpace pointers from VarIndex instead of making assumptions ↵hawke2003-07-17
| | | | | | about memory layout. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@22 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Fix an error in the internal arrays for when changing from constrained/SandR ↵hawke2003-07-17
| | | | | | | | | to evolved. Add a load more debugging statements (ifdef'd). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@21 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct the setting of cctk_time for the generic solvers. Should only affect ↵hawke2003-07-08
| | | | | | Carpet runs. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@20 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correct a major screw up with the setting of t/dt that was causing the ↵hawke2003-06-20
| | | | | | BSSN_MoL testsuite bh_shift_rad to fail. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@18 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Correctly (?!) evolve the array variables when using the generic RK methods.hawke2003-06-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@17 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Patch for the new cctk_time / lev / levoffset etc. variables from Erik ↵hawke2003-06-19
| | | | | | Schnetter. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@16 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Change MoL_ODE_Method parameter to ODE_Method to be consistent with original ↵hawke2003-05-25
| | | | | | MoL. Don't know why I did this in the first place. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@15 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Comment or ifdef out complex variable support as Carpet doesn't like it.hawke2003-05-24
| | | | | | | To use the complex variable stuff right now you need to uncomment the appropriate groups in the interface.ccl and #def MOLDOESCOMPLEX in the appropriate files. It still probably won't work. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@13 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Add support for evolving complex GFs and (real and complex) GAs.hawke2003-05-21
| | | | | | | | | Only works with ICN or RK2 for now - in fact this commit may break the generic RK methods temporarily. Note the documentation isn't quite right - there's no longer a seperate function for each different type... git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@12 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Change the previous_times array to be a malloc (can't use run time constants ↵hawke2003-05-14
| | | | | | as array sizes...). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@11 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* The resetting of t and dt is corrected for the generic methods.hawke2003-04-25
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@7 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Change the commented out debugging statements to ifdef'd out.hawke2003-04-25
| | | | | | | Remove old, buggy commented out stuff. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@6 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* Change the fileversion strings and comments from MoL2->MoL (cosmetic).hawke2003-04-24
| | | | | | | Change the grid scalar used in the schedule.ccl from MoL2->MoL (necessary). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@4 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
* The Method of Lines thorn (version 2 - see below).hawke2003-04-23
MoL provides generic integration methods for multiple thorns simultaneously. By providing a layer between the driver and evolution thorns, this should mean that some technical issues to do with mesh refinement can be ignored. It also allows you to choose different evolution methods (in time, at least). But the primary purpose is to unambiguously evolve models in different thorns at the same time. This is version 2 - the one that will work with mesh refinement. It's a straight copy of HawkeCVS/Public/CactusMoL2/MoL2 and I haven't checked that it will work "as is" with the new name (one of the reasons it goes into Alpha). At the moment the only evolution method guaranteed to work with mesh refinement is ICN, although RK2 should. The generic RK methods will do something that will be subtly wrong... Note that the "old" way of registering variables (through the functions declared in header files) is still there. As soon as function aliasing settles down, this will be removed. Also to be done: Better documentation Tidy up the code (especially the debugging statements) Optimize Add various useful time evolution methods. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@2 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b