Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAMSIM3.0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Deutloff, Jakob
SAMSIM3.0
Commits
d6cd25d5
Commit
d6cd25d5
authored
3 years ago
by
Ritschel, Markus
Browse files
Options
Downloads
Patches
Plain Diff
Add routines for config.json and first plots to Makefile and add self-documenting functionality
parent
682d1b0c
Branches
Branches containing commit
No related tags found
1 merge request
!2
Add routines for config.json and first plots to Makefile and add self-documenting functionality
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
makefile
+55
-45
55 additions, 45 deletions
makefile
with
55 additions
and
45 deletions
makefile
+
55
−
45
View file @
d6cd25d5
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment