This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
MemMAPR-MKR/include/Solver.hpp
ParkSuMin d55f8fa5d3 Масштабное переобозначение
Улучшение читаемости и понимания кода
2025-05-14 18:00:22 +03:00

22 lines
563 B
C++

#ifndef SOLVER_H
#define SOLVER_H
#include <System.hpp>
#include <string>
#include <fstream>
class Solver{
double delta;
std::vector<double> ThomasMethod(std::vector<std::vector<double>>&, std::vector<double>&) const;
void SolveLine(System&, std::vector<Node*>&) const;
std::string filename_expl;
std::string filename_impl;
public:
Solver(std::string name_1, std::string name_2, double dt = 1.): delta(dt), filename_expl(name_1), filename_impl(name_2) {}
void SolveExplicit(System&, double) const;
void SolveImplicit(System&, double) const;
};
#endif