Hi Rodrigo,
Argh, sorry. I was rushed earlier. The correct workaround is:
firedrake-update --petsc-int-type int32
I have reduced your code to a 5 line test case which exhibits the issue:
https://github.com/firedrakeproject/firedrake/issues/1523 .
I think we have an assumption somewhere that long == int64_t.
Regards,
David
From:
Rodrigo Piccinini <rbpiccinini@gmail.com>
Date: Tuesday, 22 October 2019 at 14:36
To: "Ham, David A" <david.ham@imperial.ac.uk>
Cc: firedrake <firedrake@imperial.ac.uk>
Subject: Re: [firedrake] Point evaluation
Hi, David.
Thanks for the feedback.
I think the 32bit indices are enough for the problem I'm trying to solve.
If you need more information about my test case, please let me know.
Regards
Em ter, 22 de out de 2019 às 10:04, Ham, David A <david.ham@imperial.ac.uk> escreveu:
I confirm this bug. If you can live with 32bit PETSc integers then a workaround is:
firedrake-update --petsc-int-type int64
Otherwise, I will try to get to the bottom of the issue.
Regards,
David
From: <firedrake-bounces@imperial.ac.uk> on behalf of "Ham, David A" <david.ham@imperial.ac.uk>
Date: Tuesday, 22 October 2019 at 10:29
To: Rodrigo Piccinini <rbpiccinini@gmail.com>, firedrake <firedrake@imperial.ac.uk>
Subject: Re: [firedrake] Point evaluation
Dear Rodrigo,
Thanks for this bug report. It looks like the interpolation code is not safe for the PETSc int64 case. I will look further.
Regards,
David
From: <firedrake-bounces@imperial.ac.uk> on behalf of Rodrigo Piccinini <rbpiccinini@gmail.com>
Date: Tuesday, 22 October 2019 at 01:59
To: firedrake <firedrake@imperial.ac.uk>
Subject: [firedrake] Point evaluation
Hello,
I'm trying to evaluate a Function at a point, but I get the error bellow. Could anybody help me on that?
The log files are attached.
My code can be found here: https://github.com/rbpiccinini/codes/blob/master/eigendrake/spe10_transient.py
CompilationError: Command "['mpicc', '-std=c99', '-fPIC', '-Wall', '-march=native', '-O3', '-ffast-math', '-I/home/piccinini/apps/firedrake/src/firedrake/firedrake', '-I/home/piccinini/apps/firedrake/include', '-I/home/piccinini/apps/firedrake/lib/python3.7/site-packages/petsc/include', '-o', '/home/piccinini/apps/firedrake/.cache/pyop2/0a/2ff88afc9cdab5dd593941b370e84c_p6855.so.tmp', '/home/piccinini/apps/firedrake/.cache/pyop2/0a/2ff88afc9cdab5dd593941b370e84c_p6855.c', '-shared', '-L/home/piccinini/apps/firedrake/lib', '-lspatialindex_c', '-Wl,-rpath,/home/piccinini/apps/firedrake/lib']" return error status 1.
Unable to compile code
Thanks
--
Rodrigo
--
--
Rodrigo