Hi All,
I have a script hydro.py, which I am running with the command mpiexec -n 4 python hydro.py but it raises the following error.
raise ValueError("Objects are not all equal.")
ValueError: Objects are not all equal.
raise ValueError("Objects are not all equal.")
raise ValueError("Objects are not all equal.")
raise ValueError("Objects are not all equal.")
ValueError: Objects are not all equal.
ValueError: Objects are not all equal.
ValueError: Objects are not all equal.
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[45628,1],0]
Exit code: 1
I'm not sure why thats happening. For reference I have copied here the hydro script as well.
# Import Statements
import numpy as np
import matplotlib.pyplot as plt
import h5py
from mpi4py import MPI
import time
from dedalus import public as de
from dedalus.extras import flow_tools
import logging
logger = logging.getLogger(__name__)
Lx, Ly = (2., 2.)
nx, ny = (128, 128)
# Create bases and domain
x_basis = de.Fourier('x', nx, interval=(-Lx/2, Lx/2), dealias=3/2)
y_basis = de.Fourier('y', ny, interval=(-Ly/2, Ly/2), dealias=3/2)
domain = de.Domain([x_basis, y_basis], grid_dtype=np.float64)
viscosity = 0
problem = de.IVP(domain, variables=['omega','psi', 'u', 'v'])
problem.parameters['nu'] = viscosity
problem.add_equation("dt(omega) -nu*dx(dx(omega)) - nu*dy(dy(omega))= dy(omega)*dx(psi) - dx(omega)*dy(psi) "\
)
problem.add_equation("-omega-dx(dx(psi)) - dy(dy(psi)) = 0", condition="(nx != 0) or (ny != 0)")
problem.add_equation("psi= 0", condition="(nx == 0) and (ny == 0)")
problem.add_equation("u + dy(psi)=0")
problem.add_equation("v - dx(psi) = 0")
# Build solver
ts = de.timesteppers.RK443
solver = problem.build_solver(ts)
# State variables
x = domain.grid(0)
y = domain.grid(1)
omega = solver.state['omega']
psi = solver.state['psi']
u = solver.state['u']
v = solver.state['v']
# Intializing sigma and mu
sigma = 1
mu1 = 0.25
mu2=-0.25
# Initializing Gaussian monopoles on omega
dst1 = (x-mu1)**2 + (y)**2
dst2 = (x-mu2)**2 + (y)**2
omega['g'] = np.exp(-(dst1/(sigma**2 /20))) + np.exp(-(dst2 / (sigma**2 /20)))
solver.stop_sim_time = 60.01
solver.stop_wall_time = np.inf
solver.stop_iteration = np.inf
dt = 0.01
x = domain.grid(0,scales=domain.dealias)
y = domain.grid(1,scales=domain.dealias)
start_time = time.time()
t = 0
while solver.ok:
solver.step(dt)
t = t+dt
end_time = time.time()
Thanks,
Ish
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/a9ba1d53-088b-4256-ae79-e5596b37c3d3n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Dedalus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dedalus-users/3JGGt-gCICU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/32046F0C-8B60-4A70-92D5-2ADDEB190653%40northwestern.edu.

To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAGcFrHFJPQPuJ7VRbEurWMKM7hHnJR3QFZnwos%2BXDA31ujxVaw%40mail.gmail.com.
<hydro.py>
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/5a83bd42-27a5-463e-ba54-bc57b28eb05dn%40googlegroups.com.
2022-06-22 13:29:39,450 pencil 0/2 INFO :: Building pencil matrix 1/32 (~3%) Elapsed: 0s, Remaining: 1s, Rate: 3.7e+01/s
2022-06-22 13:29:39,525 pencil 0/2 INFO :: Building pencil matrix 4/32 (~12%) Elapsed: 0s, Remaining: 1s, Rate: 3.9e+01/s
2022-06-22 13:29:39,626 pencil 0/2 INFO :: Building pencil matrix 8/32 (~25%) Elapsed: 0s, Remaining: 1s, Rate: 3.9e+01/s
2022-06-22 13:29:39,725 pencil 0/2 INFO :: Building pencil matrix 12/32 (~38%) Elapsed: 0s, Remaining: 1s, Rate: 4.0e+01/s
2022-06-22 13:29:39,824 pencil 0/2 INFO :: Building pencil matrix 16/32 (~50%) Elapsed: 0s, Remaining: 0s, Rate: 4.0e+01/s
2022-06-22 13:29:39,923 pencil 0/2 INFO :: Building pencil matrix 20/32 (~62%) Elapsed: 0s, Remaining: 0s, Rate: 4.0e+01/s
2022-06-22 13:29:40,020 pencil 0/2 INFO :: Building pencil matrix 24/32 (~75%) Elapsed: 1s, Remaining: 0s, Rate: 4.0e+01/s
2022-06-22 13:29:40,119 pencil 0/2 INFO :: Building pencil matrix 28/32 (~88%) Elapsed: 1s, Remaining: 0s, Rate: 4.0e+01/s
2022-06-22 13:29:40,217 pencil 0/2 INFO :: Building pencil matrix 32/32 (~100%) Elapsed: 1s, Remaining: 0s, Rate: 4.0e+01/s
Traceback (most recent call last):
File "hydro.py", line 85, in <module>
solver.step(dt)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/solvers.py", line 518, in step
path.increment(self.state.fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/distributor.py", line 441, in increment
self.increment_group(*fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/distributor.py", line 490, in increment_group
scales = unify(field.scales for field in fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/tools/general.py", line 74, in unify
raise ValueError("Objects are not all equal.")
ValueError: Objects are not all equal.
Traceback (most recent call last):
File "hydro.py", line 85, in <module>
solver.step(dt)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/solvers.py", line 518, in step
path.increment(self.state.fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/distributor.py", line 441, in increment
self.increment_group(*fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/core/distributor.py", line 490, in increment_group
scales = unify(field.scales for field in fields)
File "/home/ikaul/.conda/envs/dedalus/lib/python3.8/site-packages/dedalus/tools/general.py", line 74, in unify
raise ValueError("Objects are not all equal.")
ValueError: Objects are not all equal.
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[25990,1],1]
Exit code: 1
--------------------------------------------------------------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/dd1d9d03-5acb-4c8d-92b3-1ef3b9b8a876n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAGcFrHEpsAvoYC7SdbifGhqga%2B2vCu_cGnap2vuFK7zUmORnjQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/7953EF2F-8361-46D3-B2D1-57C05C7181C2%40northwestern.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CADZXxBhOf4FvZbOrFU7sYq4eEag1uS6p%3DByG1_%2Bj%3DfbMcMsh-A%40mail.gmail.com.