Rheolef
7.2
an efficient C++ finite element environment
Loading...
Searching...
No Matches
geo_mpi.cc
Go to the documentation of this file.
1
21
#include "rheolef/config.h"
22
#ifdef _RHEOLEF_HAVE_MPI
23
#include "rheolef/geo.h"
24
25
namespace
rheolef
{
26
27
template
<
class
T>
28
typename
geo_rep<T,distributed>::size_type
29
geo_rep<T,distributed>::dis_ige2ios_dis_ige
(
size_type
dim,
size_type
dis_ige)
const
30
{
31
const
geo_element
& K = base::dis_get_geo_element(dim,dis_ige);
32
return
K.
ios_dis_ie
();
33
}
34
// --------------------------------------------------------------------------
35
// access by geo_element(dim,idx)
36
// --------------------------------------------------------------------------
37
template
<
class
T>
38
distributor
39
geo_rep<T,distributed>::geo_element_ios_ownership
(
size_type
dim)
const
40
{
41
return
_ios_ige2dis_ige[dim].ownership();
42
}
43
template
<
class
T>
44
typename
geo_rep<T,distributed>::size_type
45
geo_rep<T,distributed>::ios_ige2dis_ige
(
size_type
dim,
size_type
ios_ige)
const
46
{
47
return
_ios_ige2dis_ige[dim][ios_ige];
48
}
49
template
<
class
T>
50
typename
geo_rep<T,distributed>::size_type
51
geo_rep<T,distributed>::ige2ios_dis_ige
(
size_type
dim,
size_type
ige)
const
52
{
53
const
geo_element
& K = get_geo_element(dim,ige);
54
return
K.
ios_dis_ie
();
55
}
56
// ----------------------------------------------------------------------------
57
// instanciation in library
58
// ----------------------------------------------------------------------------
59
template
class
geo_rep<Float,distributed>
;
60
61
}
// namespace rheolef
62
#endif
// _RHEOLEF_HAVE_MPI
rheolef::distributor
see the distributor page for the full documentation
Definition
distributor.h:69
rheolef::geo_element
see the geo_element page for the full documentation
Definition
geo_element.h:102
rheolef::geo_element::ios_dis_ie
size_type ios_dis_ie() const
Definition
geo_element.h:164
rheolef::geo_rep< T, distributed >::size_type
base::size_type size_type
Definition
geo.h:934
rheolef::geo_rep
sequential mesh representation
Definition
geo.h:778
rheolef
This file is part of Rheolef.
Definition
compiler_eigen.h:39