Code Monkey home page Code Monkey logo

Comments (6)

 avatar commented on August 24, 2024 1

Ah, that worked! Thought I had already tried gnu95 as my fortran compiler but apparently not. Thank you!

from magic.

AnkitBarik avatar AnkitBarik commented on August 24, 2024

Hi,
I've typically seen this occur while using python2. Do you have both python versions (2 and 3) installed on your computer?
One way to force it to use python3 might be to explicitly set f2pyexec = f2py3. Can you set that in the magic.cfg, remove the *.so files and try again?

from magic.

 avatar commented on August 24, 2024

Hi, thank you for the reply. It doesn't even look like the .so files are created. They are supposed to be in $MAGIC_HOME/python/magic correct?

from magic.

AnkitBarik avatar AnkitBarik commented on August 24, 2024

I see. It's the compiler then. Could you send the following information?

  • Is this on a cluster or a local computer?
  • What compilers are you using (system variables: CC, FC, CXX) ?
  • Can you paste your magic.cfg ?

from magic.

 avatar commented on August 24, 2024

Local computer, CC=gcc, FC=gfortran, CXX=mpicxx
magic.cfg:

[plots]
Adapt your backend to your machine: 'TkAgg', 'GTKAgg', 'Qt4Agg', ...
backend = TkAgg
In case you don't have LaTeX installed switch to False
labTex = False
Default colormap
defaultCm = seismic
Default number of levels
defaultLevels = 65
[libraries]
adapt this value if you don't want libraries
buildLib = True
f2py executable, can be f2py, f2py2 or f2py3 (python 3)
f2pyexec = f2py3
fortran compiler: f2py -c --help-fcompiler, frequently 'intelem' or 'gnu95'
fcompiler = gfortran
c compiler: f2py -c --help-compiler
No need to touch this one except on gwdg, change it to intelem
ccompiler = gcc
~

from magic.

AnkitBarik avatar AnkitBarik commented on August 24, 2024

You need to set fcompiler=gnu95 and leave the ccompiler to the default value of unix.
Edit: These should get set automatically if you source the sourceme.sh script: source /path/to/magic/sourceme.sh

from magic.

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.