Alsvinn  0.5.3
The fast FVM simulator with UQ support
Namespaces | Macros
Volume.cpp File Reference
#include "alsfvm/volume/Volume.hpp"
#include "alsutils/error/Exception.hpp"
#include "alsfvm/volume/interpolate.hpp"

Namespaces

 alsfvm
 Various utility functions to implement the tecno flux.
 
 alsfvm::volume
 

Macros

#define CHECK_SIZE_THIS(x)
 

Macro Definition Documentation

◆ CHECK_SIZE_THIS

#define CHECK_SIZE_THIS (   x)
Value:
{ \
if (this->getNumberOfVariables() != x.getNumberOfVariables()) { \
THROW("Number of variables do not match this, other volume: " << #x); \
} \
if (this->getTotalNumberOfXCells() != x.getTotalNumberOfXCells()) { \
THROW("Not matching number of X cells. Got \n\tthis.nx = " << this->getTotalNumberOfXCells() \
<< "\n\t"<<#x<<".nx = " << x.getTotalNumberOfXCells()); \
} \
if (this->getTotalNumberOfYCells() != x.getTotalNumberOfYCells()) { \
THROW("Not matching number of X cells. Got \n\tthis.ny = " << this->getTotalNumberOfYCells() \
<< "\n\t"<<#x<<".ny = " << x.getTotalNumberOfYCells()); \
} \
if (this->getTotalNumberOfZCells() != x.getTotalNumberOfZCells()) { \
THROW("Not matching number of X cells. Got \n\tthis.nz = " << this->getTotalNumberOfZCells() \
<< "\n\t"<<#x<<".nz = " << x.getTotalNumberOfZCells()); \
} \
}