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

#include <zone.h>

Inheritance diagram for FaceZone:
Zone

Public Member Functions

 FaceZone ()
 Construct a new FaceZone object.
 
 ~FaceZone ()
 Destroy the FaceZone object.
 
uint32_t n_faces () const
 Get the number of faces in the zone.
 
FaceZoneType get_type () const
 Get the type of the zone.
 
void set_type (FaceZoneType type)
 Set the type of the zone.
 
void copy_host_to_device ()
 Copy the faces from the host to the device.
 
void copy_device_to_host ()
 Copy the faces 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 * > faces
 
Kokkos::View< uint32_t * >::host_mirror_type h_faces
 

Constructor & Destructor Documentation

◆ FaceZone()

FaceZone::FaceZone ( )

Construct a new FaceZone object.

◆ ~FaceZone()

FaceZone::~FaceZone ( )

Destroy the FaceZone object.

Member Function Documentation

◆ copy_device_to_host()

void FaceZone::copy_device_to_host ( )

Copy the faces from the device to the host.

◆ copy_host_to_device()

void FaceZone::copy_host_to_device ( )

Copy the faces from the host to the device.

◆ get_type()

FaceZoneType FaceZone::get_type ( ) const

Get the type of the zone.

Returns
Type of the zone.

◆ n_faces()

uint32_t FaceZone::n_faces ( ) const

Get the number of faces in the zone.

Returns
Number of faces in the zone.

◆ set_type()

void FaceZone::set_type ( FaceZoneType  type)

Set the type of the zone.

Parameters
typeType of the zone.

Member Data Documentation

◆ faces

Kokkos::View<uint32_t *> FaceZone::faces

◆ h_faces

Kokkos::View<uint32_t*>::host_mirror_type FaceZone::h_faces

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