I am trying to import a fortran subroutine into python code. Following this guide https://notmatthancock.github.io/2017/02/10/calling-fortran-from-python.html I have added the following line into my fortran code: However when I try to use f2py -c fireball_ES_param.f -m fireball to create fireball.so to import…
Tag: fortran
Errors when executing execute_command_line() in a Fortran code
I have wrote down Fortran code to calculate the distance and then sorting, but there is some problem in calling executable command. Here is the code The input file is a.gro outfile file 3, dist.txt so, I want to sort r(i,j), keeping i same j different.but call line is not working in fortran code. error that i…
Internal cmake error while building trilinos on ubuntu 32bit
I’m trying to build the library trilinos on a 32bit ubuntu virtual machine. I wrote the following configuration script: When I execute it with the ksh command in the terminal, I get the following error: CMake Error: CMAKE_Fortran_Compiler not set, after EnableLanguage Answer It appears you do not have a…
How can I setup linux to compile FORTRAN code into windows binaries?
I’m working on a FORTRAN project and I would like to build all of the binaries that I want to maintain on a linux machine that is dedicated for automated builds. I have successfully used mingw to build 32-bit and 64-bit binaries from C source for windows machines on the linux machine with the following …