We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i use a swarm like this:
passive_swarm.advection(v_soln.sym, dt)
I get the following error:
AttributeError Traceback (most recent call last) Cell In[15], line 6 2 #passive_swarm.verbose = True 4 for step in range(0, int(2.5[/](http://localhost:8888/dt)[dt](http://localhost:8888/dt))): ----> 6 passive_swarm.advection(v_soln.sym, dt) 7 print(f"{steps:04d} - t = {time:0.4f} - particles {passive_swarm.dm.getLocalSize()}") 9 with passive_swarm.access(passive_swarm.particle_coordinates): File [~/miniforge3/envs/underworld3/lib/python3.12/site-packages/underworld3/timing.py:391](http://localhost:8888/home/violet/miniforge3/envs/underworld3/lib/python3.12/site-packages/underworld3/timing.py#line=390), in routine_timer_decorator.<locals>.timed(*args, **kwargs) 389 _currentDepth -= 1 390 # if we get here, we're not timing, call routine [/](http://localhost:8888/) return result. --> 391 return routine(*args, **kwargs) File [~/miniforge3/envs/underworld3/lib/python3.12/site-packages/underworld3/swarm.py:1636](http://localhost:8888/home/violet/miniforge3/envs/underworld3/lib/python3.12/site-packages/underworld3/swarm.py#line=1635), in Swarm.advection(self, V_fn, delta_t, order, corrector, restore_points_to_domain_func, evalf, step_limit) 1633 else: 1634 substeps = 1 -> 1636 if uw.mpi.rank == 0 and self.verbose: 1637 print(f"Substepping {substeps} [/](http://localhost:8888/) {abs(delta_t) [/](http://localhost:8888/) dt_limit}, {delta_t} ") 1639 # X0 holds the particle location at the start of advection 1640 # This is needed because the particles may be migrated off-proc 1641 # during timestepping. AttributeError: 'Swarm' object has no attribute 'verbose'
It seems the verbose attribute is not present by default.
verbose
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when i use a swarm like this:
I get the following error:
It seems the
verbose
attribute is not present by default.The text was updated successfully, but these errors were encountered: