Yes, but the assert was triggerd by the global dimension of the function space 
,  not the size of the dofmap on the mesh.

Create the vector with a size equal to the global (processor wise) dimension. 

----- Reply message -----
From: "Pietro Maximoff" <question116...@answers.launchpad.net>
Date: Thu, Jul 1, 2010 15:30
Subject: [Dolfin] [Question #116222]: MPI Problem
To: <dolfin@lists.launchpad.net>

Question #116222 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/116222

    Status: Answered => Open

Pietro Maximoff is still having a problem:
--- On Thu, 7/1/10, Niclas 
Jansson <question116...@answers.launchpad.net> wrote:If I remember correctly, 
Vector v(N) creates a vector of global size
N. but mesh.num_vertices() returns the size of the local mesh.


Niclas

But in this instance,     mesh.num_vertices() == V.dofmap().dofs(mesh).size();
is true;
Pietro

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

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to