diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-11-18 17:41:45 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-11-22 09:59:16 -0500 |
commit | 338b03b9e9254785aad9e506c66efdd6867cc188 (patch) | |
tree | 35e9758c61e8e56486af86529b06499d7b3d89e0 /Carpet/CarpetLib/src/th.cc | |
parent | 22f99d40d514e1b223b034cb9dfb928984451632 (diff) |
CarpetLib: Make th::time_interpolation_during_regridding public
Diffstat (limited to 'Carpet/CarpetLib/src/th.cc')
-rw-r--r-- | Carpet/CarpetLib/src/th.cc | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/th.cc b/Carpet/CarpetLib/src/th.cc index e355221b9..9817e77bb 100644 --- a/Carpet/CarpetLib/src/th.cc +++ b/Carpet/CarpetLib/src/th.cc @@ -19,10 +19,24 @@ list<th*> th::allth; // Constructors +th::th (gh& h_, + bool const time_interpolation_during_regridding_) + : h(h_), + time_interpolation_during_regridding + (time_interpolation_during_regridding_), + timelevels(0) +{ + reffacts.resize(1, 1); + allthi = allth.insert(allth.end(), this); + gh_handle = h.add(this); +} + th::th (gh& h_, int const timelevels_, vector<int> const& reffacts_, bool const time_interpolation_during_regridding_) - : h(h_), timelevels(timelevels_), reffacts(reffacts_), - time_interpolation_during_regridding (time_interpolation_during_regridding_) + : h(h_), + time_interpolation_during_regridding + (time_interpolation_during_regridding_), + timelevels(timelevels_), reffacts(reffacts_) { assert (reffacts.size() >= 1); assert (reffacts.front() == 1); |