class SctModelData { ... Date_Time _baseTimestepDateTime; Date_Time _endTimestepDateTime; DeltaTime _timestepDeltaTime; ... } // ************************** // *** SctModelData.cpp *** // ************************** void SctModelData::recompTstepData (const Date_Time& runInitDate, const Date_Time& runEndDate, int simTstepCnt, DeltaTime delta) { ... clearTstepData(); _baseTimestepDateTime = runInitDate; _endTimestepDateTime = runEndDate; _timestepDeltaTime = delta; ... } // ****************************** // *** SctModelData.Sim.cpp *** // ****************************** void SctModelData::recompModelData () { // Recompute the tstep caching. // recompSlotData() assumes that you updated this first. RunInfo (*rinfo)(rwWorkspace->getRunInfo()); DeltaTime runStep = rinfo->getRunStep(); Date_Time startDate = *(rinfo->getInitDate (true)) + runStep; Date_Time endDate = *(rinfo->getEndDate()); recompTstepData(startDate, endDate, rinfo->getNumTimesteps (), // startDate -> endDate runStep); recompSlotData(); } // *********************** // *** SctDialog.cpp *** // *********************** ---------------------------------- _sctModelDat->recompModelData (); ---------------------------------- Called from: SctDialog::SctDialog [ctor] SctDialog::openSctFile SctDialog::sctModelData_ModelRunUpdate SctDialog::fullRecomp SctDialog::recompModelData ---