Git Product home page Git Product logo

Comments (7)

benzwick avatar benzwick commented on August 18, 2024 1

Thank you @sshiraiwa, with these additional changes my code is working again.

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

Thanks. This is oversight. It looks like QuadratureSpace was moved to qspace.hpp in recent MFEM, thus using --mfem-branch='master' makes it disappear.

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

@benzwick I am trying to address this in PR#152. Please let me know if this works for you.

from pymfem.

benzwick avatar benzwick commented on August 18, 2024

@sshiraiwa Thanks for looking at this. I will have to wait for #150 because I cannot install parallel MFEM with pip right now.

from pymfem.

benzwick avatar benzwick commented on August 18, 2024

PR #152 appears to fix the problem. It works when I install PyMFEM like this:

pip3 install git+https://github.com/mfem/PyMFEM@add_qspace_dev --user --install-option="--mfem-branch=master" --install-option="--with-parallel" --no-cache-dir --verbose

and move the files as described in #150.

from pymfem.

benzwick avatar benzwick commented on August 18, 2024

I just realised that QuadratureFunction is also missing:

In [1]: import mfem.par as mfem
   ...: mesh = mfem.Mesh(10, 10, "TRIANGLE")
   ...: qspace = mfem.QuadratureSpace(mesh, 0)
   ...: qf = mfem.QuadratureFunction(qspace)
   ...: 
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-8766a9eb5580> in <module>
      2 mesh = mfem.Mesh(10, 10, "TRIANGLE")
      3 qspace = mfem.QuadratureSpace(mesh, 0)
----> 4 qf = mfem.QuadratureFunction(qspace)

AttributeError: module 'mfem.par' has no attribute 'QuadratureFunction'

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

Okay. I throw in a few more *.i files (#153). If you have a short example for testing methods you need, please contribute.

from pymfem.

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.