Expression - The module did not compile with command 'make VERBOSE=1'

667 views
Skip to first unread message

ioland...@gmail.com

unread,
Sep 25, 2016, 1:07:27 PM9/25/16
to fenics-support

When I try to create a DirichletBC with an Expression inside it gives me this error:


ua = make_womersley_bcs(Q_coeffs, mesh, 1 , nu, None, boundaries)


inflow = DirichletBC(V, Expression(('x','y','z'),x=ua[0],y=ua[1],z=ua[2]), boundaries,1)


RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1'


I have already completely removed fenics and dolfin and made a new installation, but the problem remains. Can you help?

Thank you!


  Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'make VERBOSE=1',    see '/home/iolanda/.instant/error/dolfin_compile_code_cc10edf94aaeaa3b59c8892774ae8017c6493fac/compile.log'
  Traceback (most recent call last):
 File "womersley.py", line 357, in <module>
   inflow  = DirichletBC(V, Expression(('x','y','z'),x=ua[0],y=ua[1],z=ua[2]), boundaries,1)
 File "/usr/lib/python2.7/dist-packages/dolfin/functions/expression.py", line 602, in __new__
mpi_comm=mpi_comm)
 File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
mpi_comm=mpi_comm)
 File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
mpi_comm=mpi_comm)
 File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
return local_jit(*args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/compilemodule.py", line 458, in compile_extension_module
**instant_kwargs)
 File "/usr/lib/python2.7/dist-packages/instant/build.py", line 563, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
 File "/usr/lib/python2.7/dist-packages/instant/build.py", line 165, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
 File "/usr/lib/python2.7/dist-packages/instant/output.py", line 85, in instant_error
raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/iolanda/.instant/error/dolfin_compile_code_cc10edf94aaeaa3b59c8892774ae8017c6493fac/compile.log'

Martin Sandve Alnæs

unread,
Sep 26, 2016, 4:27:15 AM9/26/16
to ioland...@gmail.com, fenics-support
Take a look at the compile.log file as instructed in the error message.

There you'll find C++ compile errors when accessing 'x', 'y', and 'z'.

You must use x[0], x[1] and x[2] instead in Expressions.

Martin



--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/58ca3fa4-457f-42bd-bfdb-efd9e6882dfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages