-
Notifications
You must be signed in to change notification settings - Fork 2
/
exec.sh
33 lines (28 loc) · 930 Bytes
/
exec.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
## temporal information
# maximum duration (in free-fall time)
export timemax=2.0e+1
# maximum duration (in wall time [s])
export wtimemax=6.0e+2
# logging rate (in free-fall time)
export log_rate=1.0e-1
# save rate (in free-fall time)
export save_rate=5.0e-1
# save after (in free-fall time)
export save_after=0.0e+0
# statistics collection rate (in free-fall time)
export stat_rate=1.0e-1
# statistics collection after (in free-fall time)
export stat_after=1.0e+2
## safety factors to decide time step size
## for advective and diffusive terms
export coef_dt_adv=0.95
export coef_dt_dif=0.95
## physical parameters
export Ra=1.0e+8
export Pr=1.0e+0
# give name of the directory in which the initial conditions
# (incl. domain size etc.) are stored as an argument
dirname_ic=initial_condition/output
# dirname_ic=$(find output/save -type d | sort | tail -n 1)
mpirun -n 2 --oversubscribe ./a.out ${dirname_ic}