Closed dabail10 closed 8 months ago
I assume, based on the current implementation, that either all the optional arguments are passed or none are. It would be good to have a check at the top of the subroutine to ensure that.
But it sounds like what you're proposing is that the code works with any number of the optional arguments present? offset seems to affect only dagedt, so if dagedt is present, does offset have to be present too?
I was adding a dvsdtd variable to the update_state call and found this code:
These are wrapped in an if present(offset), but in my case I only want dvsdtd (dynamic) I don't want the dvsdtt (thermodynamic). It still seems dangerous to rely on offset only here. I would recommend an if present in front of these three.