[petsc-dev] IS updates breaking some fortran tests

Dmitry Karpeev karpeev at mcs.anl.gov
Wed Nov 17 16:15:46 CST 2010

I just pushed an IS update that causes problems in some fortran tests.
I'm not sure exactly what's going on, but a failure occurs, for
example, in src/vec/examples/tests/ex1f
in VecValid.  Looked at with a debugger it reveals that 'flg', a
pointer to boolean that is being passed from Fortran
to C, is wiped out and emerges as NULL on the C side (I assume, upon a
cast; since there is no temporary
in vecvalid_ that holds the result of the "cast", I can't really
examine the intermediate value passed to C).

I've been trying to figure this out for a bit, but have come up with
nothing so far (e.g., valgrind runs on ex1f fine).
I'm sure this will show up in the nightly builds, but I figured I'd
push this change, hoping that someone with a
better knowledge of Fortran bindings will help me figure this out.


More information about the petsc-dev mailing list