Coder Social home page Coder Social logo

PETSc 3.7.5 error: cannot convert ‘PetscBool’ to ‘PCMGGalerkinType’ in PCMGSetGalerkin(PC, PCMGGalerkinType) about topopt_in_petsc HOT 5 CLOSED

topopt avatar topopt commented on July 26, 2024
PETSc 3.7.5 error: cannot convert ‘PetscBool’ to ‘PCMGGalerkinType’ in PCMGSetGalerkin(PC, PCMGGalerkinType)

from topopt_in_petsc.

Comments (5)

topopt avatar topopt commented on July 26, 2024

Hi,

I've just done a check of the framework with PETSc versions 3.7.5 and 3.7.6 - and cannot reproduce the error you have encountered. Also the petsc documentation indicates that the interface to PCMGSetGalerkin() is correct in LinearElasticity. So could you provide more information on your setup, i.e. what platform you use and how did the verification of your PETSc installation state (result of the test after compiling)?

Niels

from topopt_in_petsc.

huntrontrakkr avatar huntrontrakkr commented on July 26, 2024

I'm currently utilizing a recent clone from https://bitbucket.org/petsc/petsc in order to achieve cuda acceleration. the config command included:
./configure --download-mpich --with-cuda=1 --with-cusp=1 --with-thrust=1 --with-precision=double --with-clanguage=c
Compilation was successful and both test and streams worked at the end of compilation. I apologize for miss-attributing the version number.

from topopt_in_petsc.

huntrontrakkr avatar huntrontrakkr commented on July 26, 2024

I was able to find documentation on the function here: https://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PCMG/PCMGSetGalerkin.html

from topopt_in_petsc.

topopt avatar topopt commented on July 26, 2024

Thanks for the clarification and thanks for the heads up regarding the change in method interface for the next version of PETSc. I will, however, wait with updating the code until the PETSc developers release a new version officially - but have added a comment in the README file stating the possible issues with using newest git branch. In case you have not already resolved your issue you should use the PCMGGalerkinType to PC_MG_GALERKIN_BOTH.

from topopt_in_petsc.

jessweakly avatar jessweakly commented on July 26, 2024

Has this error been fixed? I am seeing this same error for both LinearElasticity and PDEFilter come up on Ubuntu 18.04 using Petsc-11.4.1. I would greatly appreciate if someone can share how to fix it.

from topopt_in_petsc.

Related Issues (19)

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.