[petsc-dev] problem with petscdm.h90

Adrian Croucher a.croucher at auckland.ac.nz
Mon May 19 18:42:14 CDT 2014


On 20/05/14 02:42, Matthew Knepley wrote:
>
> All this stuff has now been fixed in master, and I added a test of 
> ex11 for shallow water that uses
> reconstruction and limiters.

Thanks Matt. I'm still getting one warning when I compile TS ex11 (using 
gcc 4.7.2), on either master or next branch- it doesn't seem to be 
entirely happy with the type of the function passed into 
DMPlexTSSetRHSFunctionLocal():

/home/acro018/software/PETSc/code/src/ts/examples/tutorials/ex11.c: In 
function ‘main’:
/home/acro018/software/PETSc/code/src/ts/examples/tutorials/ex11.c:1515:3: 
warning: passing argument 2 of ‘DMPlexTSSetRHSFunctionLocal
’ from incompatible pointer type [enabled by default]
In file included from 
/home/acro018/software/PETSc/code/src/ts/examples/tutorials/ex11.c:37:0:
/home/acro018/software/PETSc/code/include/petscts.h:342:29: note: 
expected ‘void (*)(const PetscReal *, const PetscReal *, const Petsc
Scalar *, const PetscScalar *, PetscScalar *, void *)’ but argument is 
of type ‘RiemannFunction’

Cheers, Adrian

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 4611

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140520/5fdbff77/attachment.html>


More information about the petsc-dev mailing list