Questions tagged [fortran]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

ADCIRC - Cannot find -lhdf5_fortran: No such file or directory

Trying to compile ADCIRC, a Fortran program with NetCDF support, and I hit the following error. /usr/bin/ld: cannot find -lhdf5_fortran: No such file or directory collect2: error: ld returned 1 exit ...
Alexandre Georges's user avatar
1 vote
0 answers
70 views

Fortran program running on Ubuntu 22.04.1 but not on Debian 11

I am trying to run a Fortran program distributed as an executable for Linux (HOM4PS2_64-bit.tar.gz on HOM4PS). The program works fine on a machine running Ubuntu 22.04.1 (kernel: 5.19.0-42-generic). ...
Baryogenesis's user avatar
2 votes
2 answers
247 views

How to remove lines with nonsense format numbers?

I have the following data that I am processing to get the 1st and 5th column, convert the D format to E format and delete rows that have gibberish numbers such as 9.410-316. DEG = 1.500 2....
csnl's user avatar
  • 33
0 votes
1 answer
38 views

BlockSolve.o Error in Makefile

I am trying to run Enzo Project simulation and have followed the steps listed on the website here: https://enzo.readthedocs.io/en/latest/user_guide/bootcamp.html . I have been getting an error and ...
Jacob Krebs's user avatar
3 votes
2 answers
161 views

Indent Fortran source code, propagate indentation down to unindented special lines

I'm trying to write my own script to improve some auto-formatting before commiting to a remote repository. I use indenting guides in my IDE and the autoformatters available for my language (FORTRAN) ...
Philip Moloney's user avatar
0 votes
1 answer
289 views

Why compiling Fortran code with include is different from #include?

I can't understand why including a text file that contains some C lines in a fortran77 code gives me a warning if I do not use #include. I wrote an example of a code that is supposed to read some text ...
Giorgio Maria Cavallazzi's user avatar
0 votes
1 answer
69 views

Installing UrQMD in Linux Mint gives error after make command

I am using Linux Mint 21 Cinammon to install the UrQMD simulation package. I have ROOT installed as well as all the required dependencies as specified by the webpage. The instructions say: $ tar -xvf ...
voidonaut's user avatar
0 votes
1 answer
132 views

How to debug binary file from legacy FORTRAN? Help

I'm working with an older proprietary FORTRAN legacy code from specific corporation (so can't post much source code), I'm having an issue with the file interactions. My compiler bash shell Install is ...
The Immortal's user avatar
0 votes
2 answers
271 views

Complete file line by line reading dates

I have a text file containing 2 columns. The first one has DATES (DD/MM/YYYY) and the second one, numbers. It looks like this: 15/01/1945 105.0 16/01/1945 4.2 17/01/1945 3.0 31/01/1945 12.0 01/02/...
David's user avatar
  • 1
0 votes
0 answers
118 views

gfortran: command not found even after sudo apt-get install [duplicate]

system says the latest version of gfortran has been installed when I retry the sudo command, but then i still get the command not found error for gfortran. I'm guessing it's something to do with the ...
antonia's user avatar
0 votes
1 answer
399 views

How to catch and break on a Fortran 90 runtime error in GDB?

Is it possible to have Fortran 90 break at a runtime error in GDB? I show here a MWE for a simple routine test.f90 which throws an out of bounds error: program main implicit none integer ...
tdstoff's user avatar
1 vote
1 answer
241 views

Interactive Fortran Program

I have an old fortran executable foo.exe that requires interactive input. If I call foo.exe from Cywin I am prompted for the interactive input and the program works fine. If I call foo.exe from WSL I ...
Matt's user avatar
  • 73
0 votes
0 answers
289 views

Using "expect" command to run an interactive program fails

