View Issue Details

IDProjectCategoryView StatusLast Update
0003990OpenFOAMBugpublic2023-06-22 15:08
Reportercgoessni Assigned Tohenry  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0003990: Test-Function1: table integration wrong for outOfBounds repeat?
DescriptionIf I use a simple table dictionary for the Test-Function1

function table ( (0 0) (1 1) );
outOfBounds repeat;
x0 0;
x1 1;
nX 2;

it would output a value of 1 for the integral from 0 to 1, instead of 0.5.
Steps To ReproduceRun Test-Function1 with the attached "table" file

$ Test-Function1 table
TagsNo tags attached.

Activities

cgoessni

2023-06-22 08:50

reporter  

table.dat (53 bytes)   
# x y integralY trapezoidIntegralY
0 0 0 0
1 1 1 0.5
table.dat (53 bytes)   
table (80 bytes)   
function table
(
    (0 0)
    (1 1)
);

outOfBounds repeat;

x0 0;
x1 1;
nX 2;
table (80 bytes)   

henry

2023-06-22 15:08

manager   ~0013057

Resolved by commit 3d95d179ead55a15749fd36b5520075790c4d63f

Issue History

Date Modified Username Field Change
2023-06-22 08:50 cgoessni New Issue
2023-06-22 08:50 cgoessni File Added: table.dat
2023-06-22 08:50 cgoessni File Added: table
2023-06-22 15:08 henry Assigned To => henry
2023-06-22 15:08 henry Status new => resolved
2023-06-22 15:08 henry Resolution open => fixed
2023-06-22 15:08 henry Fixed in Version => dev
2023-06-22 15:08 henry Note Added: 0013057