Skip to content
  • Mark OLESEN's avatar
    ENH: expose read option for Time construction · a215f94e
    Mark OLESEN authored
    - Time is normally constructed with READ_MODIFIED for its controlDict
      and objectRegistry, but for certain applications (eg, redistributePar)
      it can be useful to construct without file monitoring and specifying
      MUST_READ instead.
    
      Example,
    
      Info<< "Create time\n" << Foam::endl;
      Time runTime
      (
          Time::controlDictName,
          args,
          false,   // Disallow functionObjects
          true,    // Allow controlDict "libs"
          IOobjectOption::MUST_READ  // Instead of READ_MODIFIED
      );
    a215f94e