← Back to team overview

dolfin team mailing list archive

set_local in PETScVector

 

Hi,

is the second assert statement in set_local in PETScVector correct?

assert(values.size() == size());

I would expect something more like:

assert(values.size() == local_size);

where local_size is local_range[1] - local_range[0] (pardon the pseudo code).

Ola

-- 
Ola Skavhaug
Research Programmer
Simula Research Laboratory



Follow ups