On Nov 13, 2013, at 6:53 PM, John Peterson wrote:

> 
> 
> 
> On Wed, Nov 13, 2013 at 10:41 AM, Jed Brown <jedbr...@mcs.anl.gov> wrote:
> John Peterson <jwpeter...@gmail.com> writes:
> > I saw it, but I don't know exactly how to fix the problem and haven't had a
> > chance to dig into it.  Maybe Dmitry will comment.
> 
> Totally untested, but I think this is all you need:
> 
> diff --git i/src/solvers/petscdmlibmesh.C w/src/solvers/petscdmlibmesh.C
> index 09dc324..c36ff06 100644
> --- i/src/solvers/petscdmlibmesh.C
> +++ w/src/solvers/petscdmlibmesh.C
> @@ -934,7 +934,11 @@ static PetscErrorCode DMCreateGlobalVector_libMesh(DM 
> dm, Vec *x)
> 
>  #undef __FUNCT__
>  #define __FUNCT__ "DMCreateMatrix_libMesh"
> +#if PETSC_VERSION_LT(3,5,0)
>  static PetscErrorCode DMCreateMatrix_libMesh(DM dm, const MatType, Mat *A)
> +#else
> +static PetscErrorCode DMCreateMatrix_libMesh(DM dm, Mat *A)
> +#endif
>  {
>    PetscFunctionBegin;
>    PetscErrorCode ierr;
> 
> Thanks for this Jed.  Hui, if you could give this patch a try (I just copied 
> it from the email and ran git apply) and confirm libmesh compiles for you, 
> I'll push it.

I have been trying something similar.  I use the new interface 'static 
PetscErrorCode DMCreateMatrix_libMesh(DM dm, Mat *A)' and 'make' has passed the 
file.
I have a question to use the patch, the petsc version number was (3,4,3) for 
PETSC_VERSION_GIT "a61ea2a881f906cd3f3ff3c8a0af27e23148237c" on my mac. Has it 
been changed now?

> 
> -- 
> John


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to