Skip to content
Snippets Groups Projects
  1. Dec 21, 2018
  2. Dec 20, 2018
    • 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
  3. Dec 11, 2018
    • 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
  4. Dec 21, 2018
  5. Dec 20, 2018
  6. Dec 19, 2018
  7. Dec 20, 2018
  8. Dec 19, 2018
  9. Dec 18, 2018
    • 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
  10. Dec 17, 2018
  11. Dec 19, 2018
  12. Dec 18, 2018
  13. Dec 17, 2018
  14. Dec 16, 2018