chombo-discharge
CD_FieldSolverFactoryImplem.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_FieldSolverFactoryImplem_H
13 #define CD_FieldSolverFactoryImplem_H
14 
15 // Our includes
16 #include <CD_FieldSolverFactory.H>
17 #include <CD_NamespaceHeader.H>
18 
19 template <class T>
21 {
22  CH_TIME("FieldSolverFactory<T>::FieldSolverFactory()");
23 }
24 
25 template <class T>
27 {
28  CH_TIME("FieldSolverFactory<T>::~FieldSolverFactory()");
29 }
30 
31 template <class T>
32 RefCountedPtr<FieldSolver>
34 {
35  CH_TIME("FieldSolverFactory<T>::newSolver()");
36 
37  return RefCountedPtr<FieldSolver>(new T);
38 }
39 
40 #include <CD_NamespaceFooter.H>
41 
42 #endif
Declaration of a template factory class for making FieldSolvers.
FieldSolverFactory()
Constructor (does nothing)
Definition: CD_FieldSolverFactoryImplem.H:20
RefCountedPtr< FieldSolver > newSolver() const
Factory method.
Definition: CD_FieldSolverFactoryImplem.H:33
~FieldSolverFactory()
Constructor (does nothing)
Definition: CD_FieldSolverFactoryImplem.H:26