geo_mpi.cc
Go to the documentation of this file.
#include "rheolef/config.h"
#ifdef _RHEOLEF_HAVE_MPI
#include "rheolef/geo.h"
namespace rheolef {
template <class T>
typename geo_rep<T,distributed>::size_type
geo_rep<T,distributed>::dis_ige2ios_dis_ige (size_type dim, size_type dis_ige) const
{
const geo_element& K = base::dis_get_geo_element(dim,dis_ige);
return K.ios_dis_ie();
}
// --------------------------------------------------------------------------
// access by geo_element(dim,idx)
// --------------------------------------------------------------------------
template <class T>
distributor
geo_rep<T,distributed>::geo_element_ios_ownership (size_type dim) const
{
return _ios_ige2dis_ige[dim].ownership();
}
template <class T>
typename geo_rep<T,distributed>::size_type
geo_rep<T,distributed>::ios_ige2dis_ige (size_type dim, size_type ios_ige) const
{
return _ios_ige2dis_ige[dim][ios_ige];
}
template <class T>
typename geo_rep<T,distributed>::size_type
geo_rep<T,distributed>::ige2ios_dis_ige (size_type dim, size_type ige) const
{
const geo_element& K = get_geo_element(dim,ige);
return K.ios_dis_ie();
}
// ----------------------------------------------------------------------------
// instanciation in library
// ----------------------------------------------------------------------------
template class geo_rep<Float,distributed>;
} // namespace rheolef
#endif // _RHEOLEF_HAVE_MPI
rheolef::distributor
see the distributor page for the full documentation
Definition: distributor.h:62
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
mkgeo_ball.dim
int dim
Definition: mkgeo_ball.sh:307
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37