Skip to content

Commit

Permalink
Remove log4cxx calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bchretien committed Aug 27, 2016
1 parent c48b931 commit 4c06d6c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/tnlp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ namespace roboptim

if (!values)
{
LOG4CXX_TRACE (logger, "Looking for nonzero elements.");
LOG4CXX_TRACE (logger, "nele_jac = " << nele_jac);

// Emptying iRow/jCol arrays.
std::memset (iRow, 0, static_cast<std::size_t> (nele_jac) * sizeof (Index));
std::memset (jCol, 0, static_cast<std::size_t> (nele_jac) * sizeof (Index));
Expand All @@ -119,11 +116,6 @@ namespace roboptim
it != differentiableConstraints_.end ();
++it, ++constraintId)
{
LOG4CXX_TRACE
(logger,
"Compute jacobian of constraint id = " << constraintId
<< "to count for nonzero elements");

// Using the values already computed in get_nlp_info
const differentiableFunction_t::jacobian_t&
tmp_jac = constraintJacobians_[constraintId];
Expand All @@ -144,24 +136,14 @@ namespace roboptim
(coefficients.begin (), coefficients.end ());
jacobianBuf_->makeCompressed ();

LOG4CXX_TRACE
(logger, "full problem jacobian...\n" << *jacobianBuf_);

// Then look for non-zero values.
LOG4CXX_TRACE (logger, "filling iRow and jCol...");
idx = 0;

for (int k = 0; k < jacobianBuf_->outerSize (); ++k)
for (differentiableFunction_t::jacobian_t::InnerIterator it (*jacobianBuf_, k);
it; ++it)
{
iRow[idx] = it.row (), jCol[idx] = it.col ();
LOG4CXX_TRACE
(logger, "row: " << it.row ()
<< " / col: " << it.col ()
<< " / index: " << it.index ()
<< " / value: " << it.value ()
<< "\nidx: " << idx);
++idx;
}

Expand Down

0 comments on commit 4c06d6c

Please sign in to comment.