tLimit time step by output file interval - cngf-pf - continuum model for granul… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f3bf3d43c4f49d1edbcb111f591565d6fc0369ef | |
parent 0fae6117c54718f5c99d007c460325fbe4364865 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 16 Apr 2020 17:17:16 +0200 | |
Limit time step by output file interval | |
Diffstat: | |
M 1d_fd_simple_shear.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/1d_fd_simple_shear.c b/1d_fd_simple_shear.c | |
t@@ -238,6 +238,7 @@ main(int argc, char* argv[]) | |
return 20; | |
} | |
} | |
+ if (sim.dt > sim.file_dt) sim.dt = sim.file_dt; | |
compute_effective_stress(&sim); | |
check_simulation_parameters(&sim); |