forked from ParkSuMin/MemMAPR-MKE
Change names for output files
Теперь в названиях файлов фигурирует количество КЭ
This commit is contained in:
@@ -73,7 +73,7 @@ void Solver::Execute_Linear(double val1, double val2) {
|
|||||||
std::cout << "\nSolution:" << std::endl;
|
std::cout << "\nSolution:" << std::endl;
|
||||||
std::cout << solution << 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++) {
|
for (int i = 0; i < solution.size(); i++) {
|
||||||
file << solution(i) << ' ';
|
file << solution(i) << ' ';
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,7 @@ void Solver::Execute_Cubic(double val1, double val2) {
|
|||||||
std::cout << "\nSolution:" << std::endl;
|
std::cout << "\nSolution:" << std::endl;
|
||||||
std::cout << solution << 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++) {
|
for (int i = 0; i < solution.size(); i++) {
|
||||||
file << solution(i) << ' ';
|
file << solution(i) << ' ';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user