Questions tagged [fortran]
The fortran tag has no summary.
41 questions
0
votes
0
answers
5
views
NetCDF4 created with Xarray does contain unexpected dimensions
I have a NetCDF question:
I was creating a NetCDF4_classic file via Python's xarray package:
import xarray as xr
ds = xr.Dataset(
data_vars={
"Data1": (("time"...
1
vote
0
answers
63
views
Process is not running in real-time priority
I have a Fortran based application that is running fine and it provides the correct results when I run it normally (i.e ./myapp); however, when I tried to run it with real-time priority it gives the ...
1
vote
1
answer
205
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 ...
1
vote
0
answers
105
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). ...
2
votes
2
answers
289
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....
0
votes
1
answer
72
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 ...
3
votes
2
answers
221
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) ...
0
votes
1
answer
637
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 ...
0
votes
1
answer
145
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 ...
0
votes
1
answer
199
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
312
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
169
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 ...
0
votes
1
answer
606
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 ...
1
vote
1
answer
325
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
538
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 ...
2
votes
2
answers
423
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
77
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 ...
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 columns?...
3
votes
1
answer
14k
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
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 ...
3
votes
1
answer
253
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
467
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
409
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
908
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 ...
3
votes
1
answer
5k
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
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 ...
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 [email protected]. address
I used mkdir directoryname command to create a directory.
Then I ...
3
votes
1
answer
4k
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
5k
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
982
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
467
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
617
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
163
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
117
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
703
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
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 ...
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/bin:...
2
votes
0
answers
75
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 ...