Problem with 1D Korteweg-de Vries / Burgers equation.

125 views
Skip to first unread message

rumayel pallock

unread,
Feb 14, 2022, 2:07:54 PM2/14/22
to Dedalus Users
Hi, When I am trying to run the script of 1D Korteweg-de Vries / Burgers equation, I get the following error message,

timestepper = d3.SBDF2
AttributeError: module 'dedalus.public' has no attribute 'SBDF2'

I am new to this. If anybody can help how to solve this problem, it would be really appreciated.

Best,
Rumayel

Daniel Lecoanet

unread,
Feb 14, 2022, 2:14:10 PM2/14/22
to Dedalus Users
Hi,

Sounds like you have not installed the latest d3 version of Dedalus. When you run “pip list”, it should tell you which version of Dedalus you are running. How did you install Dedalus?

Daniel

--
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/0269f3de-dd04-424f-b63b-4275c3b80746n%40googlegroups.com.

rumayel pallock

unread,
Feb 14, 2022, 2:26:33 PM2/14/22
to Dedalus Users

Thanks for the reply. I have installed Dedalus using conda and from "pip list" the version shows 2.2006. I will update from the installation website.

Thanks again,
Rumayel

Sarthak Chandra

unread,
Nov 14, 2022, 4:37:11 PM11/14/22
to Dedalus Users
I seem to still be facing this issue. If I run pip list I seem to have "dedalus 3.0.0a0". However, I still seem to face the " module 'dedalus.public' has no attribute 'SBDF2' " error. Using d3.timesteppers.SBDF2 seems to work though. But then "d3.Coordinate('x') " fails.

For context, I am trying to get dedalus to work on google colab. Here's the script I'm using to set up the installation, maybe something is getting messed up there:

## Check Dedalus isn't already installed
## Installation takes about 1-2 mins

try:
  import dedalus.public as de
  print("Dedalus already installed")
except:
  print("Dedalus not installed yet. Let's do it.")

  # Step 1: Install FFTW
  !apt-get install libfftw3-dev
  !apt-get install libfftw3-mpi-dev

  # Step 2: Set paths for Dedalus installation
  import os
  os.environ['MPI_INCLUDE_PATH'] = "/usr/lib/x86_64-linux-gnu/openmpi/include"
  os.environ['MPI_LIBRARY_PATH'] = "/usr/lib/x86_64-linux-gnu"
  os.environ['FFTW_INCLUDE_PATH'] = "/usr/include"
  os.environ['FFTW_LIBRARY_PATH'] = "/usr/lib/x86_64-linux-gnu"

  # Step 3: Install Dedalus using pip
  !pip3 install dedalus

  # Step 4: Check Dedalus is importable
  print()
  print()
  try:
    import dedalus.public as de
    print("Dedalus successfully installed :)")
  except:
    print("Error installing Dedalus :(")
    raise

! CC=mpicc pip3 install --no-cache http://github.com/dedalusproject/dedalus/zipball/master/
! CC=mpicc pip3 install --upgrade --force-reinstall --no-deps --no-cache http://github.com/dedalusproject/dedalus/zipball/master/
Reply all
Reply to author
Forward
0 new messages