aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/data.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-04-19 01:43:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-04-19 01:43:00 +0000
commitc91bbdde5d0306bfb28c4705f76552dc93b2e786 (patch)
treeb3ad88d1dd74e7960efbe415691138f964712800 /Carpet/CarpetLib/src/data.hh
parent242efeb8f500afb5fca33220d40e9930dfb55929 (diff)
CarpetLib: Various changes to class data
Remove outdated communication mechanisms from data<T> and gdata classes. Redesign communication mechanism in data<T> and gdata classes. darcs-hash:20070419014301-dae7b-ece41543dcb1e23ab81f103b04a75880ac68807f.gz
Diffstat (limited to 'Carpet/CarpetLib/src/data.hh')
-rw-r--r--Carpet/CarpetLib/src/data.hh102
1 files changed, 51 insertions, 51 deletions
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh
index 529378149..1cb7cdb25 100644
--- a/Carpet/CarpetLib/src/data.hh
+++ b/Carpet/CarpetLib/src/data.hh
@@ -69,18 +69,7 @@ public:
virtual void allocate (const ibbox& extent, const int proc,
void* const memptr = NULL);
virtual void free ();
-
- // Processor management
-private:
- virtual void change_processor_recv (comm_state& state,
- const int newproc,
- void* const memptr = NULL);
- virtual void change_processor_send (comm_state& state,
- const int newproc,
- void* const memptr = NULL);
- virtual void change_processor_wait (comm_state& state,
- const int newproc,
- void* const memptr = NULL);
+
public:
// Data accessors
@@ -108,51 +97,62 @@ private:
}
// Data manipulators
+
private:
- virtual comm_state::gcommbuf *
- make_typed_commbuf (const ibbox & box)
- const;
-public:
- void copy_from_innerloop (const gdata* gsrc,
- const ibbox& box);
- void interpolate_from_innerloop (const vector<const gdata*>& gsrcs,
- const vector<CCTK_REAL>& times,
- const ibbox& box, const CCTK_REAL time,
- const int order_space,
- const int order_time);
+ void
+ copy_from_innerloop (gdata const * gsrc,
+ ibbox const & box);
-private:
- void interpolate_time (vector <data const *> const & srcs,
- vector <CCTK_REAL> const & times,
- ibbox const & box,
- CCTK_REAL const time,
- int const order_space,
- int const order_time);
- void interpolate_p_r (data const * const src,
- ibbox const & box,
- int const order_space);
- void interpolate_p_vc_cc (data const * const src,
- ibbox const & box,
- int const order_space);
- void interpolate_prolongate (data const * src,
- ibbox const & box,
- int order_space);
- void interpolate_restrict (data const * src,
- ibbox const & box,
- int order_space);
- void time_interpolate (vector <data *> const & srcs,
- ibbox const & box,
- vector <CCTK_REAL> const & times,
- CCTK_REAL time,
- int order_time);
+ void
+ transfer_from_innerloop (vector <gdata const *> const & gsrcs,
+ vector <CCTK_REAL> const & times,
+ ibbox const & box,
+ CCTK_REAL time,
+ int order_space,
+ int order_time);
+
+ void
+ transfer_time (vector <gdata const *> const & gsrcs,
+ vector <CCTK_REAL> const & times,
+ ibbox const & box,
+ CCTK_REAL time,
+ int order_space,
+ int order_time);
+
+ void
+ transfer_p_r (data const * const src,
+ ibbox const & box,
+ int order_space);
+
+ void
+ transfer_p_vc_cc (data const * const src,
+ ibbox const & box,
+ int order_space);
+
+ void
+ transfer_prolongate (data const * const src,
+ ibbox const & box,
+ int order_space);
+
+ void
+ transfer_restrict (data const * const src,
+ ibbox const & box,
+ int order_space);
+
+ void
+ time_interpolate (vector <data *> const & srcs,
+ ibbox const & box,
+ vector <CCTK_REAL> const & times,
+ CCTK_REAL time,
+ int order_time);
public:
-
+
// Output
- ostream& output (ostream& os) const;
-
- friend ostream & operator << <T> ( ostream & os, const data<T> & d );
+ ostream & output (ostream& os) const;
+
+ friend ostream & operator<< <T> (ostream & os, data<T> const & d);
};
#endif // DATA_HH