Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
CellZone Class Reference

#include <zone.h>

Inheritance diagram for CellZone:
Zone

Public Member Functions

 CellZone ()
 Construct a new CellZone object.
 
 ~CellZone ()
 Destroy the CellZone object.
 
uint32_t n_cells () const
 Get the number of cells in the zone.
 
CellZoneType type () const
 Get the type of the zone.
 
void copy_host_to_device ()
 Copy the cells from the host to the device.
 
void copy_device_to_host ()
 Copy the cells from the device to the host.
 
- Public Member Functions inherited from Zone
 Zone ()
 Construct a new Zone object.
 
 ~Zone ()
 Destroy the Zone object.
 
std::string get_name () const
 Get the name of the zone.
 
void set_name (const std::string &name)
 Set the name of the zone.
 

Public Attributes

Kokkos::View< uint32_t * > cells
 
Kokkos::View< uint32_t * >::host_mirror_type h_cells
 

Constructor & Destructor Documentation

◆ CellZone()

CellZone::CellZone ( )

Construct a new CellZone object.

◆ ~CellZone()

CellZone::~CellZone ( )

Destroy the CellZone object.

Member Function Documentation

◆ copy_device_to_host()

void CellZone::copy_device_to_host ( )

Copy the cells from the device to the host.

◆ copy_host_to_device()

void CellZone::copy_host_to_device ( )

Copy the cells from the host to the device.

◆ n_cells()

uint32_t CellZone::n_cells ( ) const

Get the number of cells in the zone.

Returns
Number of cells in the zone.

◆ type()

CellZoneType CellZone::type ( ) const

Get the type of the zone.

Returns
Type of the zone.

Member Data Documentation

◆ cells

Kokkos::View<uint32_t *> CellZone::cells

◆ h_cells

Kokkos::View<uint32_t*>::host_mirror_type CellZone::h_cells

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