← Back to team overview

dolfin team mailing list archive

Strange assertions in Function constructors

 

Why are there two different assertions on the vector size on the
Function constructors:

  assert(V->dofmap().global_dimension() == x.size());
  assert(V->dofmap().global_dimension() <= x->size());

Is this a typo? I hope so. Otherwise it's strange that the behavior
should be different depending on whether x is a pointer or reference.

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups