/usr/include/dune/istl/paamg/pinfo.hh is in libdune-istl-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | // $Id: pinfo.hh 1762 2013-01-19 11:21:36Z mblatt $
#ifndef DUNE_AMG_PINFO_HH
#define DUNE_AMG_PINFO_HH
#include<dune/common/collectivecommunication.hh>
#include<dune/common/enumset.hh>
#if HAVE_MPI
#include<dune/common/mpicollectivecommunication.hh>
#include<dune/common/mpitraits.hh>
#include<dune/common/parallel/remoteindices.hh>
#include<dune/common/parallel/interface.hh>
#include<dune/common/parallel/communicator.hh>
#endif
#include<dune/istl/solvercategory.hh>
namespace Dune
{
namespace Amg
{
class SequentialInformation
{
public:
typedef CollectiveCommunication<void*> MPICommunicator;
typedef EmptySet<int> CopyFlags;
typedef AllSet<int> OwnerSet;
enum{
category = SolverCategory::sequential
};
const SolverCategory::Category getSolverCategory () const {
return SolverCategory::sequential;
}
MPICommunicator communicator() const
{
return comm_;
}
int procs() const
{
return 1;
}
template<typename T>
T globalSum(const T& t) const
{
return t;
}
typedef int GlobalLookupIndexSet;
void buildGlobalLookup(std::size_t){}
void freeGlobalLookup(){}
const GlobalLookupIndexSet& globalLookup() const
{
return gli;
}
template<class V>
void copyOwnerToAll(V& v, V& v1) const
{}
template<class V>
void project(V& v) const
{}
template<class T>
SequentialInformation(const CollectiveCommunication<T>&)
{}
SequentialInformation()
{}
SequentialInformation(const SequentialInformation&)
{}
private:
MPICommunicator comm_;
GlobalLookupIndexSet gli;
};
}// namespace Amg
} //namespace Dune
#endif
|