1. 02 Jan, 2019 4 commits
  2. 07 Jan, 2019 1 commit
  3. 03 Jan, 2019 1 commit
  4. 21 Dec, 2018 4 commits
  5. 20 Dec, 2018 3 commits
    • Mark Olesen's avatar
      ENH: allow direct testing of HashTable iterator as a bool · 3560884a
      Mark Olesen authored
      - can be used as a more natural test on the iterator.
        For example, with
      
           HashTable<..> table;
           auto iter = table.find(...);
      
        Following are now all equivalent:
      
          1.  if (iter != table.end()) ...
          2.  if (iter.found()) ...
          3.  if (iter) ...
      3560884a
    • Mark Olesen's avatar
      ENH: add get() accessor to tmp classes · 08335beb
      Mark Olesen authored
      - similar to autoPtr and unique_ptr. Returns the pointer value without
        any checks. This provides a simple way for use to use either
        an autoPtr or a tmp for local memory management without accidentally
        stealing the pointer.
      
        Eg,
      
           volVectorField* ptr;
           tmp<volVectorField> tempField;
      
           if (someField.valid())
           {
               ptr = someField.get();
           }
           else
           {
               tempField.reset(new volVectorField(....));
               ptr = tmpField.get();
           }
      
           const volVectorField& withField = *ptr;
      
      STYLE: make more tmp methods noexcept
      08335beb
    • Mark Olesen's avatar
      STYLE: return a pointer instead of bool for isA<> · 17419209
      Mark Olesen authored
      - in some cases this means you could avoid an isA<> followed by
        second dynamicCast<>
      17419209
  6. 11 Dec, 2018 1 commit
    • Mark Olesen's avatar
      ENH: use Zero when zero-initializing types · 1d85fecf
      Mark Olesen authored
      - makes the intent clearer and avoids the need for additional
        constructor casting. Eg,
      
            labelList(10, Zero)    vs.  labelList(10, 0)
            scalarField(10, Zero)  vs.  scalarField(10, scalar(0))
            vectorField(10, Zero)  vs.  vectorField(10, vector::zero)
      1d85fecf
  7. 21 Dec, 2018 2 commits
  8. 20 Dec, 2018 3 commits
  9. 19 Dec, 2018 1 commit
  10. 20 Dec, 2018 5 commits
  11. 19 Dec, 2018 7 commits
  12. 18 Dec, 2018 2 commits
    • Andrew Heather's avatar
      TUT: Added new bump2D case · 79f9c3bb
      Andrew Heather authored
      79f9c3bb
    • Andrew Heather's avatar
      ENH: Added new columnAverage function object · 485523ea
      Andrew Heather authored
          Averages columns of cells for layered meshes.
      
          For each patch face, calculates the average value of all cells attached in
          the patch face normal direction, and then pushes the average value back
          to all cells in the column.
      
          Useful for channel-like cases where we want to average fields in the
          spanwise direction.
      
          Example of function object specification:
          columnAverage1
          {
              type        columnAverage;
              libs        ("libfieldFunctionObjects.so");
              ...
              patches     (front side);
              fields      (U p);
          }
      
          Where the entries comprise:
          \table
              Property     | Description               | Required    | Default value
              type         | type name: fieldMinMax    | yes         |
              patches      | list of patches to collapse onto | yes  |
              fields       | list of fields to process | yes         |
          \endtable
      485523ea
  13. 17 Dec, 2018 1 commit
  14. 19 Dec, 2018 1 commit
  15. 18 Dec, 2018 1 commit
  16. 17 Dec, 2018 3 commits