Browse Source

fixed superfluous printing in bc and critical verbosity in bbw

Former-commit-id: 6d7a6fc7dae5b66eb1518bb0148019f9f3b2c6cf
Alec Jacobson (jalec 11 years ago
parent
commit
a8d8549a32

+ 1 - 0
include/igl/bbw/bbw.cpp

@@ -131,6 +131,7 @@ IGL_INLINE bool igl::bbw(
           }
           if(data.verbosity >= 1)
           {
+#pragma omp critical
             cout<<"BBW: Computing weight for handle "<<i+1<<" out of "<<m<<
               "."<<endl;
           }

+ 7 - 7
include/igl/boundary_conditions.cpp

@@ -56,13 +56,13 @@ IGL_INLINE bool igl::boundary_conditions(
       double sqrd = (vi-pos).array().pow(2).sum();
       if(sqrd <= FLOAT_EPS)
       {
-        cout<<"sum((["<<
-          V(i,0)<<" "<<
-          V(i,1)<<" "<<
-          V(i,2)<<"] - ["<<
-          pos(0)<<" "<<
-          pos(1)<<" "<<
-          pos(2)<<"]).^2) = "<<sqrd<<endl;
+        //cout<<"sum((["<<
+        //  V(i,0)<<" "<<
+        //  V(i,1)<<" "<<
+        //  V(i,2)<<"] - ["<<
+        //  pos(0)<<" "<<
+        //  pos(1)<<" "<<
+        //  pos(2)<<"]).^2) = "<<sqrd<<endl;
         bci.push_back(i);
         bcj.push_back(p);
         bcv.push_back(1.0);

+ 3 - 0
include/igl/matlab/MatlabWorkspace.h

@@ -18,6 +18,9 @@
 
 namespace igl
 {
+  // It would be really great to replicate this for a simple XML-based
+  // workspace.
+  //
   // Class which contains data of a matlab workspace which can be written to a
   // .mat file and loaded from matlab
   //