#include <alsfvm/memory/MemoryFactory.hpp>
◆ MemoryPtr
◆ MemoryFactory()
alsfvm::memory::MemoryFactory::MemoryFactory |
( |
alsfvm::shared_ptr< DeviceConfiguration > & |
deviceConfiguration | ) |
|
- Parameters
-
deviceConfiguration | the deviceConfiguration to use (this is mostly only relevant for GPU, on CPU it can be empty) |
◆ 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
-
nx | the number of real numbers to store in X direction |
ny | the number of real numbers to store in Y direction |
nz | the 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:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/include/alsfvm/memory/MemoryFactory.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/src/memory/MemoryFactory.cpp