tRemove timestamp in output file naming - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
(HTM) git clone git://src.adamsgaard.dk/cngf-pf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f7f2c499c745401d7c209406a8f035c8451e5c7e
(DIR) parent fc73c7536cdc9f424ca75008d363afbe0e99e120
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 16 Apr 2020 17:40:29 +0200
Remove timestamp in output file naming
Diffstat:
M simulation.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/simulation.c b/simulation.c
t@@ -693,8 +693,8 @@ write_output_file(struct simulation *sim, const int normalize)
char outfile[200];
FILE *fp;
- snprintf(outfile, sizeof(outfile), "%s.output%05d.t=%gs.txt",
- sim->name, sim->n_file++, sim->t);
+ snprintf(outfile, sizeof(outfile), "%s.output%05d.txt",
+ sim->name, sim->n_file++);
if ((fp = fopen(outfile, "w")) != NULL) {
print_output(sim, fp, normalize);