Skip to content

Commit fafd240

Browse files
author
yongzhongli
committed
Reduce verbose logging during adaptive sampling tests
1 parent ac43c3f commit fafd240

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MGF.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void MGF::UpdateRhoNodes()
317317
double z_test = lm.z_nodes[0][0];
318318
double z_src = lm.z_nodes[0][0];
319319

320-
std::cout << "===========================Iteration on the test rho nodes===========================" << std::endl;
320+
//std::cout << "===========================Iteration on the test rho nodes===========================" << std::endl;
321321
for (int ii = 0; ii < rho_test_nodes.size(); ii++) {
322322

323323
double rho_test = rho_test_nodes[ii];
@@ -388,11 +388,11 @@ bool MGF::IsMidpointCorrect(double rho, double z_src, double z_test, double adap
388388
std::fill(_G_integ.begin(), _G_integ.end(), 0.0);
389389
std::fill(_G_interp.begin(), _G_interp.end(), 0.0);
390390

391-
std::cout << "===========================ComputeMGF_Integration===========================" << std::endl;
391+
//std::cout << "===========================ComputeMGF_Integration===========================" << std::endl;
392392

393393
ComputeMGF_Integration(rho, z_test, z_src, _G_integ);
394394

395-
std::cout << "===========================ComputeMGF_Interpolation_withZ===========================" << std::endl;
395+
//std::cout << "===========================ComputeMGF_Interpolation_withZ===========================" << std::endl;
396396

397397
ComputeMGF_Interpolation_withZ(rho, z_test, z_src, _G_interp, MGF_table, s.components);
398398

@@ -408,9 +408,9 @@ bool MGF::IsMidpointCorrect(double rho, double z_src, double z_test, double adap
408408
double rmse_mean = std::accumulate(rmse.begin(),rmse.end(),0.0) / rmse.size();
409409

410410
if (test_rho)
411-
std::cout << "The RMSE for interpolation point at rho = " << rho << " is " << rmse_mean << std::endl;
411+
std::cout << "The RMSE of the interpolated MGF at rho = " << rho << " is " << rmse_mean << std::endl;
412412
else
413-
std::cout << "The RMSE for interpolation point at z = " << z_test << " is " << rmse_mean << std::endl;
413+
std::cout << "The RMSE of the interpolated MGF at z = " << z_test << " is " << rmse_mean << std::endl;
414414
if (rmse_mean > adaptive_threshold)
415415
{
416416
return false;

0 commit comments

Comments
 (0)