Giter Site home page Giter Site logo

Comments (12)

agiordan96 avatar agiordan96 commented on July 22, 2024 1

Thanks for your quick reply!

It is unfortunately necessary... I could use 3.20.2, but I dont know if it fixes the issue. Are you by any chance aware of how long it will take to make libMesh compatible with the new version of petsc?

from libmesh.

agiordan96 avatar agiordan96 commented on July 22, 2024 1

And I guess I should have checked what version I was downloading. I used 1.6.2, as in the IBAMR instructions I am reading that was (literally called) the latest.
Will try with newer version and let you know tomorrow at the latest, thank you all for helping this quickly!

from libmesh.

jwpeterson avatar jwpeterson commented on July 22, 2024 1

Any ideas, other than downgrading petsc to 3.20.2?

Yes, you need to use libmesh master if you want to use that new of a PETSc. The 1.7.1 release it itself also quite old.

from libmesh.

jwpeterson avatar jwpeterson commented on July 22, 2024

This is likely due to using too new a version of PETSc (3.20.3 was tagged Dec 30 2023). If it's not essential for you to use that version, then you can likely fix the problem by using a 3.19.x PETSc...

from libmesh.

lindsayad avatar lindsayad commented on July 22, 2024

I am on PETSc main, commit e4cb84850f3, and I have no problem building libMesh

from libmesh.

jwpeterson avatar jwpeterson commented on July 22, 2024

It's hard to say, you can likely fix the duplicate case value error simply by commenting out the duplicate. Fixing the petscdmlibmeshimpl.C code is trickier because it uses "private" struct members like _p_PetscObject directly. Luckily it's not really used by anything, so you may have some luck just commenting out lines there as well.

from libmesh.

lindsayad avatar lindsayad commented on July 22, 2024

What libMesh hash are you using? Line 770 of petscdmlibmeshimpl.C in current libMesh devel is not the line you pasted, and the last time that file was modified was on August 8th, so it seems that you're using a libMesh that is at least a few months old

from libmesh.

jwpeterson avatar jwpeterson commented on July 22, 2024

you're using a libMesh that is at least a few months old

Oops, guess I should have asked that question first!

from libmesh.

agiordan96 avatar agiordan96 commented on July 22, 2024

Unfortunately, the error persists with libMesh version 1.7.1....

``../LIBMESH/src/solvers/petscdmlibmeshimpl.C:822:120: error: no member named 'type' in '_p_PetscObject'
LIBMESH_SETERRQ2(((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONG, "DM of type %s, not of type %s", ((PetscObject)dm)->type, DMLIBMESH);

../LIBMESH/src/solvers/petscdmlibmeshimpl.C:904:120: error: no member named 'type' in '_p_PetscObject'
LIBMESH_SETERRQ2(((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONG, "DM of type %s, not of type %s", ((PetscObject)dm)->type, DMLIBMESH);

../LIBMESH/src/solvers/petscdmlibmeshimpl.C:904:120: error: no member named 'type' in '_p_PetscObject'
LIBMESH_SETERRQ2(((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONG, "DM of type %s, not of type %s", ((PetscObject)dm)->type, DMLIBMESH);

Any ideas, other than downgrading petsc to 3.20.2?

from libmesh.

agiordan96 avatar agiordan96 commented on July 22, 2024

Meaning the master would work with 3.20.3 or 3.20.2?

from libmesh.

jwpeterson avatar jwpeterson commented on July 22, 2024

Yes, according to @lindsayad's (#3767 (comment)) that will work.

from libmesh.

lindsayad avatar lindsayad commented on July 22, 2024

I will not guarantee that it will work as using PETSc main results in a version that is effectively infinite so it will have different comparison results in macros, but it is certainly more likely to work. If it works with PETSc main but not with the 3.20.3 release, then I would definitely submit fixes to support you

from libmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.