Change names for output files

Теперь в названиях файлов фигурирует количество КЭ
This commit is contained in:
2025-09-24 11:29:42 +03:00
parent abe142a1d6
commit 4fe90394ec

View File

@@ -73,7 +73,7 @@ void Solver::Execute_Linear(double val1, double val2) {
std::cout << "\nSolution:" << std::endl;
std::cout << solution << std::endl;
std::ofstream file("matrix_linear.txt");
std::ofstream file("matrix_linear_" + std::to_string(N) + ".txt");
for (int i = 0; i < solution.size(); i++) {
file << solution(i) << ' ';
}
@@ -152,7 +152,7 @@ void Solver::Execute_Cubic(double val1, double val2) {
std::cout << "\nSolution:" << std::endl;
std::cout << solution << std::endl;
std::ofstream file("matrix_cubic.txt");
std::ofstream file("matrix_cubic_" + std::to_string(N) + ".txt");
for (int i = 0; i < solution.size(); i++) {
file << solution(i) << ' ';
}