#include <iostream>
#include <sstream>
#include <cmath>
#include <algorithm>
Go to the source code of this file.
|
|
#define | unusedParameter(x) ((void)x) |
| |
|
#define | MSGSTREAM std::ostringstream msg; msg.precision(7); msg.width(9); |
| |
|
#define | debMsg(mStr, level) if (_chklevel(level)) { MSGSTREAM; msg << mStr; std::cout << msg.str() << std::endl; } |
| |
|
#define | DEBUG_ONLY(a) |
| |
|
#define | throwError(msg) { std::ostringstream __s; __s << msg << std::endl << "Error raised in " << __FILE__ << ":" << __LINE__; throw Manta::Error(__s.str()); } |
| |
|
#define | errMsg(msg) throwError(msg); |
| |
|
#define | assertMsg(cond, msg) if(!(cond)) throwError(msg) |
| |
|
#define | assertDeb(cond, msg) DEBUG_ONLY( assertMsg(cond,msg) ) |
| |
|
#define | _GENERAL_H |
| |
|
#define | unusedParameter(x) ((void)x) |
| |
|
#define | MSGSTREAM std::ostringstream msg; msg.precision(7); msg.width(9); |
| |
|
#define | debMsg(mStr, level) if (_chklevel(level)) { MSGSTREAM; msg << mStr; std::cout << msg.str() << std::endl; } |
| |
|
#define | DEBUG_ONLY(a) |
| |
|
#define | throwError(msg) { std::ostringstream __s; __s << msg << std::endl << "Error raised in " << __FILE__ << ":" << __LINE__; throw Manta::Error(__s.str()); } |
| |
|
#define | errMsg(msg) throwError(msg); |
| |
|
#define | assertMsg(cond, msg) if(!(cond)) throwError(msg) |
| |
|
#define | assertDeb(cond, msg) DEBUG_ONLY( assertMsg(cond,msg) ) |
| |
|
|
typedef long long | Manta::IndexInt |
| |
|
|
void | Manta::updateQtGui (bool full, int frame, float time, const std::string &curPlugin) |
| |
|
bool | Manta::_chklevel (int level=0) |
| |
|
ostream & | Manta::operator<< (ostream &os, const MuTime &t) |
| |
| std::string | Manta::buildInfoString () |
| | print info about this mantaflow build, used eg by printBuildInfo in fluidsolver.cpp More...
|
| |
|
template<class T > |
| T | Manta::square (T a) |
| |
|
template<class T > |
| T | Manta::cubed (T a) |
| |
|
template<class T > |
| T | Manta::clamp (const T &val, const T &vmin, const T &vmax) |
| |
|
template<class T > |
| T | Manta::nmod (const T &a, const T &b) |
| |
|
template<> |
| int | Manta::nmod (const int &a, const int &b) |
| |
|
template<> |
| float | Manta::nmod (const float &a, const float &b) |
| |
|
template<> |
| double | Manta::nmod (const double &a, const double &b) |
| |
|
template<class T > |
| T | Manta::safeDivide (const T &a, const T &b) |
| |
|
template<> |
| int | Manta::safeDivide< int > (const int &a, const int &b) |
| |
|
template<> |
| float | Manta::safeDivide< float > (const float &a, const float &b) |
| |
|
template<> |
| double | Manta::safeDivide< double > (const double &a, const double &b) |
| |
|
bool | Manta::c_isnan (float c) |
| |
◆ buildInfoString()
| std::string Manta::buildInfoString |
( |
| ) |
|
print info about this mantaflow build, used eg by printBuildInfo in fluidsolver.cpp
generate a string with infos about the current mantaflow build