@@ -40,7 +40,7 @@ double Potential<TCollisions>::operator()(
4040 Eigen::ConstRef<Eigen::MatrixXd> X) const
4141{
4242 assert (X.rows () == mesh.num_vertices ());
43- IPC_TOOLKIT_PROFILE_BLOCK (this -> name () + " ::operator()" );
43+ IPC_TOOLKIT_PROFILE_BLOCK (" Potential<T> ::operator()" );
4444
4545 return tbb::parallel_reduce (
4646 tbb::blocked_range<size_t >(size_t (0 ), collisions.size ()), 0.0 ,
@@ -63,7 +63,7 @@ Eigen::VectorXd Potential<TCollisions>::gradient(
6363 Eigen::ConstRef<Eigen::MatrixXd> X) const
6464{
6565 assert (X.rows () == mesh.num_vertices ());
66- IPC_TOOLKIT_PROFILE_BLOCK (this -> name () + " ::gradient()" );
66+ IPC_TOOLKIT_PROFILE_BLOCK (" Potential<T> ::gradient()" );
6767
6868 if (collisions.empty ()) {
6969 return Eigen::VectorXd::Zero (X.size ());
@@ -74,7 +74,7 @@ Eigen::VectorXd Potential<TCollisions>::gradient(
7474 tbb::combinable<Eigen::VectorXd> grad (Eigen::VectorXd::Zero (X.size ()));
7575
7676 {
77- IPC_TOOLKIT_PROFILE_BLOCK (" compute local gradients " );
77+ IPC_TOOLKIT_PROFILE_BLOCK (" Compute Local Gradients " );
7878 tbb::parallel_for (size_t (0 ), collisions.size (), [&](size_t i) {
7979 const TCollision& collision = collisions[i];
8080
@@ -88,7 +88,7 @@ Eigen::VectorXd Potential<TCollisions>::gradient(
8888 }
8989
9090 {
91- IPC_TOOLKIT_PROFILE_BLOCK (" combine local gradients " );
91+ IPC_TOOLKIT_PROFILE_BLOCK (" Combine Local Gradients " );
9292 return grad.combine ([](const Eigen::VectorXd& a,
9393 const Eigen::VectorXd& b) { return a + b; });
9494 }
@@ -102,7 +102,7 @@ Eigen::SparseMatrix<double> Potential<TCollisions>::hessian(
102102 const PSDProjectionMethod project_hessian_to_psd) const
103103{
104104 assert (X.rows () == mesh.num_vertices ());
105- IPC_TOOLKIT_PROFILE_BLOCK (this -> name () + " ::hessian ()" );
105+ IPC_TOOLKIT_PROFILE_BLOCK (" Potential<T>::gradient ()" );
106106
107107 if (collisions.empty ()) {
108108 return Eigen::SparseMatrix<double >(X.size (), X.size ());
@@ -129,15 +129,15 @@ Eigen::SparseMatrix<double> Potential<TCollisions>::hessian(
129129
130130 MatrixMaxNd local_hess;
131131 {
132- IPC_TOOLKIT_PROFILE_BLOCK (" compute local hessian " );
132+ IPC_TOOLKIT_PROFILE_BLOCK (" Compute Local Hessian " );
133133 local_hess = this ->hessian (
134134 collision, collision.dof (X, edges, faces),
135135 project_hessian_to_psd);
136136 }
137137
138138 {
139139 IPC_TOOLKIT_PROFILE_BLOCK (
140- " map local hessian to global triplets " );
140+ " Map Local Hessian to Global Triplets " );
141141 local_hessian_to_global_triplets (
142142 local_hess, collision.vertex_ids (edges, faces), dim,
143143 *(hess_triplets.cache ), mesh.num_vertices ());
@@ -152,7 +152,7 @@ Eigen::SparseMatrix<double> Potential<TCollisions>::hessian(
152152 // storage
153153
154154 {
155- IPC_TOOLKIT_PROFILE_BLOCK (" prune local storages " );
155+ IPC_TOOLKIT_PROFILE_BLOCK (" Prune Local Storages " );
156156 tbb::parallel_for_each (
157157 storage.begin (), storage.end (),
158158 [](const auto & local_storage) { local_storage.cache ->prune (); });
@@ -188,13 +188,13 @@ Eigen::SparseMatrix<double> Potential<TCollisions>::hessian(
188188
189189 // Allocate triplets
190190 {
191- IPC_TOOLKIT_PROFILE_BLOCK (" allocate triplets " );
191+ IPC_TOOLKIT_PROFILE_BLOCK (" Allocate Triplets " );
192192 triplets.resize (triplet_count);
193193 }
194194
195195 // Parallel copy into triplets
196196 {
197- IPC_TOOLKIT_PROFILE_BLOCK (" parallel copy into triplets " );
197+ IPC_TOOLKIT_PROFILE_BLOCK (" Parallel Copy into Triplets " );
198198 tbb::parallel_for (size_t (0 ), storage.size (), [&](size_t i) {
199199 const SparseMatrixCache& cache =
200200 dynamic_cast <const SparseMatrixCache&>(
@@ -214,7 +214,7 @@ Eigen::SparseMatrix<double> Potential<TCollisions>::hessian(
214214
215215 // Sort and assemble
216216 {
217- IPC_TOOLKIT_PROFILE_BLOCK (" assemble hessian from triplets " );
217+ IPC_TOOLKIT_PROFILE_BLOCK (" Assemble Hessian from Triplets " );
218218 hess.setFromTriplets (triplets.begin (), triplets.end ());
219219 }
220220
0 commit comments