Go to the documentation of this file.
34 #ifndef MESH_PARTITION_HH_
35 #define MESH_PARTITION_HH_
123 inline unsigned int begin(
int proc)
const {
return (
starts[proc]);}
126 inline unsigned int end(
int proc)
const {
return (
starts[proc+1]);}
127 inline unsigned int end()
const {
return (
end(
myp()) );}
135 inline bool is_on_proc(
unsigned int idx,
unsigned int proc)
const {
return (
begin(proc)<=(idx) && (idx)<
end(proc) );}
137 unsigned int get_proc(
unsigned int idx)
const;
145 void view(std::ostream &stream)
const;
161 { distr.
view(stream);
return stream; }
165 #endif // MESH_PARTITION_HH_