Import fenics or dolfin

Hi everyone,

I am new to fenics and have the following question.
What is the difference between “from dolfin import *” and “from fenics import *”?
One would expect that the same classes will be imported or there is a difference?

Thanks

2 Likes

You can check the file associated with a module via

import fenics
print(fenics.__file__)

The contents of the corresponding file is just

# -*- coding: utf-8 -*-
"""Main module for FEniCS.

This module is identical with the main DOLFIN module.
"""

from dolfin import *

So, there is no real difference.

2 Likes

Thanks for the explanation!