chombo-discharge
Loading...
Searching...
No Matches
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
17#include <CD_NamespaceHeader.H>
18
19template <class T>
21{
22 CH_TIME("FieldSolverFactory<T>::FieldSolverFactory()");
23}
24
25template <class T>
27{
28 CH_TIME("FieldSolverFactory<T>::~FieldSolverFactory()");
29}
30
31template <class T>
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
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:25