diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-02-25 11:01:40 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:06 +0100 |
commit | 487280c1b638d05f4bbc2bc41c81d1fdb424cd4d (patch) | |
tree | d4ea7557f7cd42f74ce6f7a92b906e6401c69c97 /Carpet/CarpetLib/src/gf.cc | |
parent | ae44c5e6d86a65cce382e313e2a10b214e9645da (diff) |
CarpetLib: Change API to obtain pointer to grid function data
Change the API to obtain a pointer to grid function data:
- Use a function "typed_data_pointer" instead of overloading the ()
operator (because this looks nicer)
- Don't use a virtual function (because this isn't needed)
- Update all uses
Diffstat (limited to 'Carpet/CarpetLib/src/gf.cc')
-rw-r--r-- | Carpet/CarpetLib/src/gf.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/gf.cc b/Carpet/CarpetLib/src/gf.cc index c9b003efc..8a27f9eef 100644 --- a/Carpet/CarpetLib/src/gf.cc +++ b/Carpet/CarpetLib/src/gf.cc @@ -16,7 +16,7 @@ gf<T>::gf (const int varindex_, const operator_type transport_operator_, th& t_, dh& d_, const int prolongation_order_time_, const int vectorlength_, const int vectorindex_, - gf* const vectorleader_) + ggf* const vectorleader_) : ggf(varindex_, transport_operator_, t_, d_, prolongation_order_time_, vectorlength_, vectorindex_, vectorleader_) @@ -39,6 +39,7 @@ gf<T>::~gf () +#if 0 // Access to the data template<typename T> const data<T>* gf<T>::operator() (int tl, int rl, int lc, int ml) const @@ -65,6 +66,7 @@ data<T>* gf<T>::operator() (int tl, int rl, int lc, int ml) assert (tl>=0 and tl<timelevels(ml, rl)); return (data<T>*)storage.AT(ml).AT(rl).AT(lc).AT(tl); } +#endif |