Updating old FEniCS code

Hello,

I’m looking into a couple fenics codes written in older versions (not sure which exact version), I’m trying to update some of the syntax to make the codes work with fenice 2019.1.0. Following are some lines of codes that seem to be outdated:

from dolfin import compile_extension_module

from dolfin import mpi_comm_world

I think you are looking for: compile_cpp_code , see:
https://bitbucket.org/fenics-project/dolfin/src/d29e24d19eab5200a55e43a3e18e1f38214fb5a8/python/test/unit/jit/test_jit.py?at=master#lines-81
dolfin.MPI.comm_world, see:
https://bitbucket.org/fenics-project/dolfin/src/d29e24d19eab5200a55e43a3e18e1f38214fb5a8/python/test/unit/common/test_mpi.py?at=master#lines-33
A list of most (but not all changes) can be found at: Bitbucket

2 Likes