Skip to content

Commit

Permalink
Fixed a bug for the RBF regModel
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Apr 7, 2024
1 parent 35e0a4c commit 0fe5c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adjoint/DARegression/DARegression.C
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ label DARegression::compute()
scalar B = 2 * parameters_[dP * i + 2 * j + 1] * parameters_[dP * i + 2 * j + 1];
expCoeff += A / B;
}
outputVal += parameters_[(dP + 1) * i + dP] * exp(-expCoeff);
outputVal += parameters_[dP * i + dP - 1] * exp(-expCoeff);
}

outputField[cellI] = outputScale_ * (outputVal + outputShift_);
Expand Down

0 comments on commit 0fe5c96

Please sign in to comment.