diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-04 23:04:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-04 23:04:00 +0000 |
commit | 849721b9597d95c2d4de6bf047eb5636b587e662 (patch) | |
tree | d95e9d91b58bafbc2fdaddf92fc679dd9ee6e0bb /Carpet/CarpetLib/src/th.cc | |
parent | 8fed641c8f428cc02f1e5d4018a7cc7b714f431e (diff) |
CarpetLib: Split recompose functions into regrid and recompose
Split recompose functions into two stages, regrid and recompose. The
first stage, regrid, changes the grid structure in the gh and dh
classes. The second stage, recompose, changes the values of the
actual grid functions, i.e., changes the gf<T> and data<T> objects.
The second stage has to be called individually for every refinement
level.
This is necessary since the boundary conditions need to be applied
after recomposing one refinement level, before the next fine
refinement level can be recomposed.
darcs-hash:20060904230433-dae7b-3ba1982460f57b34da11a6fbb6b4b524dc5b348f.gz
Diffstat (limited to 'Carpet/CarpetLib/src/th.cc')
-rw-r--r-- | Carpet/CarpetLib/src/th.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/th.cc b/Carpet/CarpetLib/src/th.cc index 0751a03e1..bf69d1b5c 100644 --- a/Carpet/CarpetLib/src/th.cc +++ b/Carpet/CarpetLib/src/th.cc @@ -34,7 +34,7 @@ th::~th () } // Modifiers -void th::recompose () +void th::regrid () { const int old_mglevels = times.size(); times.resize(h.mglevels()); |