/// <summary> /// Simulation is terminating. Perform clean up. /// </summary> public void OnSimulationCompleted() { if (this.fromDate != DateTime.MinValue) { Apsim.Unsubscribe(this.parentModel, "[Clock].StartOfDay", this.OnStartOfDay); } if (this.toDate != DateTime.MinValue) { Apsim.Unsubscribe(this.parentModel, "[Clock].EndOfDay", this.OnEndOfDay); } foreach (string frequency in this.reportingFrequencies) { Apsim.Unsubscribe(this.parentModel, frequency, this.OnReportFrequency); } }