Commit 84b4b63df6721f3608c0bd0f6e05b0d7738d2d72
1 parent
4e0002b3
Exists in
master
and in
3 other branches
Another fix
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/SERVER/DD_GetData.c
... | ... | @@ -1301,7 +1301,11 @@ int SetTime(DD_Var_t *DD_VarL, double VCTime) |
1301 | 1301 | { |
1302 | 1302 | start[0]--; |
1303 | 1303 | TestTime = Time_GetValueFromVar(DD_VarL->ncID, TimeID, TimeIsDouble, start[0]); |
1304 | - if(CTime >= TestTime) | |
1304 | + if (CTime == TestTime) { | |
1305 | + DD_VarL->nc_rec = start[0]; | |
1306 | + More = 0; | |
1307 | + } | |
1308 | + else if(CTime > TestTime) | |
1305 | 1309 | { |
1306 | 1310 | DD_VarL->nc_rec = start[0] +1; |
1307 | 1311 | More = 0; | ... | ... |