Skip to content

Commit 332e795

Browse files
committed
notify observers after update
1 parent 16340a8 commit 332e795

File tree

1 file changed

+3
-1
lines changed
  • ql/models/shortrate/onefactormodels

1 file changed

+3
-1
lines changed

ql/models/shortrate/onefactormodels/gsr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ namespace QuantLib {
9090
}
9191

9292
void Gsr::update() {
93-
if (stateProcess_ != nullptr)
93+
if (stateProcess_ != nullptr) {
9494
ext::static_pointer_cast<GsrProcess>(stateProcess_)->flushCache();
95+
ext::static_pointer_cast<GsrProcess>(stateProcess_)->notifyObservers();
96+
}
9597
LazyObject::update();
9698
}
9799

0 commit comments

Comments
 (0)