Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/meshgen2d/src/include/MGError.h
3203 views
1
#ifndef MGERROR_H
2
#define MGERROR_H
3
4
#include <iostream>
5
#include <stdlib.h>
6
7
template<class T>
8
inline void blm_error(const char* msg, const T &opt)
9
{
10
std::cerr << "*** ERROR: " << msg << ' ' << opt << std::endl;
11
exit(1);
12
}
13
14
inline void blm_error(const char* msg)
15
{
16
std::cerr << "*** ERROR: " << msg << std::endl;
17
exit(1);
18
}
19
20
#endif
21
22