From 7c68f03c153303be21a4c109ef858e8a80ae318b Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Mon, 6 Apr 2026 06:45:20 -0400 Subject: Minimal working example. No OpenMP yet. Added plotting functionality with Gnuplot --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3