Skip to content

Commit

Permalink
WIP now compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Meyer Andersen committed Oct 1, 2024
1 parent 7d8f268 commit 57e78ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opm/simulators/linalg/gpuistl/GpuBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ GpuBuffer<T>::GpuBuffer(const std::vector<T>& data)
{
}

// some class need a default constructor...
// should we reintroduce the default constructor that allocates 0 bytes and initializes the handles?
template <class T>
GpuBuffer<T>::GpuBuffer()
: GpuBuffer(1)
{
}

template <class T>
GpuBuffer<T>::GpuBuffer(const size_t numberOfElements)
: m_numberOfElements(numberOfElements)
Expand Down

0 comments on commit 57e78ac

Please sign in to comment.