Git Product home page Git Product logo

Comments (4)

BenWibking avatar BenWibking commented on May 26, 2024

My configuration looks like this:

  Gadgetviewer v1.1.1 configuration
  --------------------------------------

  Compilers

    Fortran compiler: gfortran
    Fortran flags   : -fopenmp  -O3 -g -O2
    C compiler      : gcc
    C flags         : -g -O2

  Plotting library (only need one of these)

    PLPlot          : no
    Cairo           : yes

  Other libraries

    HDF5            : yes
    PNG             : yes

  Internal precision of particle data

    Positions                     : 4 bytes
    Velocities                    : 4 bytes
    Floating point properties     : 4 bytes
    Integer properties (e.g. IDs) : 8 bytes
    Particle array indexes        : 8 bytes

from gadgetviewer.

jchelly avatar jchelly commented on May 26, 2024

Thanks for reporting this. I think the problem is that the code is calling the same C function with a scalar argument in some places and an array in others. That's probably not strictly allowed, but older compilers didn't check.

from gadgetviewer.

jchelly avatar jchelly commented on May 26, 2024

I've pushed a workaround for this to master. If you download the latest master and run ./autogen.sh in the source directory then configure and compile as normal it should work. The configure script now checks if the compiler accepts the flag "-fallow-argument-mismatch", which downgrades the error to a warning.

If you can't run autogen.sh (e.g. no autotools installed) then you could try compiling the 1.1.1 release with "-fallow-argument-mismatch" added to the FCFLAGS variable. E.g.

./configure FCFLAGS="-O2 -g -fopenmp -fallow-argument-mismatch"

The right way to fix this would be to use the iso_c_binding module to call C functions, but I probably wont have time to do that in the next few weeks. Most compilers didn't support iso_c_binding when I originally wrote gadgetviewer.

from gadgetviewer.

BenWibking avatar BenWibking commented on May 26, 2024

Thanks, that problem is fixed now. I now get a new error I've added in a separate issue (#12).

from gadgetviewer.

Related Issues (14)

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.