Alsvinn  0.5.3
The fast FVM simulator with UQ support
Namespaces | Macros
HostMemory.cpp File Reference
#include "alsfvm/memory/HostMemory.hpp"
#include "alsfvm/memory/memory_utils.hpp"
#include <cassert>
#include <algorithm>
#include "alsutils/error/Exception.hpp"
#include "alsutils/log.hpp"
#include "alsutils/debug/stacktrace.hpp"
#include "alsutils/config.hpp"

Namespaces

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

Macros

#define CHECK_SIZE_AND_HOST(x)
 

Macro Definition Documentation

◆ CHECK_SIZE_AND_HOST

#define CHECK_SIZE_AND_HOST (   x)
Value:
{ \
if (!x.isOnHost()) {\
THROW(#x << " is not on host."); \
} \
if (this->getSize() != x.getSize()) { \
THROW("Size mismatch: \n\tthis->getSize() = " << this->getSize() <<"\n\t"<<#x<<".getSize() = " << x.getSize()); \
} \
}