Commit Graph

3950 Commits

Author SHA1 Message Date
b54f89ac05 PV3Reader - render after toggling show point/patch names 2009-11-03 22:13:48 +01:00
e3b5d373d0 PV3FoamReader bugfix - interpolated point fields had wrong names on the patches 2009-11-03 21:36:50 +01:00
08b74f509f fixes to simpleMatrix ... really need to get a copy from work 2009-11-03 17:33:54 +01:00
d5ffabcd47 HashTbl - extra safety
- don't let automatic resize into integer overflow
- avoid possible overflow in increment()

StaticHashTable - fix erase()/++ as per HashTbl

- might still be worth dropping it, but at least it'll be in better
  condition when it gets chucked!
2009-11-03 17:17:45 +01:00
39159a9231 HashTbl: change allocation of end iterators
- the end iterators and canonicalSize are independent of the templated
  parameters, so move them to HashTblCore

- this avoid allocating separate end iterator at all.

  end(), cend() return a iteratorEnd.
  iterator == iteratorEnd just checks for non-NULL pointer on iterator.
  The compiler should optimize most of it away.
2009-11-03 01:01:59 +01:00
a237b7ce6e HashTbl - iterator/const_iterator implemented in terms of an iteratorBase 2009-11-01 00:54:56 +01:00
3a0c427c7b HashTbl - preparation for using interatorBase 2009-10-31 21:27:52 +01:00
a61c03a6a4 HashTbl: improve efficiency when deleting many keys and in operator==
- fix off by one error in erase/increment code
2009-10-31 00:03:02 +01:00
946aac500a HashTbl changes
- iterators store pointers instead of references to the HashTbl.
  This lets us use the default bitwise copy/assignment

- add empty constructor for iterators. It returns the equivalent to end().
  This lets us do this:
      HashTbl<label>::iterator iter;
      // some time later
      iter = find(Value);

- erase(const HashTbl<AnyType, Key, AnyHash>&) is now more generous.
  Only the Key type matters, not the hashing function.
2009-10-30 22:37:35 +01:00
1fbcb6e2c0 Added HashTbl::shrink() - but it only be useful in particular situations
- for the hashTableTest3, it seemed to slow things down a bit

loop 0 - Erased 100000 elements (size 2900000 capacity 4194304) 0.31 s
loop 1 - Erased 100000 elements (size 2800000 capacity 4194304) 0.01 s
loop 2 - Erased 100000 elements (size 2700000 capacity 4194304) 0 s
loop 3 - Erased 100000 elements (size 2600000 capacity 4194304) 0 s
loop 4 - Erased 100000 elements (size 2500000 capacity 4194304) 0.01 s
loop 5 - Erased 100000 elements (size 2400000 capacity 4194304) 0 s
loop 6 - Erased 100000 elements (size 2300000 capacity 4194304) 0 s
loop 7 - Erased 100000 elements (size 2200000 capacity 4194304) 0 s
loop 8 - Erased 100000 elements (size 2100000 capacity 4194304) 0.01 s
loop 9 - Erased 100000 elements (size 2000000 capacity 4194304) 0.44 s
loop 10 - Erased 100000 elements (size 1900000 capacity 4194304) 0.44 s
loop 11 - Erased 100000 elements (size 1800000 capacity 4194304) 0.39 s
loop 12 - Erased 100000 elements (size 1700000 capacity 4194304) 0.4 s
loop 13 - Erased 100000 elements (size 1600000 capacity 2097152) 0.15 s
loop 14 - Erased 100000 elements (size 1500000 capacity 2097152) 0.01 s
loop 15 - Erased 100000 elements (size 1400000 capacity 2097152) 0 s
loop 16 - Erased 100000 elements (size 1300000 capacity 2097152) 0 s
loop 17 - Erased 100000 elements (size 1200000 capacity 2097152) 0.01 s
loop 18 - Erased 100000 elements (size 1100000 capacity 2097152) 0 s
loop 19 - Erased 100000 elements (size 1000000 capacity 2097152) 0.27 s
loop 20 - Erased 100000 elements (size 900000 capacity 2097152) 0.2 s
loop 21 - Erased 100000 elements (size 800000 capacity 1048576) 0.1 s
loop 22 - Erased 100000 elements (size 700000 capacity 1048576) 0 s
loop 23 - Erased 100000 elements (size 600000 capacity 1048576) 0 s
loop 24 - Erased 100000 elements (size 500000 capacity 1048576) 0.12 s
loop 25 - Erased 100000 elements (size 400000 capacity 524288) 0.04 s
loop 26 - Erased 100000 elements (size 300000 capacity 524288) 0.01 s
loop 27 - Erased 100000 elements (size 200000 capacity 262144) 0.02 s
loop 28 - Erased 100000 elements (size 100000 capacity 131072) 0.02 s
loop 29 - Erased 100000 elements (size 0 capacity 2) 0 s
2009-10-30 19:28:39 +01:00
2c73afb6ec HashTbl avoid backward search in erase()
- The ideas as discussed in email

