Rheolef  7.1
an efficient C++ finite element environment
geo_mpi.cc
Go to the documentation of this file.
1 #include "rheolef/config.h"
22 #ifdef _RHEOLEF_HAVE_MPI
23 #include "rheolef/geo.h"
24 
25 namespace rheolef {
26 
27 template <class T>
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>
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>
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
field::size_type size_type
Definition: branch.cc:425
This file is part of Rheolef.