← Back to team overview

dolfin team mailing list archive

Re: [Question #116222]: MPI Problem

 

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" <question116222@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, Jul 1, 2010 15:30
Subject: [Dolfin] [Question #116222]: MPI Problem
To: <dolfin@xxxxxxxxxxxxxxxxxxx>

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 <question116222@xxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Follow ups