summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-04-06 05:11:16 -0400
committerConnor Moore <connor@hhmoore.ca>2026-04-06 05:11:16 -0400
commitc5d3fe949c1354e89c228e67f75af26af1ae0502 (patch)
treee128f71e8e39ae71db9b815af592f1999cab8bec /Makefile
parent6ff79a7e1002e4e487d9d39090360be1114ebfc8 (diff)
Added basic tracking and transport for main fortran file, makefile for building/running/plotting with gnuplot (wip)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..96a64c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+FC = gfortran
+FFLAGS = -march=native -Ofast
+XNAME = monte_carlo.x
+NPROC := $(shell nproc)
+
+
+all: build run plot
+
+build: main.f90
+ $(FC) $(FFLAGS) main.f90 -o $(XNAME)
+
+run: build
+ OMP_NUM_THREADS=$(NPROC) ./$(XNAME)
+
+plot: run
+ echo test