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

« back to all changes in this revision

Viewing changes to skit/plib2/distributor.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
 
# include "rheolef/parallel.h"
25
 
# include "rheolef/par_macros.h"
 
24
# include "rheolef/distributed.h"
 
25
# include "rheolef/dis_macros.h"
26
26
# include "rheolef/Vector.h"
27
27
 
28
28
namespace rheolef {
57
57
// allocators/deallocators:
58
58
 
59
59
        distributor(
60
 
                size_type par_size = 0,
 
60
                size_type dis_size = 0,
61
61
                const communicator_type& c = communicator_type(),
62
62
                size_type loc_size = decide);
63
63
 
65
65
        ~distributor();
66
66
 
67
67
        void resize(
68
 
                size_type par_size = 0,
 
68
                size_type dis_size = 0,
69
69
                const communicator_type& c = communicator_type(),
70
70
                size_type loc_size = decide);
71
71
 
74
74
        const communicator_type& comm() const;
75
75
 
76
76
        /// global and local sizes
77
 
        size_type par_size () const;
 
77
        size_type dis_size () const;
78
78
 
79
79
        /// current process id
80
80
        size_type process () const;
172
172
}
173
173
inline
174
174
distributor::size_type
175
 
distributor::par_size() const 
 
175
distributor::dis_size() const 
176
176
{
177
177
        return at(n_process());
178
178
}