openfoam/applications/utilities/parallelProcessing/decomposePar
Mark Olesen bac943e6fc ENH: new bitSet class and improved PackedList class (closes #751)
- The bitSet class replaces the old PackedBoolList class.
  The redesign provides better block-wise access and reduced method
  calls. This helps both in cases where the bitSet may be relatively
  sparse, and in cases where advantage of contiguous operations can be
  made. This makes it easier to work with a bitSet as top-level object.

  In addition to the previously available count() method to determine
  if a bitSet is being used, now have simpler queries:

    - all()  - true if all bits in the addressable range are empty
    - any()  - true if any bits are set at all.
    - none() - true if no bits are set.

  These are faster than count() and allow early termination.

  The new test() method tests the value of a single bit position and
  returns a bool without any ambiguity caused by the return type
  (like the get() method), nor the const/non-const access (like
  operator[] has). The name corresponds to what std::bitset uses.

  The new find_first(), find_last(), find_next() methods provide a faster
  means of searching for bits that are set.

  This can be especially useful when using a bitSet to control an
  conditional:

  OLD (with macro):

      forAll(selected, celli)
      {
          if (selected[celli])
          {
              sumVol += mesh_.cellVolumes()[celli];
          }
      }

  NEW (with const_iterator):

      for (const label celli : selected)
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

      or manually

      for
      (
          label celli = selected.find_first();
          celli != -1;
          celli = selected.find_next()
      )
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

- When marking up contiguous parts of a bitset, an interval can be
  represented more efficiently as a labelRange of start/size.
  For example,

  OLD:

      if (isA<processorPolyPatch>(pp))
      {
          forAll(pp, i)
          {
              ignoreFaces.set(i);
          }
      }

  NEW:

      if (isA<processorPolyPatch>(pp))
      {
          ignoreFaces.set(pp.range());
      }
2018-03-07 11:21:48 +01:00
..
Make ENH: finiteArea - integration updates 2017-12-19 17:07:08 +00:00
decomposePar.C ENH: consistency of HashSet setMany(), insertMany() with packed-list version 2018-03-14 21:08:29 +01:00
decomposeParDict STYLE: Correcting typos 2018-03-28 17:14:16 +01:00
dimFieldDecomposer.C Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
dimFieldDecomposer.H Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
dimFieldDecomposerDecomposeFields.C Change field loop index from "fieldI" to "fieldi" 2016-05-02 18:20:48 +01:00
domainDecomposition.C ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
domainDecomposition.H BUG: decomposePar -decomposeParDict fails for faMesh (closes #680) 2017-12-22 12:28:39 +01:00
domainDecompositionDistribute.C ENH: region-wise decomposition specification for decomposeParDict 2017-11-09 12:30:24 +01:00
domainDecompositionMesh.C ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
domainDecompositionTemplates.C Standardized cell, patch, face and processor loop index names 2016-04-25 12:00:53 +01:00
faFieldDecomposer.C Finite area port, Hrvoje Jasak 2017-09-15 12:02:25 +01:00
faFieldDecomposer.H Finite area port, Hrvoje Jasak 2017-09-15 12:02:25 +01:00
faFieldDecomposerDecomposeFields.C Finite area port, Hrvoje Jasak 2017-09-15 12:02:25 +01:00
faMeshDecomposition.C STYLE: avoid global findIndex() in favour of UList::find() 2018-02-21 11:50:34 +01:00
faMeshDecomposition.H BUG: decomposePar -decomposeParDict fails for faMesh (closes #680) 2017-12-22 12:28:39 +01:00
lagrangianFieldDecomposer.C STYLE: use list methods find/found instead of findIndex function 2017-10-24 19:07:34 +02:00
lagrangianFieldDecomposer.H decomposePar: Corrected construction of cloud for processors 2016-09-21 17:19:58 +01:00
lagrangianFieldDecomposerDecomposeFields.C INT: Integration of Mattijs' collocated parallel IO additions 2017-07-07 11:39:56 +01:00
pointFieldDecomposer.C C++11: Replaced the C NULL with the safer C++11 nullptr 2016-08-05 17:19:38 +01:00
pointFieldDecomposer.H Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
pointFieldDecomposerDecomposeFields.C Change field loop index from "fieldI" to "fieldi" 2016-05-02 18:20:48 +01:00
readFields.C Updated template formatting to C++11 2016-07-12 20:03:29 +01:00
readFields.H Updated template formatting to C++11 2016-07-12 20:03:29 +01:00