@@ -858,7 +858,7 @@ int colvar::cvc::debug_gradients_gpu(
858858 // NOTE: this assumes that groups for this cvc are non-overlapping,
859859 // since atom coordinates are modified only within the current group
860860
861- cvm:: log (" Debugging GPU gradients for " + description);
861+ cvmodule-> log (" Debugging GPU gradients for " + description);
862862 colvarproxy *p = cvmodule->proxy ;
863863 cudaStream_t stream = p->get_default_stream ();
864864 error_code |= checkGPUError (cudaStreamSynchronize (stream));
@@ -940,7 +940,7 @@ int colvar::cvc::debug_gradients_gpu(
940940 rot.to_cpu (rot_cpu);
941941 const auto rot_0 = rot_cpu.matrix ();
942942 // fit_gradients are in the simulation frame: we should print them in the rotated frame
943- cvm:: log (" Fit gradients for group " + group->key + " :\n " );
943+ cvmodule-> log (" Fit gradients for group " + group->key + " :\n " );
944944 // Synchronized copy the fit gradients from GPU
945945 cvm::ag_vector_real_t h_fit_gradients (3 * group_for_fit->size ());
946946 error_code |= p->copy_DtoH (
@@ -954,7 +954,7 @@ int colvar::cvc::debug_gradients_gpu(
954954 h_fit_gradients_x[j],
955955 h_fit_gradients_y[j],
956956 h_fit_gradients_z[j]);
957- cvm:: log ((group->fitting_group ? std::string (" fittingGroup" ) : group->key ) +
957+ cvmodule-> log ((group->fitting_group ? std::string (" fittingGroup" ) : group->key ) +
958958 " [" + cvm::to_str (j) + " ] = " +
959959 (group->is_enabled (f_ag_rotate) ?
960960 cvm::to_str (rot_0 * (fit_grad)) :
@@ -963,7 +963,7 @@ int colvar::cvc::debug_gradients_gpu(
963963 }
964964 }
965965
966- cvm:: log (" Gradients for group " + group->key + " :\n " );
966+ cvmodule-> log (" Gradients for group " + group->key + " :\n " );
967967 const auto gradients_x = ag_gradients.at (group)[0 ].begin ();
968968 const auto gradients_y = gradients_x + group->size ();
969969 const auto gradients_z = gradients_y + group->size ();
@@ -1011,7 +1011,7 @@ int colvar::cvc::debug_gradients_gpu(
10111011 cvm::real rel_error = cvm::fabs (num_diff - dx_pred) / (cvm::fabs (num_diff) + cvm::fabs (dx_pred));
10121012 cvmodule->record_gradient_error (rel_error);
10131013
1014- cvm:: log (" Atom " +cvm::to_str (ia) + " , ID " + cvm::to_str (this_atom.id ) + \
1014+ cvmodule-> log (" Atom " +cvm::to_str (ia) + " , ID " + cvm::to_str (this_atom.id ) + \
10151015 " , comp. " + cvm::to_str (id) + " :" + \
10161016 " dx(actual) = " + cvm::to_str (num_diff, 19 , 12 ) + \
10171017 " dx(interp) = " + cvm::to_str (dx_pred, 19 , 12 ) + \
@@ -1075,7 +1075,7 @@ int colvar::cvc::debug_gradients_gpu(
10751075 cvm::real rel_error = cvm::fabs (num_diff - dx_pred) / (cvm::fabs (num_diff) + cvm::fabs (dx_pred));
10761076 cvmodule->record_gradient_error (rel_error);
10771077
1078- cvm:: log (" fittingGroup atom " + cvm::to_str (ia) + " , ID " + cvm::to_str (this_atom.id ) + \
1078+ cvmodule-> log (" fittingGroup atom " + cvm::to_str (ia) + " , ID " + cvm::to_str (this_atom.id ) + \
10791079 " , comp. " + cvm::to_str (id) + " :" + \
10801080 " dx(actual) = " + cvm::to_str (num_diff, 19 , 12 ) + \
10811081 " dx(interp) = " + cvm::to_str (dx_pred, 19 , 12 ) + \
@@ -1084,7 +1084,7 @@ int colvar::cvc::debug_gradients_gpu(
10841084
10851085 }
10861086 }
1087- cvm:: log (" Gradient sum: " + cvm::to_str (gradient_sum) +
1087+ cvmodule-> log (" Gradient sum: " + cvm::to_str (gradient_sum) +
10881088 " Fit gradient sum: " + cvm::to_str (fit_gradient_sum) +
10891089 " Total " + cvm::to_str (gradient_sum + fit_gradient_sum));
10901090 }
0 commit comments