summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-04-06 06:45:20 -0400
committerConnor Moore <connor@hhmoore.ca>2026-04-06 06:45:20 -0400
commit7c68f03c153303be21a4c109ef858e8a80ae318b (patch)
treec1eed8070a19882255fa82cac88637fc4458a6a1 /Makefile
parentc5d3fe949c1354e89c228e67f75af26af1ae0502 (diff)
Minimal working example. No OpenMP yet. Added plotting functionality with Gnuplot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 96a64c3..bd3491f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
FC = gfortran
-FFLAGS = -march=native -Ofast
+FFLAGS = -march=native -O3
XNAME = monte_carlo.x
NPROC := $(shell nproc)
-all: build run plot
+all: clean build run plot
+
+clean:
+ rm -f *.x *.out *.mod
build: main.f90
$(FC) $(FFLAGS) main.f90 -o $(XNAME)
@@ -13,4 +16,4 @@ run: build
OMP_NUM_THREADS=$(NPROC) ./$(XNAME)
plot: run
- echo test
+ gnuplot plot.gnu