summaryrefslogtreecommitdiff
path: root/class/Makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-03-20 11:16:50 -0400
committerConnor Moore <connor@hhmoore.ca>2026-03-20 11:16:50 -0400
commitf7ad40d801e30f542baaf471e0b0d08aacc212ee (patch)
tree6474c10e962b9591feb2d30d675e5c9620003e05 /class/Makefile
parent6ff45fe556d3b49a1506c5882036f909c143ed85 (diff)
Updated class code
Diffstat (limited to 'class/Makefile')
-rw-r--r--class/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/class/Makefile b/class/Makefile
new file mode 100644
index 0000000..17979f9
--- /dev/null
+++ b/class/Makefile
@@ -0,0 +1,19 @@
+FC = gfortran
+FFLAGS = -O4 -fopenmp -fcheck=all
+NPROC = $(shell nproc)
+TARGET = langdyn.x
+
+all: clean $(TARGET) run
+
+$(TARGET): langdyn.f90
+ $(FC) $(FFLAGS) -o $(TARGET) langdyn.f90
+
+clean:
+ rm -f *.mod *.out *.gif $(TARGET)
+
+run: $(TARGET)
+ OMP_NUM_THREADS=$(NPROC) ./$(TARGET)
+
+plot: trajectories.out kinetic_energies.out
+ gnuplot movie_plot.gnu
+ gnuplot ke_plot.gnu