Skip to content

Commit

Permalink
Reset XIOS calendar step in ModelMetadata::setTime
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Dec 10, 2024
1 parent 955c5c2 commit 0ca57ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/ModelMetadata.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* @file ModelMetadata.cpp
*
* @date 09 Dec 2024
* @date 10 Dec 2024
* @author Tim Spain <[email protected]>
*/

Expand Down Expand Up @@ -111,6 +111,7 @@ void ModelMetadata::setTime(const TimePoint& time)
if (!xiosHandler->isInitialized()) {
throw std::runtime_error("ModelMetadata: Xios handler has not been initialized");
}
xiosHandler->setCalendarStep(0);
xiosHandler->setCalendarStart(time);
#endif
}
Expand Down

0 comments on commit 0ca57ad

Please sign in to comment.