Skip to content

ft07 does not seem to work on Linux #69

Open

Description

@scopatz

I with conda install -c conda-forge fenics jupyterlab matplotlib, I am seeing the following:

$ python ft07_navier_stokes_channel.py                  
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
  File "ft07_navier_stokes_channel.py", line 118, in <module>
    error = np.abs(u_e.vector().array() - u_.vector().array()).max()
AttributeError: 'dolfin.cpp.la.PETScVector' object has no attribute 'array'

Activity

  1. gdmcbain commented on Feb 7, 2020

    @gdmcbain
        error = np.abs(u_e.compute_vertex_values() -
                       u_.compute_vertex_values()).max()

    There's a minimally modifying version of the whole script that works in FEniCS 2019.1.0 at:

    https://github.com/gdmcbain/fenics-tuto-in-skfem/blob/119258655559ab7ac6b563bf75be6923d494d2be/07_navier_stokes_channel/ft07_navier_stokes_channel1.py#L100-L101

  2. scopatz commented on Feb 12, 2020

    @scopatz
    Author

    Thanks. That should probably be in master

  3. gdmcbain commented on Feb 12, 2020

    @gdmcbain

    You're welcome.

    I'm still waiting for the merger of #49 (it'll be a year on Friday fortnight), so I'm not sure of the protocol for getting it into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions