• Mark Olesen's avatar
    ENH: rationalize cloud method inheritance · 382f1da1
    Mark Olesen authored
    - a top-level cloud::nParcels() virtual, which is overloaded by the
      first level of Cloud inheritance. This permits quick determination of
      cloud sizes, even when retrieved from registry with the base level.
          cloud* cldPtr = mesh.cfindObject<cloud>("myCloud");
          label nParcels = (cldPtr ? cldPtr->nParcels() : 0);
    - make writeLagrangianPositions on by default unless explicitly
      disabled in the InfoSwitches.
      Flag output errors (where neither coordinates nor positions are
      written) with Fatal.
    - additional IOField helper functions in cloud
    STYLE: simplify iterator inheritance
geometryCloud.C 6.33 KB