Skip to content
Snippets Groups Projects
  1. Feb 27, 2018
  2. May 30, 2018
  3. Mar 21, 2018
  4. Feb 26, 2018
    • Mark OLESEN's avatar
      ENH: cleanup autoPtr class (issue #639) · 660f3e54
      Mark OLESEN authored
      Improve alignment of its behaviour with std::unique_ptr
      
        - element_type typedef
        - release() method - identical to ptr() method
        - get() method to get the pointer without checking and without releasing it.
        - operator*() for dereferencing
      
      Method name changes
      
        - renamed rawPtr() to get()
        - renamed rawRef() to ref(), removed unused const version.
      
      Removed methods/operators
      
        - assignment from a raw pointer was deleted (was rarely used).
          Can be convenient, but uncontrolled and potentially unsafe.
          Do allow assignment from a literal nullptr though, since this
          can never leak (and also corresponds to the unique_ptr API).
      
      Additional methods
      
        - clone() method: forwards to the clone() method of the underlying
          data object with argument forwarding.
      
        - reset(autoPtr&&) as an alternative to operator=(autoPtr&&)
      
      STYLE: avoid implicit conversion from autoPtr to object type in many places
      
      - existing implementation has the following:
      
           operator const T&() const { return operator*(); }
      
        which means that the following code works:
      
             autoPtr<mapPolyMesh> map = ...;
             updateMesh(*map);    // OK: explicit dereferencing
             updateMesh(map());   // OK: explicit dereferencing
             updateMesh(map);     // OK: implicit dereferencing
      
        for clarity it may preferable to avoid the implicit dereferencing
      
      - prefer operator* to operator() when deferenced a return value
        so it is clearer that a pointer is involve and not a function call
        etc    Eg,   return *meshPtr_;  vs.  return meshPtr_();
      660f3e54
  5. Nov 28, 2017
    • Mark OLESEN's avatar
      ENH: added functionObject::execute(int) method · 610c2909
      Mark OLESEN authored
      - this is a provision for defining execute actions that can be called
        largely independently of the normal time-loop constraints. This can
        be useful to provide hooks for sub-cycling, or to define an action
        that can be triggered manually or on some other event.
      610c2909
  6. Jun 26, 2017
  7. Apr 06, 2017
  8. Dec 13, 2016
  9. Nov 26, 2016
  10. Sep 27, 2016
  11. Aug 05, 2016
  12. Jun 21, 2016
  13. Jun 19, 2016
  14. Jun 17, 2016
  15. Jun 13, 2016
  16. Jun 12, 2016
  17. May 21, 2016
  18. May 18, 2016
  19. May 16, 2016
  20. May 15, 2016
    • Henry Weller's avatar
      functionObjects: rewritten to all be derived from 'functionObject' · 78d2971b
      Henry Weller authored
        - Avoids the need for the 'OutputFilterFunctionObject' wrapper
        - Time-control for execution and writing is now provided by the
          'timeControlFunctionObject' which instantiates the processing
          'functionObject' and controls its operation.
        - Alternative time-control functionObjects can now be written and
          selected at run-time without the need to compile wrapped version of
          EVERY existing functionObject which would have been required in the
          old structure.
        - The separation of 'execute' and 'write' functions is now formalized in the
          'functionObject' base-class and all derived classes implement the
          two functions.
        - Unnecessary implementations of functions with appropriate defaults
          in the 'functionObject' base-class have been removed reducing
          clutter and simplifying implementation of new functionObjects.
        - The 'coded' 'functionObject' has also been updated, simplified and tested.
        - Further simplification is now possible by creating some general
          intermediate classes derived from 'functionObject'.
      78d2971b
  21. May 13, 2016
  22. May 12, 2016
    • Henry Weller's avatar
      Standardized the naming of functions which control the writing of fields etc. · 6164c2f2
      Henry Weller authored
      to have the prefix 'write' rather than 'output'
      
      So outputTime() -> writeTime()
      
      but 'outputTime()' is still supported for backward-compatibility.
      
      Also removed the redundant secondary-writing functionality from Time
      which has been superseded by the 'writeRegisteredObject' functionObject.
      6164c2f2
    • Henry Weller's avatar
      functionObjects: Changed options 'outputControl' -> 'writeControl' and... · c983670c
      Henry Weller authored
      functionObjects: Changed options 'outputControl' -> 'writeControl' and 'outputInterval' -> 'writeInterval'
      
      for consistency with the time controls in controlDict and to avoid
      unnecessary confusion.  All code and tutorials have been updated.
      
      The old names 'outputControl' and 'outputInterval' are but supported for
      backward compatibility but deprecated.
      c983670c
  23. May 11, 2016
  24. May 09, 2016
  25. May 04, 2016
  26. Apr 30, 2016
  27. Nov 01, 2015
  28. Sep 09, 2013
  29. Jun 07, 2013
  30. Dec 13, 2012
  31. Aug 14, 2011
  32. May 11, 2011
  33. Jan 19, 2011
  34. Jan 14, 2011
  35. Jan 07, 2011
  36. Jan 05, 2011