Hello,
I'm working with my code and i figured out that it has problem with the c++ expression defined in it.
class Conductivity : public Expression
{
public:
// Create expression with 4 components
Conductivity() : Expression(4) {}
// Function for evaluating expression on each cell
//void eval(Array& values, const Data& data) const
//void eval(Array& values, const Array& x, const ufc::cell& cell) const
{
const uint D = cell.topological_dimension;
const uint cell_index = cell.entity_indices[D][0];
values[0] = (c00)[cell_index];
values[1] = (c11)[cell_index];
values[2] = (c22)[cell_index];
values[3] = (c33)[cell_index];
}
// The data stored in mesh functions
boost::shared_ptr<MeshFunction > c00;
boost::shared_ptr<MeshFunction > c11;
boost::shared_ptr<MeshFunction > c22;
boost::shared_ptr<MeshFunction > c33;
};
"""
c = Expression(cppcode=conductivity_code)
The error I get reads:
In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/fenics/.instant/error/dolfin_compile_code_12f06d08e034a5c9baf508b1be68a57da59ab1e7/compile.log'
Traceback (most recent call last):
File "GenerateMatrixMarket.py", line 85, in
c = Expression(conductivity_code)
File "/home/fenics/build/lib/python2.7/site-packages/dolfin/functions/expression.py", line 602, in __new__
mpi_comm=mpi_comm)
File "/home/fenics/build/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
mpi_comm=mpi_comm)
File "/home/fenics/build/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
mpi_comm=mpi_comm)
File "/home/fenics/build/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
return local_jit(*args, **kwargs)
File "/home/fenics/build/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 458, in compile_extension_module
**instant_kwargs)
File "/home/fenics/build/lib/python2.7/site-packages/instant/build.py", line 563, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/home/fenics/build/lib/python2.7/site-packages/instant/build.py", line 165, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/home/fenics/build/lib/python2.7/site-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/fenics/.instant/error/dolfin_compile_code_12f06d08e034a5c9baf508b1be68a57da59ab1e7/compile.log'
I've trying to find a solution from other threads but nothing seems to solve my problem.
Thanks in advance for any help.
Cheers