Exemplo n.º 1
0
void DataCaptureStaticSupport::SetToInitial()
{
  dataCaptureData.DeAlloc();
  dataCaptureData.Alloc(10);
  dataCaptureData.CreateIfNecessary(0);
  dataCaptureData.CreateIfNecessary(1);

  productionRestartTimes.DeAlloc();
  productionRestartTimes.Alloc(10);

  // start with a default TZ pressure
  {
    DataCaptureSpec& currRef = dataCaptureData.GetRef(0);
    currRef.SetUserDesig("DAT");
  }

  // and flows
  {
    DataCaptureSpec& currRef = dataCaptureData.GetRef(1);
    currRef.SetUserDesig("DAT");
    currRef.captureType = DataCaptureSpec::ctFlow;
    currRef.flowCapType = DataCaptureSpec::fctWell;
    currRef.SetOutputUnits();
  }
  dataCaptureData.SetSize(2);

  capturedDataXY.DeAlloc();
  capturedDataXY.AllocAndSetSize(2);
  capturedDataXY[0].SetEmpty();
  capturedDataXY[0].SetID("sPDAT");
  capturedDataXY[1].SetEmpty();
  capturedDataXY[1].SetID("sQDAT");

  capturedData.DeAlloc();
  capturedData.AllocAndSetSize(3);
  capturedData[0].SetResizable();
  capturedData[1].SetResizable();
  capturedData[2].SetResizable();

  capturedDataFO.DoStatusChk();
  dataCaptureData[0]->outputFO.DoStatusChk();
  dataCaptureData[1]->outputFO.DoStatusChk();
}