Skip to content

Commit

Permalink
checking
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Jan 15, 2024
1 parent b3e2188 commit 3d5f17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/pestpp_common/MOEA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ void MOEA::message(int level, const string& _message, T extra)
void MOEA::throw_moea_error(const string& message)
{
performance_log->log_event("MOEA error: " + message);
cout << endl << " ************ " << endl << " MOEAerror: " << message << endl << endl;
cout << endl << " ************ " << endl << " MOEA error: " << message << endl << endl;
file_manager.rec_ofstream() << endl << " ************ " << endl << " MOEA error: " << message << endl << endl;
file_manager.close_file("rec");
performance_log->~PerformanceLog();
Expand Down Expand Up @@ -2629,7 +2629,7 @@ pair<Parameters, Observations> MOEA::get_optimal_solution(ParameterEnsemble& _dp
for (int i = 0; i < _dp.shape().first; i++)
{
//dist = dp_mean.dot(_dp.get_eigen_ptr()->row(i));
dist = (dp_mean - _dp.get_eigen_ptr()->row(i).transpose()).squaredNorm();
dist = (dp_mean - _dp.get_eigen_ptr()->row(i).transpose()).squaredNorm();
if (dist < dist_min)
{
idx_min = i;
Expand Down

0 comments on commit 3d5f17d

Please sign in to comment.