My Project
Loading...
Searching...
No Matches
VectorWithDefaultAllocator.hpp
1
/*
2
Copyright 2025 Equinor ASA
3
4
This file is part of the Open Porous Media project (OPM).
5
OPM is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
OPM is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with OPM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef OPM_COMMON_VECTOR_WITH_DEFAULT_ALLOCATOR_HPP
20
#define OPM_COMMON_VECTOR_WITH_DEFAULT_ALLOCATOR_HPP
21
namespace
Opm
22
{
23
// NVCC being weird about std::vector, so we need this workaround.
24
// In essence, one can not use std::vector as a default template<typename> typename argument.
25
template
<
class
T>
26
using
VectorWithDefaultAllocator = std::vector<T, std::allocator<T>>;
27
}
// namespace Opm
28
#endif
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
common
utility
VectorWithDefaultAllocator.hpp
Generated by
1.9.8