Just to translate this more meaningfully, I think Lawrence at some point implemented an optional argument to pass a path to a C library to link against when compiling a kernel - maybe on a branch, it would be good if this could make it into the trunk version (Ali reports that it isn't).

all the best
--cjc

On 2 March 2016 at 12:28, Gregory, Alastair <a.gregory14@imperial.ac.uk> wrote:

Hi,


I need to feed arguments (a C library) into a kernel that goes into a parallel loop. I have tried using the kernel function in https://github.com/OP2/PyOP2/pull/476 to do,


Kernel(str,args*),


but when I put this into par_loop, I get the error, 'Kernel' object doesn't have 'replace', as Kernel isn't  a string, it's as above.


Does anyone know how I go about placing the Kernel with the extra arguments into par_loop?


Many Thanks,




Alastair Gregory
------------------------------------------------------------------------------------------

Numerical Analysis Research Postgraduate
Imperial College London -
Grantham Institute of Climate Change
Room 759 Huxley Building, South Kensington

(Tel: 07794 243913) | (Email: a.gregory14@imperial.ac.uk)
-------------------------------------------------------------------------------------------



--
http://www.imperial.ac.uk/people/colin.cotter

www.cambridge.org/9781107663916