ENH: IOobjectList simpler construction of unregistered

- accept IOobjectOption::registerOption with (MUST_READ, NO_WRITE)
  being implicit. Direct handling of IOobjectOption itself, for
  consistency with IOobject.

  The disabling of object registration is currently the only case
  where IOobjectList doesn't use default construction parameters,
  but it was previously a bit awkward to specify.
This commit is contained in:
Mark Olesen
2022-11-19 17:08:05 +01:00
parent db57c456f6
commit 67b58c28c0
5 changed files with 232 additions and 133 deletions

View File

@ -887,9 +887,7 @@ int main(int argc, char *argv[])
mesh,
runTime.timeName(),
cloud::prefix/cloudDir,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
// Note: look up "positions" for backwards compatibility
@ -972,9 +970,7 @@ int main(int argc, char *argv[])
mesh,
runTime.timeName(),
cloud::prefix/cloudDirs[cloudI],
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
lagrangianFieldCache.readAllFields