Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Types | Public Member Functions | List of all members
alsfvm::memory::MemoryFactory Class Reference

#include <alsfvm/memory/MemoryFactory.hpp>

Public Types

typedef alsfvm::shared_ptr< MemoryBaseMemoryPtr
 

Public Member Functions

 MemoryFactory (alsfvm::shared_ptr< DeviceConfiguration > &deviceConfiguration)
 
alsfvm::shared_ptr< Memory< real > > createScalarMemory (size_t nx, size_t ny, size_t nz)
 
const std::string & getPlatform () const
 

Member Typedef Documentation

◆ MemoryPtr

The base memory pointer

Constructor & Destructor Documentation

◆ MemoryFactory()

alsfvm::memory::MemoryFactory::MemoryFactory ( alsfvm::shared_ptr< DeviceConfiguration > &  deviceConfiguration)
Parameters
deviceConfigurationthe deviceConfiguration to use (this is mostly only relevant for GPU, on CPU it can be empty)

Member Function Documentation

◆ createScalarMemory()

alsfvm::shared_ptr< Memory< real > > alsfvm::memory::MemoryFactory::createScalarMemory ( size_t  nx,
size_t  ny,
size_t  nz 
)

Creates scalar memory of the given size

Parameters
nxthe number of real numbers to store in X direction
nythe number of real numbers to store in Y direction
nzthe number of real numbers to store in Z direction
Note
nx, ny, nz is in number of reals
Returns
the pointer to the newly created memory area.

◆ getPlatform()

const std::string & alsfvm::memory::MemoryFactory::getPlatform ( ) const

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