Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
Loading...
Searching...
No Matches
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
9
#include "
cantera/base/FactoryBase.h
"
10
#include "
cantera/base/global.h
"
11
12
namespace
Cantera
13
{
14
15
class
SystemJacobian
;
16
17
//! Factory class to create Jacobian objects for use by linear solvers
18
class
SystemJacobianFactory :
public
Factory
<SystemJacobian>
19
{
20
public
:
21
static
SystemJacobianFactory* factory();
22
void
deleteFactory
()
override
;
23
24
private
:
25
static
SystemJacobianFactory* s_factory;
26
static
std::mutex jac_mutex;
27
SystemJacobianFactory();
28
};
29
30
//! Create a SystemJacobian object of the specified type
31
shared_ptr<SystemJacobian>
newSystemJacobian
(
const
string
& type);
32
33
}
34
35
#endif
FactoryBase.h
File contains the FactoryBase class declarations.
Cantera::Factory
Factory class that supports registering functions to create objects.
Definition
FactoryBase.h:69
Cantera::SystemJacobianFactory::deleteFactory
void deleteFactory() override
Virtual abstract function that deletes the factory.
Definition
SystemJacobianFactory.cpp:22
Cantera::SystemJacobian
Abstract base class representing Jacobian matrices and preconditioners used in nonlinear solvers.
Definition
SystemJacobian.h:44
global.h
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
Cantera
Namespace for the Cantera kernel.
Definition
AnyMap.cpp:595
Cantera::newSystemJacobian
shared_ptr< SystemJacobian > newSystemJacobian(const string &type)
Create a SystemJacobian object of the specified type.
Definition
SystemJacobianFactory.cpp:38
include
cantera
numerics
SystemJacobianFactory.h
Generated by
1.17.0