You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// std::cout << "max element of v2sigma2_tmp: " << *std::max_element(v2sigma2_tmp.begin(), v2sigma2_tmp.end()) << std::endl;
225
225
// std::cout << "rho corresponding to max element of v2sigma2_tmp: " << rho[(std::max_element(v2sigma2_tmp.begin(), v2sigma2_tmp.end()) - v2sigma2_tmp.begin()) / 6] << std::endl;
226
-
// cut off by sgn
227
-
cutoff_grid_data_spin2(vrho_tmp, sgn);
228
-
cutoff_grid_data_spin2(vsigma_tmp, sgn);
229
-
cutoff_grid_data_spin2(v2rho2_tmp, sgn);
230
-
cutoff_grid_data_spin2(v2rhosigma_tmp, sgn);
231
-
cutoff_grid_data_spin2(v2sigma2_tmp, sgn);
226
+
// cut off by sgn. nspin=2 only: `cutoff_grid_data_spin2` assumes >1 component per
227
+
// grid point (it asserts on it), and at nspin=1 there is exactly one, for which both
228
+
// of its `for_each` ranges are empty -- the cutoff is a no-op anyway.
0 commit comments