How to figure out which version of FEniCS I have?

Hello all,

I am trying to ensure that I’ve downloaded the latest version of FEniCS: 2019.1.0 released April, 19th 2019.

I am using Docker to do this since it doesn’t appear to be ready for anaconda.

I followed the docker installation instructions on the main page(https://fenicsproject.org/download/).

curl -s https://get.fenicsproject.org | bash

However, nothing during this installation of FEniCS’s docker image seemed to indicate which version was being downloaded. Is there a simple bash command or even a function I could call inside a script that would verify I’m using FEniCS 2019.1.0?

Thanks in advance for any feedback.

Docker and macOS.

2 Likes

Open the terminal and run this:

dolfin-version

It returns the version of the FEniCS you have.

Alternatively (In the code):

from dolfin import *
print (dolfin.dolfin_version())
3 Likes

"Alternatively (In the code):

from dolfin import *
print (dolfin.dolfin_version())"

The in-code commands didn’t work for me (in Jupyter Notebook).
I came across this implementation that did work:

import dolfin as df
print (df.__version __)

(without the space between “n” and “_”)

I’m just posting this here for completeness.

3 Likes

How do I upgrade this version? Somehow my FEniCS 2019 version tries to work with the Dolfin 2017 version and it fails…

Your question is very general and does not describe what your issue is.

  1. how Did you install FEniCS.
  2. how have you tried to Upgrade FEniCS
  3. What error message do you obtain.