- The speedup is really there.

Before
loop 0 - Erased 100000 elements:   3.82 s
loop 1 - Erased 100000 elements:   11.45 s
loop 2 - Erased 100000 elements:   19.46 s
loop 3 - Erased 100000 elements:   27.73 s
loop 4 - Erased 100000 elements:   38.74 s
^C

After
loop 0 - Erased 100000 elements (size 2900000 capacity 8388608) 0.01 s
loop 1 - Erased 100000 elements (size 2800000 capacity 8388608) 0 s
loop 2 - Erased 100000 elements (size 2700000 capacity 8388608) 0.01 s
loop 3 - Erased 100000 elements (size 2600000 capacity 8388608) 0 s
loop 4 - Erased 100000 elements (size 2500000 capacity 8388608) 0 s
loop 5 - Erased 100000 elements (size 2400000 capacity 8388608) 0 s
loop 6 - Erased 100000 elements (size 2300000 capacity 8388608) 0 s
loop 7 - Erased 100000 elements (size 2200000 capacity 8388608) 0 s
...
2009-10-30 18:54:51 +01:00
55a89e9db3 added HashTbl as development replacement for HashTable
- rename to HashTable later when it is considered stable
2009-10-30 18:31:28 +01:00
83cee1cb68 First useful Qt modifications to the PV3blockMeshReader, PV3FoamReader
- Show Point Numbers as is_internal="1" and hook directly into a QT-checkbox
  and thus bypass modifying the reader state.

- Same for Cache Mesh and Show Patch Names
2009-10-23 00:33:42 +02:00
3c788010fb Merge commit 'bundle/olesenm' into home 2009-10-19 19:47:45 +02:00
ef350447b1 Merge commit 'OpenCFD/master' into olesenm 2009-10-19 14:21:12 +02:00
ffc9d0d97b find/replace pi/180.0 -> degToRad() and 180.0/pi -> radToDeg()
- note left utilities/mesh/advanced/collapseEdges/collapseEdges.C as-is.
  It looks suspicious, but the change was recent, so maybe it means something
