You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running my code in parallel using mpiexec. However, I keep encountering the following error: ValueError: Points to evaluate are inconsistent among processes.
I have tried the following approaches to resolve the issue:
Using If COMM_WORLD.rank == 0:
However, when I include this condition, the program always freezes upon execution, regardless of the subsequent code.
Adjusting the tolerance as suggested in the documentation
Here is the corresponding part of my code:
def polylog(s,u):
'''
usage: given a function u(x), it returns a function f = polylog(s,u(x))
defined in the same finite element space
'''
V = u.function_space()
m = V.mesh()
W = VectorFunctionSpace(m, V.ufl_element())
X = assemble(interpolate(m.coordinates, W))
a = X.dat.data_ro
m.tolerance = 0
eval = [float(np.real(mpmath.polylog(s,float(val)))) for val in u.at(a)]
m.tolerance = 0.1
f = Function(V)
f.dat.data[:] = eval
return f
However, it does not work.
I would appreciate any insights on how to fix this error or better handle the parallel execution in this context.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am running my code in parallel using
mpiexec
. However, I keep encountering the following error:ValueError: Points to evaluate are inconsistent among processes.
I have tried the following approaches to resolve the issue:
If COMM_WORLD.rank == 0:
However, when I include this condition, the program always freezes upon execution, regardless of the subsequent code.
Here is the corresponding part of my code:
However, it does not work.
I would appreciate any insights on how to fix this error or better handle the parallel execution in this context.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions