12PreconditionerFactory* PreconditionerFactory::factory() {
13 std::unique_lock<std::mutex> lock(precon_mutex);
15 s_factory =
new PreconditionerFactory;
22 std::unique_lock<std::mutex> lock(precon_mutex);
28std::mutex PreconditionerFactory::precon_mutex;
30PreconditionerFactory::PreconditionerFactory()
37 return shared_ptr<PreconditionerBase>(PreconditionerFactory::factory()->create(precon));
Declarations for the class AdaptivePreconditioner which is a child class of PreconditionerBase for pr...
AdaptivePreconditioner a preconditioner designed for use with large mechanisms that leverages sparse ...
void reg(const string &name, function< PreconditionerBase *(Args...)> f)
Register a new object construction function.
Factory class to create preconditioner objects.
void deleteFactory() override
Delete preconditioner factory.
Namespace for the Cantera kernel.
shared_ptr< PreconditionerBase > newPreconditioner(const string &precon)
Create a Preconditioner object of the specified type.