Loading [MathJax]/jax/output/HTML-CSS/config.js
Cantera  3.2.0a1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SystemJacobianFactory.h
Go to the documentation of this file.
1//! @file SystemJacobianFactory.h
2
3// This file is part of Cantera. See License.txt in the top-level directory or
4// at https://cantera.org/license.txt for license and copyright information.
5
6#ifndef SYSTEMJACOBIANFACTORY_FACTORY_H
7#define SYSTEMJACOBIANFACTORY_FACTORY_H
8
10#include "cantera/base/global.h"
11
12namespace Cantera
13{
14
15class SystemJacobian;
16
17//! Factory class to create Jacobian objects for use by linear solvers
18class SystemJacobianFactory : public Factory<SystemJacobian>
19{
20public:
21 static SystemJacobianFactory* factory();
22 void deleteFactory() override;
23
24private:
25 static SystemJacobianFactory* s_factory;
26 static std::mutex jac_mutex;
28};
29
30//! Create a SystemJacobian object of the specified type
31shared_ptr<SystemJacobian> newSystemJacobian(const string& type);
32
33//! @deprecated To be removed after %Cantera 3.2. Renamed to newSystemJacobian()
34inline shared_ptr<SystemJacobian> newPreconditioner(const string& type) {
35 warn_deprecated("newPreconditioner",
36 "To be removed after Cantera 3.2. Renamed to newSystemJacobian");
37 return newSystemJacobian(type);
38}
39
40}
41
42#endif
File contains the FactoryBase class declarations.
Factory class that supports registering functions to create objects.
Definition FactoryBase.h:69
Factory class to create Jacobian objects for use by linear solvers.
void deleteFactory() override
Virtual abstract function that deletes the factory.
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595
shared_ptr< SystemJacobian > newSystemJacobian(const string &type)
Create a SystemJacobian object of the specified type.
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.
Definition AnyMap.cpp:1997
shared_ptr< SystemJacobian > newPreconditioner(const string &type)