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 |
Update copyright year.
1 lines of code changed in 2 files:
roundNearest()
- added cast (int).
0 lines of code changed in 2 files:
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: