Select Git revision
test_PolynomialBasis.cpp
GmshReader.cpp 68.66 KiB
#include <GmshReader.hpp>
#include <PastisMacros.hpp>
#include <iostream>
#include <fstream>
#include <set>
#include <rang.hpp>
#include <CellType.hpp>
#include <Connectivity.hpp>
#include <Mesh.hpp>
#include <MeshData.hpp>
#include <RefFaceList.hpp>
#include <Messenger.hpp>
#include <Partitioner.hpp>
#include <ArrayUtils.hpp>
#include <unordered_map>
#include <map>
#include <regex>
#include <iomanip>
class ErrorHandler
{
public:
enum Type {
asked, /**< execution request by the user*/
compilation, /**< syntax error in a language */
normal, /**< normal error due to a bad use of ff3d */
unexpected /**< Unexpected execution error */
};
private:
const std::string __filename; /**< The source file name where the error occured */
const size_t __lineNumber; /**< The line number where exception was raised */
const std::string __errorMessage; /**< The reporting message */
const Type __type; /**< the type of the error */
public:
/**
* Prints the error message
*
*/
virtual void writeErrorMessage() const;
/**
* The copy constructor
*
* @param e an handled error
*/
ErrorHandler(const ErrorHandler& e)
: __filename(e.__filename),
__lineNumber(e.__lineNumber),
__errorMessage(e.__errorMessage),
__type(e.__type)
{
;
}
/**
* Constructor
*
* @param filename the source file name
* @param lineNumber the source line
* @param errorMessage the reported message
* @param type the type of the error
*/