Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SlowCellConditionChecker Struct Reference

Object that checks whether a given cell meets the conditions for slow-cell averaging. The main motivation for creating this class is reducing ifdef statements (and allow to modify the actual slow-cell-condition. More...

#include <average_cells.h>

Public Member Functions

__host__ __device__ SlowCellConditionChecker (Real max_dti_slow, Real dx, Real dy, Real dz)
 Construct a new object.
 
template<bool verbose = false>
__device__ bool is_slow (Real total_energy, Real density, Real density_inv, Real velocity_x, Real velocity_y, Real velocity_z, Real gamma) const
 Returns whether the cell meets the condition for being considered a slow cell that must be averaged.
 
__device__ Real max_dti_if_slow (Real total_energy, Real density, Real density_inv, Real velocity_x, Real velocity_y, Real velocity_z, Real gamma) const
 Returns the max inverse timestep of the specified cell, if it meets the criteria for being a slow cell. If it doesn't, return a negative value instead.
 

Detailed Description

Object that checks whether a given cell meets the conditions for slow-cell averaging. The main motivation for creating this class is reducing ifdef statements (and allow to modify the actual slow-cell-condition.


The documentation for this struct was generated from the following files: