Browse Source

test/lscm: fix wrong assertion (#1889)

Kenshi Takayama 3 years ago
parent
commit
fc42e420cd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/include/igl/lscm.cpp

+ 1 - 0
tests/include/igl/lscm.cpp

@@ -16,6 +16,7 @@ double compute_lscm_energy(
 
   assert(V.cols() == 3);
   assert(F.cols() == 3);
+  assert(W_flat.size() == V.rows() * 2);
 
   // Compute gradient
   Eigen::SparseMatrix<double> G;