1 # ifndef _RHEO_DISTRIBUTED_H
2 # define _RHEO_DISTRIBUTED_H
23 #include "rheolef/compiler_mpi.h"
33 static const bool value =
false;
37 static const bool value =
false;
45 static const bool value =
false;
50 template<
class M1,
class M2>
69 #ifndef _RHEOLEF_HAVE_MPI
73 # ifndef rheo_default_memory_model
74 # define rheo_default_memory_model sequential
79 int rank()
const {
return 0; }
80 int size()
const {
return 1; }
88 struct distributed {};
91 struct is_sequential<distributed> {
92 static const bool value =
false;
95 struct is_distributed<distributed> {
96 static const bool value =
true;
99 struct promote_memory<undefined_memory_model,distributed> {
100 typedef distributed
type;
103 struct promote_memory<distributed,undefined_memory_model> {
104 typedef distributed
type;
107 struct promote_memory<distributed,distributed> {
108 typedef distributed
type;
112 # ifndef rheo_default_memory_model
113 # define rheo_default_memory_model distributed
117 #include "rheolef/environment.h"
field::size_type size_type
This file is part of Rheolef.
std::vector< int >::size_type size_type