Parallell distribution of Real function space vector
Hi, I'm trying to fix an issue which involves evaluating a Real function in parallell. This can be done by just picking values from the vector, but who owns these dofs? Everyone? Can I just use get_local or should I use gather? And should any of these work from python? I'm getting signature errors from the swig layers in both attempts here:
def test_real_
import numpy
c = Function(R)
values = numpy.zeros(1, dtype='d')
vec = c.vector()
# Gather value directly from vector in a parallell safe way
indices = numpy.zeros(1, dtype='i')
This gives:
TypeError: in method 'GenericVector_
def test_real_
import numpy
c = Function(R)
values = numpy.zeros(1, dtype='d')
vec = c.vector()
# Get value directly from local vector
This gives:
NotImplementedE
Possible C/C++ prototypes are:
dolfin:
dolfin:
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Sandve Alnæs
- Solved:
- Last query:
- Last reply: