We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 744fb0a + 1385c1d commit bdd64b5Copy full SHA for bdd64b5
src/write_data.c
@@ -110,11 +110,15 @@ void write_data(out_data_file_struct *out_data_files,
110
tmp_fptr = (float *)calloc(N_OUTVAR_TYPES*options.Nlayer*options.SNOW_BAND,sizeof(float));
111
tmp_dptr = (double *)calloc(N_OUTVAR_TYPES*options.Nlayer*options.SNOW_BAND,sizeof(double));
112
113
- // Time
114
- tmp_iptr[0] = dmy->year;
115
- tmp_iptr[1] = dmy->month;
116
- tmp_iptr[2] = dmy->day;
117
- tmp_iptr[3] = dmy->hour;
+ if (!options.OUTPUT_FORCE) {
+
+ // Time
+ tmp_iptr[0] = dmy->year;
+ tmp_iptr[1] = dmy->month;
118
+ tmp_iptr[2] = dmy->day;
119
+ tmp_iptr[3] = dmy->hour;
120
121
+ }
122
123
// Loop over output files
124
for (file_idx = 0; file_idx < options.Noutfiles; file_idx++) {
0 commit comments