Commit e10bba62 authored by Martin Marinov's avatar Martin Marinov
Browse files

Replacing an old style std::cerr printout with DEB_error_if()

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 11353]
parent b9c0aff3
......@@ -12,20 +12,25 @@
#include "LinearConstraintHandlerElimination.hh"
#include "LinearConstraintHandlerPenalty.hh"
//#include "LinearConstraintHandlerLagrange.hh"
#include "Base/Debug/DebOut.hh"
DEB_module("COMISO");
//== FORWARDDECLARATIONS ======================================================
//== NAMESPACES ===============================================================
namespace COMISO {
//== CLASS DEFINITION =========================================================
/// Default constructor having a pointer to the main problem
NPLinearConstraintsElimination::NPLinearConstraintsElimination( NProblemGmmInterface* _np) : base_(_np), cache_initialized_(false)
NPLinearConstraintsElimination::NPLinearConstraintsElimination(NProblemGmmInterface* _np)
: base_(_np), cache_initialized_(false)
{
if( !base_) std::cerr << "Warning: initialized NPLinearConstraints with zero pointer...\n";
DEB_enter_func;
DEB_error_if(base_ == nullptr, "initialized NPLinearConstraints with zero pointer");
this->initialize_identity(base_->n_unknowns());
}
......
Supports Markdown
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