tFix cmd line setting of dt, only show final output to stdout - cngf-pf - conti… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0a594e0ee9565c0f780e85e1af04e76d6c4b92cf | |
parent 0ee06c1ba6539f91ca21de647f6832d81c7301db | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 15 Apr 2019 21:07:02 +0200 | |
Fix cmd line setting of dt, only show final output to stdout | |
Diffstat: | |
M main.c | 12 ++++++------ | |
1 file changed, 6 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/main.c b/main.c | |
t@@ -166,7 +166,7 @@ int main(int argc, char* argv[]) | |
sim.t_end = atof(optarg); | |
break; | |
case 'D': | |
- sim.t_end = atof(optarg); | |
+ sim.dt = atof(optarg); | |
break; | |
case 'I': | |
sim.file_dt = atof(optarg); | |
t@@ -220,11 +220,6 @@ int main(int argc, char* argv[]) | |
compute_shear_strain_rate_plastic(&sim); | |
compute_shear_velocity(&sim); | |
- if (normalize) | |
- print_arrays_2nd_normalized(sim.z, sim.v_x, sim.nz); | |
- else | |
- print_three_arrays(sim.z, sim.v_x, sim.sigma_n_eff, sim.nz); | |
- | |
sim.t += sim.dt; | |
filetimeclock += sim.dt; | |
t@@ -234,6 +229,11 @@ int main(int argc, char* argv[]) | |
} | |
} | |
+ if (normalize) | |
+ print_arrays_2nd_normalized(sim.z, sim.v_x, sim.nz); | |
+ else | |
+ print_three_arrays(sim.z, sim.v_x, sim.sigma_n_eff, sim.nz); | |
+ | |
free_arrays(&sim); | |
return 0; | |
} |