chombo-discharge
Loading...
Searching...
No Matches
Source
Electrostatics
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>
20
FieldSolverFactory<T>::FieldSolverFactory
()
21
{
22
CH_TIME
(
"FieldSolverFactory<T>::FieldSolverFactory()"
);
23
}
24
25
template
<
class
T>
26
FieldSolverFactory<T>::~FieldSolverFactory
()
27
{
28
CH_TIME
(
"FieldSolverFactory<T>::~FieldSolverFactory()"
);
29
}
30
31
template
<
class
T>
32
RefCountedPtr<FieldSolver>
33
FieldSolverFactory<T>::newSolver
()
const
34
{
35
CH_TIME
(
"FieldSolverFactory<T>::newSolver()"
);
36
37
return
RefCountedPtr<FieldSolver>
(
new
T
);
38
}
39
40
#include <CD_NamespaceFooter.H>
41
42
#endif
CD_FieldSolverFactory.H
Declaration of a template factory class for making FieldSolvers.
FieldSolverFactory::FieldSolverFactory
FieldSolverFactory()
Constructor (does nothing)
Definition
CD_FieldSolverFactoryImplem.H:20
FieldSolverFactory::newSolver
RefCountedPtr< FieldSolver > newSolver() const
Factory method.
Definition
CD_FieldSolverFactoryImplem.H:33
FieldSolverFactory::~FieldSolverFactory
~FieldSolverFactory()
Constructor (does nothing)
Definition
CD_FieldSolverFactoryImplem.H:26
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:37
TracerParticleSolver::TracerParticleSolver
TracerParticleSolver()
Default constructor.
Definition
CD_TracerParticleSolverImplem.H:25
Generated by
1.9.8