Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
class_mesh.hpp File Reference

define container Mesh More...

#include "stdafx.h"
#include "precision.hpp"
#include "class_vec_3d.hpp"
Include dependency graph for class_mesh.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Mesh_base< T >
 : class handling basic mesh functions, the most important are creating and destroing the underlying data structure creates a mesh of N1*N2*N3 cells More...
 
class  Mesh
 : creates a mesh of N*N*(N+2) cells More...
 

Functions

template<typename T >
void get_per (Vec_3D< T > &position, size_t per)
 
template<typename T >
void get_per (Vec_3D< T > &position, size_t perx, size_t pery, size_t perz)
 

Detailed Description

define container Mesh

Author
Michal Vrastil
Date
2018-06-24

Definition in file class_mesh.hpp.

Function Documentation

template<typename T >
void get_per ( Vec_3D< T > &  position,
size_t  per 
)

Definition at line 66 of file core_mesh.cpp.

References get_per(), and growth_allz::T.

Referenced by Mesh_base< size_t >::operator()(), and Mesh::operator()().

67 {
68  for (T& pos : position) pos = get_per(pos, per);
69 }
static std::enable_if< std::is_integral< T >::value, T >::type get_per(T vec, size_t per)
Definition: core_mesh.cpp:48
template<typename T >
void get_per ( Vec_3D< T > &  position,
size_t  perx,
size_t  pery,
size_t  perz 
)

Definition at line 72 of file core_mesh.cpp.

References get_per().

73 {
74  position[0] = get_per(position[0], perx);
75  position[1] = get_per(position[1], pery);
76  position[2] = get_per(position[2], perz);
77 }
static std::enable_if< std::is_integral< T >::value, T >::type get_per(T vec, size_t per)
Definition: core_mesh.cpp:48