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