1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
Loading...
Searching...
No Matches
method.cpp File Reference

Factory implementation for numerical schemes. More...

#include "method.hpp"
#include "methods/crank_nicolson.hpp"
#include "methods/dufort_frankel.hpp"
#include "methods/laasonen.hpp"
#include "methods/richardson.hpp"
#include <memory>
#include <stdexcept>
Include dependency graph for method.cpp:

Go to the source code of this file.

Functions

std::unique_ptr< Methodmake_method (SchemeKind scheme)
 Build a concrete numerical method from the requested scheme kind.

Detailed Description

Factory implementation for numerical schemes.

Definition in file method.cpp.

Function Documentation

◆ make_method()

std::unique_ptr< Method > make_method ( SchemeKind scheme)

Build a concrete numerical method from the requested scheme kind.

Factory function to create a concrete method instance.

Parameters
schemeIdentifier of the requested scheme.
Returns
std::unique_ptr<Method> Owning pointer to the created scheme.
Exceptions
std::invalid_argumentif the scheme is not supported.

Definition at line 27 of file method.cpp.

Here is the caller graph for this function: