Giter VIP home page Giter VIP logo

Comments (5)

mrklein avatar mrklein commented on September 25, 2024

Hi,

I can confirm, the error. It happens during compilation of geompack.C. And it seems, there is a problem with compiler flags, as without flags file is compiled without problem.

from openfoam-os-x.

mrklein avatar mrklein commented on September 25, 2024

Possible work-around is to add #pragma clang fp exceptions(ignore) at the top of triSurface/triSurfaceTools/geompack/geompack.C. This will switch off trapping math for this file.

from openfoam-os-x.

Boris3305 avatar Boris3305 commented on September 25, 2024

Thank u for your advice!
It's not cause by the goepack.c . It's problem of the Xcode. After I change the Xcode 13.x to 12.5, everything is done. :)

from openfoam-os-x.

mrklein avatar mrklein commented on September 25, 2024

It is a problem of clang 13.1.6 not being able to compile geompack.C with -O3 and -ftrapping-math flags. So, using #pragma clang fp exceptions(ignore), I switch off -ftrapping-math flag for geompack.C, which fixes the problem of compilation.

Yes, you can also switch compilers. Though, adding a line to a file seems to be simpler, than downgrading of Xcode.

from openfoam-os-x.

Boris3305 avatar Boris3305 commented on September 25, 2024

OK. I got it.
THANKS!

from openfoam-os-x.

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.