#include <ostream>
#include <iostream>
#include <stdlib.h>
#include "DPMBase.h"
#include "HGrid.h"
Go to the source code of this file.
Enum that indicates what the ratio of the size of the cells in different levels is.
The options for the distribution of cell-sizes are:
- OLDHGRID Each cell is twice as big as the one below it, for example (1, 2, 4, 8, ...).
- LINEAR The difference between the cell sizes at each level is the same, for example (1, 2, 3, 4, ...).
- EXPONENTIAL Each cell size is a constant factor c > 1 bigger than the one below it, for example with c = 3, (1, 3, 9, 27, ...).
- USER The cell sizes are defined by the user.
Enumerator |
---|
OLDHGRID |
|
LINEAR |
|
EXPONENTIAL |
|
USER |
|
Definition at line 85 of file MercuryBase.h.
Enum class that indicates how particles in different levels (cross level checking) of the HGrid are checked for interactions.
With this enum class, one can choose how they want to check particles in different levels for interactions, so called cross-level checking BOTTOMUP means that small particles are inserted into the coarser HGrid-level, TOPDOWN means that big particles are inserted into a finer HGrid-level when checking for interactions.
Enumerator |
---|
BOTTOMUP |
|
TOPDOWN |
|
Definition at line 45 of file MercuryBase.h.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
HGridMethod |
h |
|
) |
| |
|
inline |
Definition at line 50 of file MercuryBase.h.
References BOTTOMUP.
53 return os <<
"BOTTOMUP";
55 return os <<
"TOPDOWN";
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
HGridMethod & |
h |
|
) |
| |
|
inline |
Definition at line 58 of file MercuryBase.h.
References BOTTOMUP, ERROR, logger, and TOPDOWN.
64 else if (s==
"TOPDOWN")
68 logger(
ERROR,
"HGridMethod could not be read: %", s);
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
LL< Log::ERROR > ERROR
Error log level.