| d0578d90 | 06-Mar-2015 |
Shri Abhyankar <abhyshr@mcs.anl.gov> |
ADJOINTS+EVENTS: The cost function and the sensitivity matches for the example with events (ex3adj_events) compared with the original adjoint example (ex3adj)
i) Added TSAdjointEventMonitor that si
ADJOINTS+EVENTS: The cost function and the sensitivity matches for the example with events (ex3adj_events) compared with the original adjoint example (ex3adj)
i) Added TSAdjointEventMonitor that simply checks if an event had occured in the forward solve at the current time. If true, calls the user postevent routine with the forwardsolve flag set to FALSE. ii) Added stepnum field in event recorder iii) Fixed the time interval of the disturbance in ex3adj. iv) PostStepFunction in ex3adj_events (also added to ex3adj) displays value of delta after every time-step. v) PostEventFunction in ex3adj_events now handles both the forward and the adjoint solve. vi) Have commented out TSPostStep() from TSAdjointSolve as we don't need it in the adjoint solve (I think).
show more ...
|