I am trying to solve my question that I've asked here using expect script instead of file redirection. Unfortunately, this solution doesn't work as well (the same behaviour as described in the ...
adhrar_nmatrous's user avatar
2 votes
2 answers
371 views

Feeding a command using file redirection or pipe doesn't always work

I've downloaded this program construct2d and compiled it using GNU Fortran gfortran 9.3.0. You can compile the program using gnu make: make (compilation time: 10 seconds on my PC running Ubuntu 20.04 ...
adhrar_nmatrous's user avatar
0 votes
0 answers
58 views

Environment allowing Fortran to call a C function

I'm trying to install a large atmospheric model (WRF) on my newly set up Centos 7 machine. To start the installation process, the model's developers give a series of environmental tests. My set up ...
MrCatDad's user avatar
9 votes
2 answers
2k views

How to run fortran77 program with inputs from file?

I run fortran77 program in terminal ./program and the program ask for input and output file. What should I write to terminal when I have the names of input and output files in a file - in two ...
Arrara's user avatar
  • 93
3 votes
1 answer
13k views

How to install a FORTRAN compiler on macOS?

I am trying to install a Fortran compiler on my Mac Pro 2019 (running macOS). First step is: sudo apt-get install gfortran but I get error: command not found I also tried brew install gfortran ...
shere's user avatar
  • 149
1 vote
1 answer
2k views

Cannot boot to fedora 29 - Bad RIP Value

I tried to install GFORTRAN_7 on f29 since I needed libfortran.so.4 for a program. What I did I've found the rmp file (libgfortran4-7.3.1-alt9.x86_64.rpm), downloaded it and tried to install it. I ...
Thanos's user avatar
  • 435
3 votes
1 answer
229 views

Fortran 90 with a front-end

I am looking forward to re-run a fortran program I made years ago on Intel Fortran for Windows XP, with external subroutines and modules. I changed recently to Linux. Is there any free Fortran 90 ...
Ernesto Lopez Fune's user avatar
2 votes
0 answers
416 views

Cache Memory Leak (or looks like one) slows down a program

I have a strange problem that looks like a Memory Cache Leak (not a memory leak) leading to a slow down of a program. Let me set the stage first. Reproducibly (using ganglia to monitor), on a cluster ...
Laurence Marks's user avatar
0 votes
1 answer
363 views

Where to find old Fortran library libF77.so.3

We have some old binaries which ran on Sun SPARC systems from around 2000, and we'd like to run them again (we do not have the source code.) I tried running the binaries on a Sun Blade 1500 with a ...
lava37's user avatar
  • 1
2 votes
1 answer
663 views

install different version of GCC side by side

My primary problem is in my Fedora 28, GCC8 is installed. Now, this gives libgfortran.so.5. But many of my applications are not updated and still depends on libgfortran.so.3 So, how can I solve the ...
BaRud's user avatar
  • 1,629
3 votes
1 answer
4k views

Use libgfrotran.so.3 and GFORTRAN_1.0 on fedora 27

I am trying to use fortran code called SAMMY-8 which has its binary ready for use. I was using without any issue while I had f25 installed. When upgrading to f27 I got the following error when trying ...
Thanos's user avatar
  • 435
5 votes
3 answers
7k views

LAPACK make fails: "recipe for target 'znep.out' failed" error

My main problem is getting this error: Makefile:463: recipe for target 'znep.out' failed after running make I was trying to install GPAW (g Projector Augmented Wave method, for DFT simulations) on ...
Joshua Salazar's user avatar
0 votes
1 answer
6k views

Install Fortran 90 compiler in Kubuntu

I am trying to run a package that strictly depends on Fortran 90, but after running its ./configure file it shows the following error: configure: error: could not find Fortran 90 compiler There are ...
Joshua Salazar's user avatar
2 votes
2 answers
2k views

How do I operate the server to compile/run a simple Fortran code? [closed]

I want to run a Fortran program on a server. I am able to log into that server using the command: ssh -X [email protected]. address I used mkdir directoryname command to create a directory. Then I ...
Solidification's user avatar
3 votes
1 answer
3k views

Why do I have to set LD_LIBRARY_PATH before running a program, even though I already linked the library locations in the compile stage? [duplicate]

I am compiling a model using make. The model has a Makefile that connects the source code with dependent libraries via flags that look like -L/lib1 -L/lib2. But when I try to run that model, it fails ...
Luke Davis's user avatar
1 vote
1 answer
4k views

vim search and replace command to replace `(*,*)` with nothing

I'm reworking some Fortran code. I need to remove the pattern (*,*) using vim's search and replace function. The following does not work %s/\<(*,*)\>//gc %s/\<(*\,*)\>//gc %s/(*,*)//gc ...
user121392's user avatar
1 vote
0 answers
898 views

How to install Fortran compiler on Ubuntu system without internet access?

I am working on a command-line Ubuntu system that is on a Parallella (a SOC with a RISC-based muti-core co-processor). I need a Fortran compiler to run some HPC benchmarks but my search is proving ...
Jason Fitch's user avatar
-1 votes
2 answers
1k views

fortran in fedora linux

I have installed Fedora Linux on my computer. I would like to have the following software installed on it: fortran gnuplot xfig latex dvips ghostview dvipdf How can I do it?
Razee's user avatar
  • 69
1 vote
2 answers
436 views

giving name for files with processor id and time-step should include in file name [closed]

I am using FORTRAN, I want to give file name such as it should include processor id of the processor created that file and time-step variable when that file is created. As the name of file should be ...
Sachin Shinde's user avatar
1 vote
0 answers
3k views

How do I update my gfortran compiler?

I use Ubuntu 14.04 with gfortran 4.8.4 and I need the version 4.9.X to compile some things... I ran the command sudo apt-get gfortran-4.9 and then gfortran --version, but I see that I have 4.8.4 ...
Joshua Salazar's user avatar
1 vote
2 answers
587 views

Where to find the source tarball for libgfortran3?

I've been using the multithreaded linear algebra package jblas on Chrome OS, which is called from some Java code. When attempting matrix multiplication via mmul, the following error is thrown: ...
Mapsy's user avatar
  • 297
0 votes
1 answer
141 views

inverse translation from fortran90 (or gfortran) into ratfor90?

I have most likely a silly question, and asking perhaps a wrong forum, but don't know where to go. OK, I work with gfortran via ratfor90 (it is a nice little preprocessor for gfortran and fortran90, ...
Al Kap's user avatar
  • 91
4 votes
1 answer
106 views

Decode binary output from Fortran program created on Sun Sparc system

I have one f77 file,which was created on SunSparc machine.I know that each record contains 5 reals and one integer.Is there any way how I could unpack that file on my Ubuntu 16.04 Intel little-endian ...
MikiBelavista's user avatar
1 vote
0 answers
636 views

fortran program crashes instantly with segmentation fault

I have a fortran program which I compiled myself and I ran the executable hundreds of times (without recompiling or anything), but now when I run it, it crashes instantly with segmentation fault. ...
fifaltra's user avatar
  • 625
3 votes
1 answer
2k views

Installing Octave on CentOS - incompatible BLAS library error

I am trying to install Octave on CentOS. After running sudo yum install octave ./configure F77=gfortran I got this error: configure: error: A BLAS library was detected but found incompatible with ...
Michael's user avatar
  • 755
0 votes
1 answer
2k views

./configure returns Fortran compiler error?

Attempting to run a configure file for the fv-fileviewer gives me this error: configure: error: Could not find a Fortran compiler in >/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/...
Joseph Farah's user avatar
2 votes
0 answers
74 views

FORTRAN executables: heap maxed out

I am trying to run a FORTRAN program on stampede (xsede machine). The error message I am getting is 'heap maxed out'. I think it has something to do with virtual memory allocation. So I use the ...
Osman Mamun's user avatar