Commit Graph

2234 Commits

Author SHA1 Message Date
Mark Olesen
db8febe9f9 wmakeLnInclude -f now also changes the default linking to 'ln -sf'
- this seems to be the most sensible solution.
  The changed time stamps on the links doesn't seem to bother make at all.
2009-03-04 13:14:11 +01:00
Mark Olesen
1a2bcf7d84 Merge commit 'OpenCFD/master' into olesenm 2009-03-04 12:20:51 +01:00
Mark Olesen
9b8de83ab4 HashTable minor/cosmetic changes 2009-03-04 12:15:01 +01:00
Mark Olesen
17548296be Switched from old hashing functions to use Bob Jenkins' hash routine
- If the underlying type is contiguous, FixedList hashes its storage directly.
- Drop labelPairHash (non-commutative) from fvMeshDistribute since
  FixedList::Hash does the right thing anyhow.
- Hash<edge> specialization is commutative, without multiplication.
- Hash<triFace> specialization kept multiplication (but now uLabel).
  There's not much point optimizing it, since it's not used much anyhow.

Misc. changes

- added StaticAssert to NamedEnum.H
- label.H / uLabel.H : define FOAM_LABEL_MAX, FOAM_ULABEL_MAX with the
  values finally used for the storage.  These can be useful for pre-processor
  checks elsewhere (although I stopped needing them in the meantime).
2009-03-04 10:50:14 +01:00
Mark Olesen
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
henry
b037b0e98d All tags files are now in the .tags directory; ignore it. 2009-03-01 20:39:40 +00:00
henry
f94fd4eb91 Minor format change. 2009-03-01 20:35:19 +00:00
henry
c92fc95a04 Added forward declarations of IO operators, see:
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10948
2009-03-01 20:33:41 +00:00
henry
9446fecf49 Corrected dimension handling in pow functions. 2009-03-01 20:32:41 +00:00
henry
35eac2b9a3 Better tagging support. 2009-03-01 20:31:47 +00:00
Mark Olesen
f83e4cbd98 reorganized locations of some primitives 2009-02-27 17:46:43 +01:00
Mark Olesen
106d417de0 StaticAssert added
- catch people using silly template sizes for FixedList, PackedList
2009-02-27 16:41:51 +01:00
mattijs
cec32d2afe prevent softlinking errors if file exists 2009-02-27 12:54:26 +00:00
mattijs
a15e5f7f05 zone faces derived from cell zone 2009-02-27 12:53:55 +00:00
Mark Olesen
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
mattijs
114fc6a9bd unnecessary linkage 2009-02-27 12:36:21 +00:00
mattijs
afdbf9a553 faceZone derived 2009-02-27 12:33:11 +00:00
Mark Olesen
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
mattijs
f80012000b removed checking since overwrites files 2009-02-27 10:43:18 +00:00
mattijs
bb74c5ae14 sample usage of wildcards 2009-02-26 22:48:30 +00:00
mattijs
e0da094bb3 min distance correction 2009-02-26 22:43:53 +00:00
mattijs
aabf0eff4d comment update 2009-02-26 20:59:36 +00:00
mattijs
b5a13bd87e comment update 2009-02-26 20:59:25 +00:00
mattijs
65baa26a80 mergeDist never set. 2009-02-26 20:14:20 +00:00
mattijs
0d899d924a instance searching 2009-02-26 17:59:12 +00:00
Mark Olesen
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
Mark Olesen
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
mattijs
f644d9d277 handling empty 2009-02-26 09:02:13 +00:00
Mark Olesen
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
Mark Olesen
9c8432a002 regIOobject: make checkIn(), checkOut() return bool 2009-02-25 11:17:06 +01:00
Mark Olesen
507ad1e643 Merge commit 'OpenCFD/master' into olesenm 2009-02-25 10:50:26 +01:00
Mark Olesen
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
Mark Olesen
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
mattijs
c49b302aa3 added solutionD and geometricD 2009-02-24 19:20:55 +00:00
mattijs
c8944ce200 iso surface correction 2009-02-24 13:45:57 +00:00
mattijs
5a30dd1b01 iso surface 2009-02-24 12:09:17 +00:00
mattijs
ab49c60394 instance searching 2009-02-24 12:08:54 +00:00
mattijs
364e8e001d reintroduce comments 2009-02-24 12:07:50 +00:00
mattijs
78b10babac collection 2009-02-24 12:07:06 +00:00
mattijs
2d81360722 removed instance searching 2009-02-24 12:06:28 +00:00
mattijs
af8a42067c collapse cell detection 2009-02-24 12:05:35 +00:00
mattijs
4b623e594c wildcards in dictionary 2009-02-20 16:47:33 +00:00
mattijs
a1525f016a extrapolate to any non-constraint patch 2009-02-20 16:47:09 +00:00
mattijs
ef8ac6ff9e message change 2009-02-19 22:41:23 +00:00
mattijs
5c97cd1d39 added comment 2009-02-19 13:08:07 +00:00
mattijs
b1fe3cc51a processorFvPatchField now holds opposite value; not interpolate 2009-02-19 11:15:32 +00:00
mattijs
5e2a16d047 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-18 18:17:14 +00:00
andy
181f252245 updates 2009-02-18 18:05:54 +00:00
mattijs
3c5afbfcac Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-18 17:08:00 +00:00
mattijs
0e2f77b170 iso surface on coupled bc 2009-02-18 17:05:56 +00:00