Comments (4)
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.
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.
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.
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)
- gtk3+ support HOT 3
- hdf5-related compile error HOT 2
- I don't understand how to use this... HOT 2
- Read Gadget-4 halo finder output HOT 1
- Loading a snapshot fails if mass dataset is explicitly requested with --datasets flag
- Can't compile with GCC/11.2.0 HOT 3
- Compilation on MacOS HOT 4
- Unable to read snapshots with 6 byte integer particle IDs HOT 1
- Configuration problem on lastest Ubunt-oids HOT 2
- using gadgetviewer for a very large simulation snapshot HOT 8
- Better support for Swift output HOT 1
- Periodic wrap on resample causes odd behavior
- Smoothed density plot fails with runtime checks enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gadgetviewer.