2009-10-19 13:53:25 +02:00
61a577c860 minor cleanup on constants/
- removed/renamed one level of directories, not all constants are dimensioned
    global/dimensionedConstants -> global/constants/
    global/dimensionedConstants/constants/* -> global/constants/

- formatting and doxygen cleanup

- added degToRad() and radToDeg() inline functions (in mathematicalConstants)
  removed equivalent degToRad() from engineTime
2009-10-19 13:00:33 +02:00
1ef88a2aef blockMesh reader fix, start refactoring of PV3Readers
- apply scaleFactor (eg, mm->m) in PV3 reader - this looks better when
  overlaying with other objects

- stop segfault when paraview exits without deleting readers first
2009-10-18 17:50:41 +02:00
c57262c2a0 Cleanup/fixup paraview readers
- remove patch/point text labels upon deletion

- combined client/server plugin instead of separate .so files
  first experiment with adding panel decorations

- directory reorganization
2009-10-18 16:23:41 +02:00
822019bb6a assign pointers to NULL after deletion 2009-10-13 17:43:14 +01:00
a8f7488e0f Merge branch 'olesenm' 2009-10-13 12:39:35 +01:00
2ff47b7909 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-10-12 13:04:02 +01:00
e9da288118 Reverted the Americanism "math" back to the original "mathematical" and reverted name of
the include file back to mathematicalConstants.H to make upgrading code slightly easier.
2009-10-10 22:58:58 +01:00
d416664301 Renamed to a more descriptive and generic name. 2009-10-10 22:56:46 +01:00
08fb4d5833 avoid spurious warnings on rm log.* 2009-10-09 19:46:08 +02:00
680c3272aa extraneous libs 2009-10-09 17:17:09 +01:00
24479b6102 use prfValue 2009-10-09 17:16:37 +01:00
b3624de7a3 named regIOobject for dictionary 2009-10-09 15:11:58 +01:00
9b89dd125c renaming of solidBodyMotionFunctions 2009-10-09 13:45:40 +01:00
4ed11a6c23 renaming of solidBodyMotionFunctions 2009-10-09 13:43:37 +01:00
29f40776ed Fixing bug in faceIntersection where the sign of the distance was
being discarded on return from the triPointRef intersecion test.  Was
only appearing when using FULL_RAY tests.
2009-10-09 10:39:06 +01:00
5ecde8d92e new solidBodyMotionFunctions 2009-10-08 17:55:26 +01:00
f7d9174738 Merge commit 'OpenCFD/master' into olesenm 2009-10-08 16:50:34 +02:00
98c3d099fd new solidBodyMotionFunctions 2009-10-08 15:15:42 +01:00
dfe5fb4aa9 name nut and G 2009-10-08 15:12:33 +01:00
88e0887a47 fix indentation 2009-10-08 15:09:47 +01:00
84be998ebc Merge commit 'OpenCFD/master' into olesenm 2009-10-08 12:07:04 +02:00
5e852915f5 Merge commit 'bundle/home' into olesenm
Conflicts:
	src/autoMesh/autoHexMesh/trackedParticle/trackedParticle.H
	src/mesh/autoMesh/autoHexMesh/trackedParticle/trackedParticle.H
	src/mesh/blockMesh/blockMesh/blockMeshMerge.C
	src/postProcessing/functionObjects/field/streamLine/streamLineParticle.H
2009-10-08 12:03:35 +02:00
c45ea2c4f1 reworked stringListOps to improve the flexibility
- added subsetStrings and inplaceSubsetString

- added class wordReListMatcher to wrap a match() for a UList<wordRe>
2009-10-08 11:32:26 +02:00
33156d98dd blockMesh/curvedEdges misc. cleanup
- also sifted through code to find out why polySplineEdge is going wrong

  It doesn't seem to be a virtual/non-virtual issue, but appears to
  be an issue with how BSpline is solving for the new points.
2009-10-08 01:02:53 +02:00
e003b5207a PV3blockMeshReader - added display of curvedEdges 2009-10-07 22:42:41 +02:00
4bc523b593 added curvedEdges::compare(const edge&) 2009-10-07 21:16:21 +02:00
d2b1861ca3 mpich2 support 2009-10-07 15:08:53 +01:00
ebfe8de6f4 ../etc/settings.csh 2009-10-07 15:08:34 +01:00
86af21c833 radiation fixes 2009-10-06 14:52:20 +01:00
e5b647ed87 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-10-06 14:48:41 +01:00
4f08a18800 moved temperature coupled baffle into compressible 2009-10-06 14:48:31 +01:00
a4d76986c7 radiation fixes 2009-10-06 14:44:05 +01:00
9c1d1dc7b9 skip c++ include for mpi.h 2009-10-06 14:43:42 +01:00
da62572187 ParaView reader for blockMesh
- first version. Only uses simple hex shapes for the blocks.
2009-10-05 23:36:08 +02:00