Skip to content
Snippets Groups Projects
Commit d4a0ce98 authored by Stuart Mcalpine's avatar Stuart Mcalpine
Browse files

Updated serial io case.

parent c6b36c04
No related branches found
No related tags found
1 merge request!874Stf output times
...@@ -782,6 +782,10 @@ void write_output_single(struct engine* e, const char* baseName, ...@@ -782,6 +782,10 @@ void write_output_single(struct engine* e, const char* baseName,
if (e->snapshot_int_time_label_on) if (e->snapshot_int_time_label_on)
snprintf(fileName, FILENAME_BUFFER_SIZE, "%s_%06i.hdf5", baseName, snprintf(fileName, FILENAME_BUFFER_SIZE, "%s_%06i.hdf5", baseName,
(int)round(e->time)); (int)round(e->time));
else if (e->snapshot_invoke_stf) {
snprintf(fileName, FILENAME_BUFFER_SIZE, "%s_%04i.hdf5", baseName,
e->stf_output_count);
}
else else
snprintf(fileName, FILENAME_BUFFER_SIZE, "%s_%04i.hdf5", baseName, snprintf(fileName, FILENAME_BUFFER_SIZE, "%s_%04i.hdf5", baseName,
e->snapshot_output_count); e->snapshot_output_count);
...@@ -1293,6 +1297,7 @@ void write_output_single(struct engine* e, const char* baseName, ...@@ -1293,6 +1297,7 @@ void write_output_single(struct engine* e, const char* baseName,
H5Fclose(h_file); H5Fclose(h_file);
e->snapshot_output_count++; e->snapshot_output_count++;
if (e->snapshot_invoke_stf) e->stf_output_count++;
} }
#endif /* HAVE_HDF5 && !WITH_MPI */ #endif /* HAVE_HDF5 && !WITH_MPI */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment