diff options
Diffstat (limited to 'class/Makefile')
| -rw-r--r-- | class/Makefile | 19 |
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 |
