chombo-discharge
Loading...
Searching...
No Matches
Source
Electrostatics
CD_FieldSolverFactoryImplem.H
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3
*
4
* SPDX-License-Identifier: GPL-3.0-or-later
5
*/
6
13
#ifndef CD_FIELDSOLVERFACTORYIMPLEM_H
14
#define CD_FIELDSOLVERFACTORYIMPLEM_H
15
16
// Our includes
17
#include <
CD_FieldSolverFactory.H
>
18
#include <CD_NamespaceHeader.H>
19
20
template
<
class
T>
21
FieldSolverFactory<T>::FieldSolverFactory
()
22
{
23
CH_TIME
(
"FieldSolverFactory<T>::FieldSolverFactory()"
);
24
}
25
26
template
<
class
T>
27
FieldSolverFactory<T>::~FieldSolverFactory
()
28
{
29
CH_TIME
(
"FieldSolverFactory<T>::~FieldSolverFactory()"
);
30
}
31
32
template
<
class
T>
33
RefCountedPtr<FieldSolver>
34
FieldSolverFactory<T>::newSolver
()
const
35
{
36
CH_TIME
(
"FieldSolverFactory<T>::newSolver()"
);
37
38
return
RefCountedPtr<FieldSolver>
(
new
T
);
39
}
40
41
#include <CD_NamespaceFooter.H>
42
43
#endif
CD_FieldSolverFactory.H
Declaration of a template factory class for making FieldSolvers.
FieldSolverFactory::FieldSolverFactory
FieldSolverFactory()
Constructor (does nothing)
Definition
CD_FieldSolverFactoryImplem.H:21
FieldSolverFactory::newSolver
RefCountedPtr< FieldSolver > newSolver() const
Factory method.
Definition
CD_FieldSolverFactoryImplem.H:34
FieldSolverFactory::~FieldSolverFactory
~FieldSolverFactory()
Constructor (does nothing)
Definition
CD_FieldSolverFactoryImplem.H:27
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:38
TracerParticleSolver::TracerParticleSolver
TracerParticleSolver()
Default constructor.
Definition
CD_TracerParticleSolverImplem.H:26
Generated by
1.9.8