opm-common
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 
22 #include <vector>
23 
24 namespace Opm
25 {
26 // NVCC being weird about std::vector, so we need this workaround.
27 // In essence, one can not use std::vector as a default template<typename> typename argument.
28 template <class T>
29 using VectorWithDefaultAllocator = std::vector<T, std::allocator<T>>;
30 } // namespace Opm
31 #endif
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30