Skip to content

Commit

Permalink
Fixed an issuse for Reg.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Dec 28, 2023
1 parent eb19ff8 commit 19c8aee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/adjoint/DARegression/DARegression.C
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ DARegression::DARegression(
}

// initialize parameters and give it large values
label nParameters = this->nParameters();
parameters_.setSize(nParameters);
forAll(parameters_, idxI)
if (active_)
{
parameters_[idxI] = 1e16;
label nParameters = this->nParameters();
parameters_.setSize(nParameters);
forAll(parameters_, idxI)
{
parameters_[idxI] = 1e16;
}
}
}

Expand Down

0 comments on commit 19c8aee

Please sign in to comment.