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
|
// -*- C++ -*-
// -------------------------------------------------------------------
// MAdLib - Copyright (C) 2008-2009 Universite catholique de Louvain
//
// See the Copyright.txt and License.txt files for license information.
// You should have received a copy of these files along with MAdLib.
// If not, see <http://www.madlib.be/license/>
//
// Please report all bugs and problems to <contrib@madlib.be>
//
// Authors: Koen Hillewaert
// -------------------------------------------------------------------
#ifndef MESHDATABASEPARALLELCHECK_H
#define MESHDATABASEPARALLELCHECK_H
#include "MeshDataBaseComm.h"
#include <iostream>
#include <map>
#include <set>
namespace MAd {
/*! \brief Class for checking orientation of corresponding entities \ingroup parallel */
class MDB_CommCheck : public MDB_DataExchanger {
public:
MDB_CommCheck();
void printStatus(std::ostream&) const;
virtual void* sendData(pEntity,int,int&);
virtual void receiveData(pEntity,int,void*);
private:
int numRecvs;
int numSends;
int numErrors;
std::map<pEntity,std::set<std::pair<int,pEntity> > > communications;
};
}
#endif
|