diff options
author | schnetter <> | 2002-01-11 16:19:00 +0000 |
---|---|---|
committer | schnetter <> | 2002-01-11 16:19:00 +0000 |
commit | f34dfb0a25cb9f18b87d3a89c45cbc099bcc7518 (patch) | |
tree | a4c53fa6d3bbe2a886ddd05f5f9aae96db146a4a /Carpet/Carpet/src/carpet_public.hh | |
parent | b7eca3ba6f109f19209d9a37cbb1330d2ba51217 (diff) |
Restructured regridding. Instead of registering the new grid
Restructured regridding. Instead of registering the new grid
structure every time you want to regrid, you register a routine that
is called every time it is possible to regrid. This is much cleaner.
darcs-hash:20020111161945-07bb3-a03d269b8a81c5cc3e7196679535c3a4c21b3a78.gz
Diffstat (limited to 'Carpet/Carpet/src/carpet_public.hh')
-rw-r--r-- | Carpet/Carpet/src/carpet_public.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/carpet_public.hh b/Carpet/Carpet/src/carpet_public.hh index 3257002f1..b2bf7e8bb 100644 --- a/Carpet/Carpet/src/carpet_public.hh +++ b/Carpet/Carpet/src/carpet_public.hh @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.hh,v 1.15 2002/01/09 21:15:11 schnetter Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.hh,v 1.16 2002/01/11 17:19:46 schnetter Exp $ // It is assumed that the number of components of all arrays is equal // to the number of components of the grid functions, and that their @@ -137,8 +137,9 @@ namespace Carpet { // Functions for recomposing the grid hierarchy - void RegisterRecomposeRegions (const gh<dim>::rexts& bbsss, - const gh<dim>::rprocs& pss); + void RegisterRegridRoutine (int (*routine)(const cGH * cckgGH, + gh<dim>::rexts& bbsss, + gh<dim>::rprocs& pss)); void SplitRegions (const cGH* cgh, vector<bbox<int,dim> >& bbs); |