~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to skit/plib2/scatter_message.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-03-23 11:14:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110323111426-cjvhey7lxt6077ty
Tags: 5.93-1
* New upstream release (minor changes):
  - some extra warning message deleted in heap_allocator
  - graphic output with mayavi2 fixed
  - add doc refman in .info and .pdf format

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
/// 
22
22
/// =========================================================================
23
23
//
24
 
// create parallel to sequential scatter context
 
24
// create distributed to sequential scatter context
25
25
// inspirated from petsc-2.0/vpscat.c: VecScatterCreate_PtoS(...)
26
26
//
27
27
#include "rheolef/compiler.h"
73
73
        values.resize  (n_data);
74
74
        indices.resize (n_data);
75
75
        starts.resize  (nproc+1);
76
 
#ifdef TO_CLEAN
77
 
        requests.resize (nproc);
78
 
#endif // TO_CLEAN
79
76
        procs.resize   (nproc);
80
77
  }
81
78
// accessors:
86
83
  size_type n_local() const { return local_slots.size(); }
87
84
  size_type n_local_nonmatching() const { return local_slots_nonmatching.size(); }
88
85
};
89
 
class scatter {
90
 
public:
91
 
    typedef enum { insert, add, max} operation_type;
92
 
};
93
86
 
94
87
} // namespace rheolef
95
88
#endif // _RHEOLEF_HAVE_MPI