Struct AAHD_Bank

Inheritance Relationships

Derived Types

Struct Documentation

struct AAHD_Bank

Host-device bank storage structure for device-transportable FLUDS.

Subclassed by opensn::AAHD_BoundaryBank, opensn::AAHD_DelayedLocalBank, opensn::AAHD_NonLocalBank

Constructors

Default constructor.

AAHD_Bank() = default

Construct and allocate memory.

inline AAHD_Bank(std::size_t size)

Construct and allocate memory.

Copy and move

Copy constructor.

AAHD_Bank(const AAHD_Bank &other)

Copy assignment.

AAHD_Bank &operator=(const AAHD_Bank &other)

Copy assignment.

AAHD_Bank(AAHD_Bank &&other) = default

Move constructor.

AAHD_Bank &operator=(AAHD_Bank &&other) = default

Move assignment.

Actions

Clear host and device storage.

void Clear()

Upload data from host to device.

void UploadToDevice()

Upload data from host to device.

void DownloadToHost()

Download data from device to host.

Public Members

crb::HostVector<double> host_storage

Host storage for the bank.

crb::DeviceMemory<double> device_storage

Device storage for the bank.