Skip to content

Commit

Permalink
Remove explicit reference to "time" in DetectBlobs.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paullric committed Feb 10, 2024
1 parent 45b0916 commit 8e5ad54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blobs/DetectBlobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,15 +1104,15 @@ void DetectBlobs(
NcDim * dimTimeOut = NULL;
if ((dimTime != NULL) && (varTime != NULL)) {
if (vecOutputTimes.size() != vecTimes.size()) {
CopyNcVarTimeSubset(ncInput, ncOutput, "time", vecOutputTimes);
CopyNcVarTimeSubset(ncInput, ncOutput, varTime->name(), vecOutputTimes);

} else {
CopyNcVar(ncInput, ncOutput, "time", true);
CopyNcVar(ncInput, ncOutput, varTime->name(), true);
}

dimTimeOut = NcGetTimeDimension(ncOutput);
if (dimTimeOut == NULL) {
_EXCEPTIONT("Error copying variable \"time\" to output file");
_EXCEPTION1("Error copying variable \"%s\" to output file", varTime->name());
}

} /*else if (nAddTimeDim != -1) {
Expand Down

0 comments on commit 8e5ad54

Please sign in to comment.