IDAES / idaes-ext

IDAES developer repo for those building the idaes binary solvers and related tools.
Other
8 stars 11 forks source link

PETSc Wrapper Explicit Time Variable Bug #130

Closed eslickj closed 2 years ago

eslickj commented 2 years ago

The PETSc wrapper have a bug where the index of the time variable was aggined an index of -1 if there was no explicit time variable, but when the wrapper went to set the value of the time variable, it checked if the index was > 0. This means that if the index of the time variable happened to be 0, the value of time wouldn't get written to the variable. Need to update to >= 0.

eslickj commented 2 years ago

Fixed in https://github.com/IDAES/idaes-ext/pull/129.