Skip to content
  • Mark OLESEN's avatar
    ENH: add objectRegistry newIOobject() helper method · 5d5f541d
    Mark OLESEN authored
    - creates an IOobject at the current time instance (timeName) with
      NO_READ/NO_WRITE/NO_REGISTER characteristics.
      This generalises and replaces the Cloud fieldIOobject() to simplify
      some common use.
    
      // Shorter version (new):
          volScalarField fld
          (
              mesh.newIOobject(name),
             ...
          );
    
      // Longer version:
          volScalarField fld
          (
              IOobject
              (
                  name,
                  mesh.time().timeName(),
                  mesh,
                  IOobject::NO_READ,
                  IOobject::NO_WRITE
                  IOobject::NO_REGISTER
               ),
               ...
          );
    5d5f541d