Commit Graph

113 Commits

Author SHA1 Message Date
8edf105c45 cleanup of time handling (cosmetic changes), used timeSelector in more places 2009-05-20 15:40:30 +02:00
aa6710901e Added Time::loop() to allow the
while(runTime.loop())
{
...
}

idiom.

Demonstrated in the shallowWaterFoam solver.
2009-02-17 22:00:59 +00:00
fee6e312b9 Time and functionObject updated for end()
- added end() method to functionObject, functionObjectList & associated classes
- moved outputFilters from src/sampling -> src/OpenFOAM/db/functionObjects
2009-02-17 12:48:10 +01:00
e03979ad3b functionObjectList added manualStart()/manualExecute()
- can call start()/execute() manually regardless of the execution status
2009-02-13 15:10:22 +01:00
fafb3e8885 functionObjectList and Time modifications
- added clear() method to functionObjectList. It also gets called by ~Time().
  This should destroy function objects before anything else gets
  destroyed (eg, objectRegistry).
2009-02-12 22:13:30 +01:00
d8ec3376fc avoid calling functionObjectList twice with Time::operator+=()
- make functionObjectList mutable so it can change behind our back
2009-02-12 16:01:39 +01:00
69918f23c5 consistency update
- OSspecific: chmod() -> chMod(), even although it's not used anywhere

- ListOps get subset() and inplaceSubset() templated on BoolListType

- added UList<bool>::operator[](..) const specialization.
  Returns false (actually pTraits<bool>::zero) for out-of-range elements.
  This lets us use List<bool> with lazy evaluation and no noticeable
  change in performance.

- use rcIndex() and fcIndex() wherever possible.
  Could check if branching or modulus is faster for fcIndex().

- UList and FixedList get 'const T* cdata() const' and 'T* data()' members.
  Similar to the STL front() and std::string::data() methods, they return a
  pointer to the first element without needing to write '&myList[0]', recast
  begin() or violate const-ness.
2009-02-06 20:43:09 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
3cdc8ca03c static label Time::findClosestTimeIndex(const instantList&, const scalar)
- avoid code duplication in vtkPV3Foam.C and checkTimeOption.H
  - can also be used in Time::findClosestTime(), but didn't touch that
2008-07-25 15:37:38 +02:00
a48bc8746a use dictionary::readIfPresent wherever reasonable 2008-07-20 14:07:49 +02:00
02cabc3cf2 updated Copyright (C) \d+-2008 OpenCFD Ltd. 2008-06-25 15:01:46 +02:00
93d1f74d8c dummy Pstream update and typo in Time.C comment. Sorry for mixup. 2008-06-02 19:16:12 +01:00
3170c7c0c9 Creation of OpenFOAM-dev repository 15/04/2008 2008-04-15 18:56:58 +01:00