Questions tagged [fortran]
The fortran tag has no usage guidance.
33
questions
0
votes
1
answer
50
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 ...
0
votes
2
answers
75
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/...
0
votes
0
answers
26
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 ...
1
vote
1
answer
91
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 ...
0
votes
0
answers
668
views
Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) and Unable to lock director
I am using WSL on windows. I have installed Ubuntu 20.04 from the official Microsoft store. When I try the sudo apt-get install gfortran command, I encounter the error :
Failed to fetch http://...
1
vote
1
answer
68
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 ...
0
votes
0
answers
63
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 ...
3
votes
2
answers
341
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 ...
0
votes
0
answers
30
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 ...
7
votes
2
answers
1k
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 ...
2
votes
1
answer
6k
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
...
1
vote
1
answer
1k
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 ...
3
votes
1
answer
172
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 ...
2
votes
0
answers
252
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 ...
0
votes
1
answer
291
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 ...
2
votes
1
answer
419
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 ...
2
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 ...
5
votes
3
answers
6k
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 ...
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 ...
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 username@I.P. address
I used mkdir directoryname command to create a directory.
Then I ...
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 ...
1
vote
1
answer
2k
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
...
1
vote
0
answers
770
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 ...
-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?
1
vote
2
answers
343
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 ...
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 ...
1
vote
2
answers
509
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:
...
0
votes
1
answer
123
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, ...
4
votes
1
answer
98
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 ...
1
vote
0
answers
518
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. ...
3
votes
1
answer
1k
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 ...
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/...
2
votes
0
answers
55
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 ...