dedalus via conda on Windows' WSL; master branch examples not usable?

202 views
Skip to first unread message

Louis-Alexandre Couston

unread,
Nov 8, 2021, 10:54:40 AM11/8/21
to Dedalus Users
Hey,

I just did a fresh install of dedalus via conda on Windows' WSL (see guidelines attached).

I wanted to do a quick test running the 2d rayleigh_benard.py script (all time favorite haha) from the github repo. Issue is I got a "field not callable" coming from the bc "b(right)=...", which I suppose is a "new" way of writing bcs (I'm still used to the right(b)=...).

It works with an old rayleigh_benard.py script (as shown at the end of attached).

Is the conda version supposed to be able to deal with b(right)?

Best,
Louis
install_dedalus_wsl.docx

Daniel Lecoanet

unread,
Nov 8, 2021, 11:10:45 AM11/8/21
to Dedalus Users
Hi Louis,

I think the latest release (which is why conda installs) uses the old boundary condition formulation. The latest version of the dedalus master branch uses the new boundary condition formulation. So if you update to the latest version, I think you can use b(right).

Hope that makes sense,
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/7ca47c89-1e5c-403a-bce3-9de6c5727c1an%40googlegroups.com.
<install_dedalus_wsl.docx>

Louis-Alexandre Couston

unread,
Nov 8, 2021, 11:35:42 AM11/8/21
to dedalu...@googlegroups.com
Hi Daniel,

Thanks for getting back so quickly.
I tried upgrading dedalus.

In dedalus mode: pip3 install --upgrade dedalus returned all requirements satisfied and did not upgrade.
In conda mode (dedalus not activated) pip3 install --upgrade dedalus failed with attached error.

I am suspecting I should have set the MPI and FFTW paths... however, with the conda install everything should be found in the dedalus environment, right?

I tried again in conda mode:
export FFTW_PATH=/home/louiscouston/anaconda3/envs/dedalus/
export MPI_PATH=/home/louiscouston/anaconda3/envs/dedalus/
pip3 install --upgrade dedalus

but got the same error.

I guess I can stick with the old version, unless someone has a solution.

Best,
Louis



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/sC-TeA9-JwE/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/C28DA9FE-0D47-4DAC-80A4-28F4C8A2EA53%40northwestern.edu.
error.docx

Daniel Lecoanet

unread,
Nov 8, 2021, 11:53:21 AM11/8/21
to Dedalus Users
Hi Louis,

I’m not an expert in pip, so maybe someone else can chime in… but I suspect that pip3 install --upgrade dedalus might only be trying to upgrade to a new release… you’re using the latest release, so it doesn’t do anything. If you’re not in Dedalus mode, conda won’t know about any of the dependencies it needs to install dedalus, so that won’t work either. Normally what I do is pull down a fresh version of dedalus from github, and then install it (in the dedalus conda environment) using “pip3 install -e .” in the fresh dedalus directory.

Daniel

Louis-Alexandre Couston

unread,
Nov 9, 2021, 2:49:00 AM11/9/21
to dedalu...@googlegroups.com
Hey,
awesome, it worked. updated install notes for wsl attached.
cheers,
Louis

install_dedalus_wsl.docx
Reply all
Reply to author
Forward
0 new messages