Git Product home page Git Product logo

Comments (4)

connorjward avatar connorjward commented on July 29, 2024

@pbrubeck do you have any ideas?

from firedrake.

pbrubeck avatar pbrubeck commented on July 29, 2024

The CG dofs are not in lexicographic ordering anymore, but we still generate quadrature rules in lexicographic ordering. In 1D we order first the vertex dofs and then the interior ones.

from firedrake.

pbrubeck avatar pbrubeck commented on July 29, 2024

There is definitely an inconsistency with the DOF and quadrature orderings, I'll assign this bug to myself.

from firedrake.

pbrubeck avatar pbrubeck commented on July 29, 2024

A temporary fix is to reorder the GLL quadrature rule to match the new order the GLL DOFs.

def gauss_lobatto_legendre_line_rule(degree):
    fiat_make_rule = FIAT.quadrature.GaussLobattoLegendreQuadratureLineRule
    fiat_rule = fiat_make_rule(FIAT.ufc_simplex(1), degree + 1)
    finat_ps = finat.point_set.GaussLobattoLegendrePointSet
    perm = [0, degree, *list(range(1, degree))]
    points = finat_ps(fiat_rule.get_points()[perm])
    weights = fiat_rule.get_weights()[perm]
    return finat.quadrature.QuadratureRule(points, weights)

We wanted to make this quadrature rule more user-friendly, by supporting strings as the scheme kwarg:
https://github.com/firedrakeproject/tsfc/pull/306/files

from firedrake.

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.