Directory Core/Geometry/

Total Files:
2
Deleted Files:
0
Lines of Code:
308

[root]/Core/Geometry

Lines of Code

Core/Geometry/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 5 (100.0%) 12 (100.0%) 2.4
harman 3 (60.0%) 11 (91.7%) 3.6
jas 2 (40.0%) 1 (8.3%) 0.5

Most Recent Commits

jas 2011-08-31 02:48 Rev.: 47536

Update copyright year.

1 lines of code changed in 2 files:

  • Core/Geometry: share.h (new)
harman 2011-05-18 10:37 Rev.: 47204

roundNearest()
- added cast (int).

0 lines of code changed in 2 files:

  • Core/Geometry: IntVector.h (new)
harman 2011-05-16 10:31 Rev.: 47191


IntVector.h
- added roundNearest(). This will round the Vector v to the nearest integer

Level.cc
findNodeIndexRange(), findCellIndexRange(), findInteriorCellIndexRange()
findInteriorNodeIndexRange()

using roundNearest() on the lowIndex and highIndex.


This change fixes the following bug.
----------------------------------------------------------------
WORKS
<Box label="1">
<lower> [0.00,-0.0, 0.0] </lower>
<upper> [2.4, 0.1, 0.004] </upper>
<extraCells> [1,1,1] </extraCells>
<patches> [8,1,1] </patches>
<resolution> [160,12,1] </resolution>
</Box>

Debugging output:

findCellIndexRange: l [-1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00]
h [1.6100000000000000e+02 1.3000000000000000e+01 2.0000000000000000e+00]
lowIndex [int -1, -1, -1] highIndex [int 161, 13, 2]

----------------------------------------------------------------
NOWORK!
<Box label="1">
<lower> [0.00,-0.001, 0.0] </lower>
^^^^^^ <ONLY DIFFERENCE> <<<<<<<<<<<<<<<<<<<<<<<<,
<upper> [2.4, 0.1, 0.004] </upper>
<extraCells> [1,1,1] </extraCells>
<patches> [8,1,1] </patches>
<resolution> [160,12,1] </resolution>
</Box>


findCellIndexRange: l [-1.0000000000000000e+00 -9.9999999999999978e-01 -1.0000000000000000e+00]
^^^^^^^^^^^^^^^^^^^^^^^???????

h [1.6100000000000000e+02 1.3000000000000000e+01 2.0000000000000000e+00]
lowIndex [int -1, 0, -1] highIndex [int 161, 13, 2]
^^ <<<<<<<<<<<<<This cause all sorts of problems downstream.
----------------------------------------------------------------


**** This should not change the answers *****

11 lines of code changed in 1 file:

  • Core/Geometry: IntVector.h (+11)
Generated by StatSVN 0.4.0