On Monday 09 February 2009 12:33:14 Kent Andre wrote:

Nice to see the JIT compile function interface in full action ;)

If you instead for the included set_image use this:

  set_image(int _array_dim_0, int _array_dim_1, double* _array){
        N = _array_dim_0;
        M = _array_dim_1;
        image = _array;
  }

it should trigger an included typemap for 2D numpy arrays, with all checks you 
want to include! 

Disclaimer I have not tested it :)

Johan
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to