Commit Graph

511 Commits

Author SHA1 Message Date
cf488912bb added xfer<...> transfer() method to various containers
- this should provide a slightly more naturally means to using transfer
  constructors, for example
          labelList list2(list1.transfer());
      vs. labelList list2(xferMove(list1));

- returns a plain list where appropriate (eg, DynamicList, SortableList)
  for example
          labelList list2(dynList1.transfer());
      vs. labelList list2(xferMoveTo<labelList>(dynList1));
2009-01-02 15:54:51 +01:00
5e90a0ddc9 dictionary gets xfer constructor and transfer() method(s) 2009-01-02 15:50:32 +01:00
a010121427 HashTable / StaticHashTable changes
StaticHashTable:
- erase(iterator&) now actually alters the iterator and iterator++() handles
  it properly
- clear() also sets count to zero
- operator=(const StaticHashTable&) doesn't crash after a previous transfer
- operator(), operator==() and operator!=() added

HashTable:
- operator=(const HashTable&) gets tableSize if required, eg, after a
  previous transfer)

HashSet / Map
- add xfer<...> constructor for underlying HashTable
2009-01-02 13:24:30 +01:00
973b9ea0ce boundBox, octree cleanup
- added boundBox(const tmp<pointField>&) constructor for use with
    coordinate systems
  - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
2009-01-01 17:03:19 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
48af574040 new management for sampledSurface(s)
//- Does the surface need an update?
        virtual bool needsUpdate() const = 0;

        //- Mark the surface as needing an update.
        //  May also free up unneeded data.
        //  Return false if surface was already marked as expired.
        virtual bool expire() = 0;

        //- Update the surface as required.
        //  Do nothing (and return false) if no update was required
        virtual bool update() = 0;

    The constructors for the derived classes should generally start in a
    'expired' condition (ie, needsUpdate() == true) and rely on a subsequent
    call to the update() method to complete the initialization. Delaying the
    final construction as late as possible allows the construction of
    surfaces that may depend on intermediate calculation results (eg,
    iso-surfaces) and also avoids the unnecessary reconstruction of surfaces
    between sampling intervals.

    It is the responsibility of the caller to ensure that the surface
    update() is called before the surface is used.  The update() method
    implementation should do nothing when the surface is already up-to-date.
2008-12-31 18:53:57 +01:00
dcc82bf77b boundingBox has mag() and span() methods - use them 2008-12-31 17:58:23 +01:00
79e9a90c0e reworked functionObjectList to use PtrList
- This was originally plan 'B', but it is actually probably more efficient
  than using PtrDictionary anyhow.
- straightened out the return value logic, but it wasn't being used anywhere
  anyhow.
- new 'updated_' data member avoids inadvertent execution in the read()
  method when execution is turned off.
2008-12-19 09:29:58 +01:00
61187dfedb updated DictionaryTest to test transfer() and remove()
- PtrDictionary and remove(const word&) does not seem to work
2008-12-18 16:54:35 +01:00
94a6462058 update/remove some tests from applications/test 2008-12-18 10:00:03 +01:00
a43b7a916e handle NULL pointer in regExp 2008-12-18 09:30:06 +01:00
239c31f30f DictionaryBase gets transfer() method 2008-12-17 12:36:55 +01:00
e0c749cfe8 Merge commit 'OpenCFD/master' into olesenm 2008-12-17 08:26:10 +01:00
bf057f99c0 small change to CMakeLists.txt for cmake-2.6.2 2008-12-15 22:06:44 +01:00
0571f5393e rename Foam::dotFoam() -> Foam::findEtcFile() with an optional 'mandatory' argument
- if mandatory is true, findEtcFile() will abort with a message (via cerr).
  This allows a non-existent file to be caught at the lowest level and avoid
  error handling in IFstream, which might not be initialized at that stage.
2008-12-12 19:16:32 +01:00
9663072b5f Removed ddtPhiCorr. 2008-12-12 15:06:04 +00:00
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
07e604d4fa Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/Pstream/Allwmake
2008-12-12 09:06:00 +01:00
c7a0f553ef include file position 2008-12-11 18:54:43 +00:00
5e7a1f7ea9 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-11 15:51:31 +00:00
ffa75238a6 comment 2008-12-11 15:49:29 +00:00
d3dde21aff Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-11 12:06:06 +00:00
fd7ec69cc3 Added documentation to PDRFoam. 2008-12-11 12:05:56 +00:00
7f22e3104a Added correctPhi to compressibleInterDyMFoam. 2008-12-11 12:05:21 +00:00
7473adc89c writeKeyword spacing for keyType, misc cosmetics changes 2008-12-10 23:00:39 +01:00
c6cf2e539a - dropped regularExpression in favour of regExp
- moved findStrings from stringList to new stringListOps
  (helps reduce the influence on dependencies)
