Commit e2bf2582 authored by David Bommes's avatar David Bommes

fixed zero-size bug

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@96 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 32013e02
......@@ -13,6 +13,7 @@
#include <CoMISo/Config/CoMISoDefines.hh>
#include "NConstraintInterface.hh"
#include <gmm/gmm.h>
//== FORWARDDECLARATIONS ======================================================
......
......@@ -914,7 +914,8 @@ eliminate_constraints(
std::cerr << __FUNCTION__ << " Constraints eliminated " << sw.stop()/1000.0 << std::endl;
sw.start();
// init _new_idx vector
_new_idx.resize( mat_ncols(_constraints));
// _new_idx.resize( gmm::mat_ncols(_constraints));
_new_idx.resize( gmm::mat_ncols(_A)+1);
for( unsigned int i=0; i<_new_idx.size(); ++i)
_new_idx[i] = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment