Make some corrections
This commit is contained in:
parent
3ac132c831
commit
aba17398d8
10
src/Makefile
10
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
|
||||
|
||||
@ -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) << ","
|
||||
|
||||
Loading…
Reference in New Issue
Block a user