Skip to content
Snippets Groups Projects
Commit d6cd25d5 authored by Ritschel, Markus's avatar Ritschel, Markus
Browse files

Add routines for config.json and first plots to Makefile and add self-documenting functionality

parent 682d1b0c
Branches
No related tags found
1 merge request!2Add routines for config.json and first plots to Makefile and add self-documenting functionality
......@@ -25,9 +25,7 @@ FLAGS = -I./json-fortran-master/lib -Wall -Wextra -fbounds-check
all: samsim.x
## Compile the Fortran code and create a samsim.x executable
samsim.x : SAMSIM.f90 $(objects)
$(Comp) ${FLAGS} -o $@ $(objects) SAMSIM.f90 ./json-fortran-master/lib/libjsonfortran.a
......@@ -36,10 +34,22 @@ samsim.x : SAMSIM.f90 $(objects)
$(Comp) ${FLAGS} -c $<
#remove temporary files
## Remove temporary files
clean:
rm *o *mod
## Create a first config.json file
config.json:
python3 Python_files/Code/build_config_files/build_config_1.py
## Plot T, Phi, S timeseries
plot_TPhiS:
python3 Python_files/Code/plotscripts/plot_TPhiS.py
# ==================== Don't put anything below this line ====================
.DEFAULT_GOAL := show-help
.PHONY: show-help
show-help:
@echo "$$(tput bold)Available rules:$$(tput sgr0)";echo;sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## //;td" -e"s/:.*//;G;s/\\n## /---/;s/\\n/ /g;p;}" ${MAKEFILE_LIST}|LC_ALL='C' sort -f|awk -F --- -v n=$$(tput cols) -v i=19 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"%s%*s%s ",a,-i,$$1,z;m=split($$2,w," ");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;printf"\n%*s ",-i," ";}printf"%s ",w[j];}printf"\n";}'|more
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment