Git Product home page Git Product logo

Comments (7)

jhale avatar jhale commented on August 16, 2024

This project sounds very interesting and it would be good if you could keep us informed on how things go as it proceeds.

Regarding your question, FEniCS 2019.1.0 is the legacy version and it does not support mixed/multi-precision operations.

We have built DOLFINx with mixed and multi-precision arithmetic in mind, but we haven't yet explored the potential in terms of implementing real algorithms; for your project I would strongly recommend using the C++ interface to DOLFINx where you have explicit control over the types of both the expansion coefficients and geometry information through templating, rather than Python.

Additionally, we've never tried quad precision, only double and lower precisions.

from dolfinx.

jhale avatar jhale commented on August 16, 2024

C++ doesn't have a quad precision implementation in its standard library. So you will immediately run into issues with our use of the type concepts std::floating_point and dolfinx::scalar https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/common/types.h#L19

Are you sure you need quad precision? Typically you'd be looking to use doubles as your highest precision and then improve performance through clever use of lower precisions.

from dolfinx.

RamakrishnanChandran avatar RamakrishnanChandran commented on August 16, 2024

from dolfinx.

RamakrishnanChandran avatar RamakrishnanChandran commented on August 16, 2024

from dolfinx.

jhale avatar jhale commented on August 16, 2024

You can make a fork and modify the concepts to accept the types you need.

from dolfinx.

RamakrishnanChandran avatar RamakrishnanChandran commented on August 16, 2024

from dolfinx.

garth-wells avatar garth-wells commented on August 16, 2024

You could try with C++23 fixed width floating-point types (https://en.cppreference.com/w/cpp/types/floating-point). I don't know where compiler support is at.

from dolfinx.

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.