Run 'make' in the firedrake source directory.
From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Colin Cotter <colin.cotter@imperial.ac.uk>
Sent: 31 July 2018 18:01:44
To: firedrake
Subject: [firedrake] complex?
 
Dear FD,
 Upon running the following code:

from firedrake import *
n = 20
mesh = UnitSquareMesh(n,n)
V = FunctionSpace(mesh,"CG",1)

I get the message at the bottom of this email. Does this mean I have incorrectly built a complex branch?

(I built it by running the install script from the jenkinsfile in the complex branch, then changing to the complex branch.)

all the best
--cjc

Traceback (most recent call last):
  File "complex_helmholtz.py", line 4, in <module>
    V = FunctionSpace(mesh,"CG",1)
  File "<decorator-gen-530>", line 2, in FunctionSpace
  File "/home/cjc1/firedrake-complex/firedrake/src/PyOP2/pyop2/profiling.py", line 60, in wrapper
    return f(*args, **kwargs)
  File "/home/cjc1/firedrake-complex/firedrake/src/firedrake/firedrake/functionspace.py", line 118, in FunctionSpace
    element = make_scalar_element(mesh, family, degree, vfamily, vdegree)
  File "/home/cjc1/firedrake-complex/firedrake/src/firedrake/firedrake/functionspace.py", line 40, in make_scalar_element
    mesh.init()
  File "/home/cjc1/firedrake-complex/firedrake/src/firedrake/firedrake/mesh.py", line 993, in init
    self._callback(self)
  File "/home/cjc1/firedrake-complex/firedrake/src/firedrake/firedrake/mesh.py", line 1335, in callback
    (self.num_vertices(), geometric_dim))
  File "firedrake/dmplex.pyx", line 851, in firedrake.dmplex.reordered_coords
ValueError: Buffer dtype mismatch, expected 'PetscReal' but got 'complex double'

--
Colin Cotter
Department of Mathematics
Imperial College London

I don’t expect a reply to this email from you outside of your normal working hours.