|
[Sponsors] |
May 30, 2011, 10:20 |
Error search
|
#1 | ||
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 16 |
Hello all,
on one hand I have following fields (in createFields:H): Code:
int xN2Points; int hPoints; Field <scalar> xN2Table(xN2Points,scalar(0.0)); Field <scalar> hTable(hPoints,scalar(0.0)); Field <scalarField> rhoTable(hPoints,scalarField(xN2Points,scalar(0.0))); volScalarField xN2; volScalarField h; volScalarField rho; Code:
void bilinInterp(Field<scalar> &X1, Field<scalar> &X2, Field<scalarField> &Y, volScalarField& X1i, volScalarField& X2i, volScalarField& Yi) Code:
bilinInterp(&xN2Table, &hTable, &rhoTable, &xN2, &h, &rho); Quote:
Quote:
|
|||
May 30, 2011, 12:53 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
You are passing by reference. Try getting rid of the "&" characters in the function call... but leave them in the prototype.
Code:
bilinInterp(xN2Table, hTable, rhoTable, xN2, h, rho); |
|
June 1, 2011, 06:53 |
|
#3 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 16 |
Thanks David.
|
|
|
|