Commit Graph

2213 Commits

Author SHA1 Message Date
44a86232af Added Jenkin's hash functions in C++ form
- not much speed difference between SuperFastHash and Jenkin's lookup3 but
  both are 5-10% faster than what is currently implemented in Foam::string,
  albeit inlining probably helps there.

- TODO: integration with existing infrastructure
2009-03-02 19:57:17 +01:00
f83e4cbd98 reorganized locations of some primitives 2009-02-27 17:46:43 +01:00
106d417de0 StaticAssert added
- catch people using silly template sizes for FixedList, PackedList
2009-02-27 16:41:51 +01:00
dbc9b7427a PackedList iterator bugfix
- compare iteratorBase == iteratorBase by value, not position
  thus this works
      list[a] == list[b] ...

- compare iterator == iteratorBase and const_iterator == iteratorBase
  by position, not value. The inheritance rules means that this works:
      iter == list.end() ...
  this will compare positions:
      iter == list[5];
  Of course, this will still compare values:
      *iter == list[5];
2009-02-27 13:43:43 +01:00
576d9388f0 Preliminary work on hashing
- Hash returns unsigned
- FixedList templated on unsigned int
- include uLabel.H in UList, HashTable etc. so the output function is know
  throughout
2009-02-27 12:40:37 +01:00
a46c85f5a4 HashTable changes
- make table power-of-two, but since it seems to give 1-2% performance
  improvement, maybe forget it too.

- remove two-argument form of hashing classes and do the modulus direclty
  within HashTable instead. This simplifies things a fair bit.

- migrate Hash<void*> from db/dlLibrary to primitives/hashes/Hash
2009-02-26 17:49:47 +01:00
2aeee852e8 PackedList bugfix, HashTable tweak
- it was possible to create a PackedList::iterator from a
  PackedList::const_iterator and violate const-ness

- added HashTable::printInfo for emitting some information

- changed default table sizes from 100 -> 128 in preparation for future
  2^n table sizes
2009-02-26 15:32:47 +01:00
e562aecb73 HashTable performance: find(), found() check nElmts_ instead of tableSize_
- much better performance on empty tables (4-6x speedup), neutral
  performance change on filled tables. Since tableSize_ is non-zero when
  nElmts_ is, there is no modulus zero problem.
2009-02-25 18:58:48 +01:00
9c8432a002 regIOobject: make checkIn(), checkOut() return bool 2009-02-25 11:17:06 +01:00
507ad1e643 Merge commit 'OpenCFD/master' into olesenm 2009-02-25 10:50:26 +01:00
bb804cc36a Bug-fix in the dimensionedScalar argument list
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/11287
2009-02-25 10:47:43 +01:00
2b58eb6208 Allow SubField construct from UList w/o extra size specification
- this allows SubField<point> for unallocated storage in PrimitivePatch
2009-02-25 10:35:10 +01:00
c49b302aa3 added solutionD and geometricD 2009-02-24 19:20:55 +00:00
c8944ce200 iso surface correction 2009-02-24 13:45:57 +00:00
5a30dd1b01 iso surface 2009-02-24 12:09:17 +00:00
ab49c60394 instance searching 2009-02-24 12:08:54 +00:00
364e8e001d reintroduce comments 2009-02-24 12:07:50 +00:00
78b10babac collection 2009-02-24 12:07:06 +00:00
2d81360722 removed instance searching 2009-02-24 12:06:28 +00:00
af8a42067c collapse cell detection 2009-02-24 12:05:35 +00:00
4b623e594c wildcards in dictionary 2009-02-20 16:47:33 +00:00
a1525f016a extrapolate to any non-constraint patch 2009-02-20 16:47:09 +00:00
ef8ac6ff9e message change 2009-02-19 22:41:23 +00:00
5c97cd1d39 added comment 2009-02-19 13:08:07 +00:00
b1fe3cc51a processorFvPatchField now holds opposite value; not interpolate 2009-02-19 11:15:32 +00:00
5e2a16d047 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-18 18:17:14 +00:00
181f252245 updates 2009-02-18 18:05:54 +00:00
3c5afbfcac Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-18 17:08:00 +00:00
0e2f77b170 iso surface on coupled bc 2009-02-18 17:05:56 +00:00
0781a2f387 correcting use of totalPressure BC
- still not consistent for pd as does not include buoyancy effects
2009-02-18 16:13:32 +00:00
a40999c586 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-18 12:30:33 +00:00
dee5fee4db tutorial updates 2009-02-18 12:29:22 +00:00
c2c0c66fd2 typo 2009-02-18 11:15:47 +00:00
4b60453cf1 use while (runTime.loop() { .. } where possible in solvers
- change system/controlDict to use functions {..} instead of functions (..);
  * This is internally more efficient
- fixed formatting of system/controlDict functions entry

- pedantic change: use 'return 0' instead of 'return(0)' in the applications,
  since return is a C/C++ keyword, not a function.
2009-02-18 08:57:10 +01:00
8b5457a829 Bug fix for the change in directory structure. 2009-02-17 22:01:40 +00: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
fcd4e88e0e Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-17 17:07:16 +00:00
17b2e50e9c Added shallowWaterFoam solver and tutorial case. 2009-02-17 17:07:09 +00:00
19aa23d707 Merge commit 'OpenCFD/master' into olesenm 2009-02-17 16:35:00 +01:00
663e9b7abf start simplification of fieldAverage
- track previous time index and to avoid recalculating averages.
- make sure averages are up-to-date before calling write
2009-02-17 16:21:41 +01:00
c799fb0014 renamed to be consistent with new solver naming convention 2009-02-17 12:27:38 +00:00
a5ab4126d8 renamed to be consistent with new solver naming convention 2009-02-17 12:09:27 +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
c2256e51f3 change solvers, utilities, etc. to use while (..) time-looping idiom
- this (now deprecated) idiom:
      for (runTime++; !runTime.end(); runTime++) { ... }
  has a few problems:
    * stop-on-next-write will be off-by-one (ie, doesn't work)
    * function objects are not executed on exit with runTime.end()
  Fixing these problems is not really possible.

- this idiom
      while (runTime.run())
      {
          runTime++;
          ...
      }
  works without the above problems.
2009-02-17 08:47:42 +01:00
5e34369a32 using IOobjects for reading 2009-02-16 18:55:28 +00:00
ef537003c6 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-16 13:12:21 +00:00
2002e46bb6 housekeeping 2009-02-16 11:32:34 +00:00
80b6624d43 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-16 11:03:51 +00:00
c64902ea74 Use gSum rather than sum for parallel running. 2009-02-15 21:45:13 +00:00
8a474e2de1 Corrected typo. 2009-02-15 21:44:44 +00:00