Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
nalu_make_unique.h
Go to the documentation of this file.
1 #ifndef nalu_make_unique_h
2 #define nalu_make_unique_h
3 
4 #include <memory>
5 
6 namespace sierra {
7 namespace nalu {
8 
9 // replace with std::make_unique when we move to C++14
10 template<typename T, typename... Args>
11 std::unique_ptr<T> make_unique(Args&&... args)
12 {
13  return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
14 }
15 
16 }
17 }
18 
19 #endif
Definition: ABLForcingAlgorithm.C:26
std::unique_ptr< T > make_unique(Args &&...args)
Definition: nalu_make_unique.h:11