updated makefile: error on ubuntu -lm option hat to be in the end of command

master
leonnicolas 5 years ago
parent dea7548d90
commit fe213d6403

@ -1,4 +1,4 @@
all: main
main:
gcc -fopenmp -std=c11 -pedantic -Wall -lm -o run main.c
gcc -fopenmp -std=c11 -pedantic -Wall -o run main.c -lm

@ -22,7 +22,7 @@ rm $FILENAME 2> /dev/null
for i in $(eval echo {1..$THREADS})
do
./run -r 100000000 -i 5 -n $i | tee -a $FILENAME
./run -r 10000000 -i 5 -n $i | tee -a $FILENAME
done

@ -15,5 +15,5 @@ with open('data.txt') as FILE:
y_values.append(float(row[0]))
y_err.append(float(row[1]))
print(x_values)
plt.errorbar(x_values,y_values,yerr=y_err)
plt.errorbar(x_values,y_values,yerr=y_err, fmt='.')
plt.savefig('plot.png')

Loading…
Cancel
Save