Skip to content

Commit

Permalink
Fixed a bug for DAReg. (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Jun 18, 2024
1 parent 304957a commit 3492f59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adjoint/DARegression/DARegression.C
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ label DARegression::compute()
// loop over all cells
forAll(features_[modelName][idxI], cellI)
{
counterI = cellI * nCells + idxI;
counterI = cellI * nInputs + idxI;
featuresFlattenArray_[counterI] = features_[modelName][idxI][cellI];
}
}
Expand Down Expand Up @@ -672,10 +672,12 @@ label DARegression::nParameters(word modelName)
else if (modelType_[modelName] == "externalTensorFlow")
{
// do nothing
return 0;
}
else
{
FatalErrorIn("") << "modelType_: " << modelType_[modelName] << " not supported. Options are: neuralNetwork, radialBasisFunction, and externalTensorFlow" << abort(FatalError);
return 0;
}
}

Expand Down

0 comments on commit 3492f59

Please sign in to comment.