From aba17398d86ffb06f4a5adc0d91461cd29551981 Mon Sep 17 00:00:00 2001 From: Cory Date: Mon, 11 Sep 2023 18:34:10 +0200 Subject: [PATCH] Make some corrections --- src/Makefile | 10 ++++++++-- src/specialAlgorithm.cpp | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 4cf0407..cf45c51 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,9 +6,9 @@ OBJS=generalAlgorithm.o specialAlgorithm.o funcs.o EXEC=main analyticPlot -.PHONY: clean +.PHONY: clean create_dirs -all: $(EXEC) +all: create_dirs $(EXEC) main: main.o $(OBJS) $(CC) $(CCFLAGS) -o $@ $^ @@ -22,3 +22,9 @@ analyticPlot: analyticPlot.o clean: rm *.o rm $(EXEC) + rm -r output + +create_dirs: + mkdir -p output/general + mkdir -p output/special + mkdir -p output/error diff --git a/src/specialAlgorithm.cpp b/src/specialAlgorithm.cpp index f831ff9..0d43112 100644 --- a/src/specialAlgorithm.cpp +++ b/src/specialAlgorithm.cpp @@ -40,7 +40,7 @@ void special_algorithm_main() v_vec = special_algorithm(sub_sig, main_sig, sup_sig, g_vec); - ofile.open("output/special_algorithm_" + std::to_string(steps) + ".txt"); + ofile.open("output/special/out_" + std::to_string(steps) + ".txt"); for (int j=0; j < v_vec.n_elem; j++) { ofile << std::setprecision(PRECISION) << std::scientific << step_size*(j+1) << ","