← Back to team overview

dolfin team mailing list archive

[Question #143155]: assert in SparsityPattern: ... "row_range_max > row_range_min"

 

New question #143155 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/143155

Hi,

I initialize a matrix as the following:
  As = new Matrix();
  GenericSparsityPattern* sparsity_pattern = As->factory().create_pattern();
  std::vector<const GenericDofMap*> dof_maps(0);
  dof_maps.push_back(&dofmap);
  dof_maps.push_back(&dofmap);
  SparsityPatternBuilder::build(*sparsity_pattern, function_space().mesh(),
				dof_maps, false, false);
  assert(sparsity_pattern);

There was no problem until dolfin0.9.9. But it gives assertion error in the latest unstable dofin0.9.9+.

demo: /FEniCS/src/dolfin/dolfin/la/SparsityPattern.cpp:71: virtual void dolfin::SparsityPattern::init(const std::vector<unsigned int, std::allocator<unsigned int> >&, const std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > >&, std::vector<const boost::unordered_map<unsigned int, unsigned int, boost::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<const unsigned int, unsigned int> > >*, std::allocator<const boost::unordered_map<unsigned int, unsigned int, boost::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<const unsigned int, unsigned int> > >*> >): Assertion `row_range_max > row_range_min' failed.

Is something changed related to the sparsity pattern builder recently?

Thank you!
murtazo


-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.