- findStrings can also do partial matches
2008-12-10 14:29:19 +01:00
4aaa07cc14 cosmetic changes 2008-12-10 13:34:52 +01:00
d017697b04 regExp class added - enhanced and with minor bugfixes 2008-12-10 12:44:12 +01:00
e2d140fa94 timeSelector: improved functionality
- the improved side-effect of enabling -zeroTimea alters default selection
  behaviour and -latestTime selection behaviour for utilities in which
  accidentally using the 0/ directory can cause damage (eg, reconstructPar)
- can combine -time ranges and -latestTime
2008-12-10 09:14:00 +01:00
9a0a0d051e a few tests targeted to FOAM_APPBIN instead of FOAM_USER_APPBIN 2008-12-09 18:59:48 +01:00
f7f2d1672a extend fvSolution re-write to also include the 'smooth' entry 2008-12-09 17:04:05 +01:00
d0795abc51 Merge commit 'bundle/home' into olesenm 2008-12-09 09:11:26 +01:00
394fcb56b0 Merge commit 'OpenCFD/master' into olesenm 2008-12-09 09:11:12 +01:00
cabb079f56 small changes to dictionaryTest to test regexs 2008-12-08 20:46:56 +01:00
4f1bb8345f lduMatrix now takes a dictionary instead of an Istream for the solver controls
- can now use dictionary substitutions and regular expressions in
    system/fvSolution

  - foamUpgradeFvSolution application to convert system/fvSolution
    (with -test option)

motion solver syntax left as-is.
2008-12-08 17:22:01 +01:00
f5b23d5065 missing patch selection 2008-12-03 11:19:40 +00:00
a13f97d59d timeSelector - handle cases with missing constant/ or 0/ directories 2008-12-02 15:55:51 +01:00
dee34f2775 DynamicList: cosmetics
- using SizeInc to define the granularity in the SizeMult=0 needed?
2008-11-29 13:11:52 +01:00
523d061737 Merge commit 'OpenCFD/master' into olesenm 2008-12-01 12:55:30 +01:00
7c326218a8 Local Macros for Doxygen 2008-12-01 10:32:53 +00:00
b30a6faf2c Merge commit 'OpenCFD/master' into olesenm 2008-11-28 18:06:40 +01:00
61cbf11d0a Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-27 17:17:32 +00:00
75e7defd60 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-27 16:58:35 +00:00
21117b467b PDRkEpsilon.H Documentation 2008-11-27 16:54:30 +00:00
c98e404f45 Corrected HPMPI case. 2008-11-27 16:46:06 +00:00
747db59c3a basic.H
XiModel.H
SCOPELaminarFlameSpeed.H
basicXiSubXiEq.H
basicXiSubG.H
Doxyfile (include PATH to OpenCFD Macros)
doxyFilt (include class documentation in /src)
2008-11-27 11:22:08 +00:00
7e2a940dfb SortableList + ListOps changes
- dropped setSize() in favour of List::setSize().
  The size of the indices is set in sort() anyhow and undefined before that.
- added reverseSort() method
- added ListOps uniqueOrder() and duplicateOrder()
2008-11-25 11:52:38 +01:00
1cff9e5409 merge 2008-11-24 16:42:44 +00:00
41bbcb6337 DynamicList changes.
- setSize() adjusts the addressable length only.
  Changed setSize(label) usage to setCapacity(label) or reserve(label)
  throughout. The final name (capacity vs. storageSize() vs. whatever) can
  easily be decided at a later date.
- added setSize(label, const T&), which may still not be really useful, but
  is at least now meaningful
- made shrink() a bit more legible.
- added append(UList<T>&)
- copying from a UList avoids reallocations where possible

The following bits of code continue to use the DynamicList::setSize(), but
appear to be legitimate (or the corresponding code itself needs rethinking).

  src/OpenFOAM/meshes/primitiveMesh/primitiveMeshPointCells.C:167: error: within this context
  src/OpenFOAM/lnInclude/faceTemplates.C:44: error: within this context
  src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.C:178: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:737: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:741: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:745: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:749: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:754: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:935: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:940: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:1041: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:1046: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2161: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2162: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2201: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2205: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2261: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2262: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2263: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2264: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2265: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3011: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3076: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3244: error: within this context
  src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3371: error: within this context
  src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:73: error: within this context
  src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:91: error: within this context
  src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:73: error: within this context
  src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:91: error: within this context
2008-11-24 17:22:37 +01:00
b7e349a727 Merge commit 'bundle/home' into olesenm 2008-11-24 08:44:47 +01:00