fortran77 Questions

1

Solved

What is the correct way to compare two strings say abc and bcd depending on the alphabetic order? Is there a built in command to do so? Or would > or .lt. do the work without any problems?
Watkins asked 28/1, 2019 at 5:34

3

Solved

I recently moved from the SGI, Sun workstation environment to a Mac. SGI and Sun came with Fortran compilers so I have maybe 100 small f77 codes I wrote over the years for post-processing and analy...
Imaginal asked 9/1, 2018 at 18:39

6

Solved

What is the motivation for defining PI as PI=4.D0*DATAN(1.D0) within Fortran 77 code? I understand how it works, but, what is the reasoning?
Birthplace asked 28/1, 2010 at 21:2

1

I am new to Fortran and coding in general so I apologize if my terminology is not correct. I am using a Linux machine with the gfortran compiler. I am doing research this summer which involves me...
Outfox asked 1/6, 2017 at 13:14

1

Solved

Unless I'm mistaken, there is no way in Fortran to write a function or subroutine with an arbitrary number of arguments (known more succinctly as a variadic function). For example: RESULT = FUNC(...

2

I'm trying to install octave 3.8.1 on a cluster running Redhat+IBM LSF. I don't have write access to any directory except my home dir. I have loaded three modules 1) pcre 8.33 2) blas 08/2013 3) la...
Whinny asked 3/5, 2014 at 4:22

2

Solved

I am a fresh in programming, I wanna to call a fortran function in my c++ code. the thing is I dont know how to pass a fortran character*81 array to my c++. fortran code is like: subroutine func0...
Ipomoea asked 24/5, 2015 at 3:10

1

Solved

I am modifying a code from a model written in Fortran 77, but I have come across an odd thing to me. In some files, there is a label "d" in the first column of a line, like the example below: d re...
Guddle asked 21/4, 2015 at 12:11

1

I want to read a line in a file, which includes three real numbers, without advancing the pointer. So I wrote: (TXT is the variable representing my file which has a value of 80) read(TXT, *, ADVAN...
Transude asked 24/6, 2014 at 2:39

3

Solved

I'm trying to compile some old fortran77 programs with gfortran and getting error with allocatable arrays. If I define arrays in f90-style, like: REAL*8,allocatable::somearray(:) everything is f...
Hijoung asked 16/4, 2014 at 7:30

2

Solved

I adapted a simple program to compute and plot the movement vortices of to Julia to test the language, I also wrote it in Python for no particular reason. (Disclaimer: 1. Every performance compari...
Ablaut asked 16/12, 2013 at 14:54

1

Solved

I'm working on a model written in Fortran 95, which I am completely new to. The concept of statement labels seems strange, and I've so far only found the explanation that the labels can be arbitrar...
Hellgrammite asked 26/9, 2013 at 12:44

4

Solved

I've a question about Fortran 77 and I've not been able to find a solution. I'm trying to store an array of strings defined as the following: character matname(255)*255 Which is an array of 255 st...
Ohaus asked 7/4, 2009 at 12:32

2

Solved

In bash I could write a simple script like below; to read the content of a file in the folder as I define the path for the file using environment variable "fileplace" #!/bin/bash fileplace="/home...
Shack asked 22/4, 2013 at 8:11

2

Solved

I understand gfortran can compile f90 or f95? How does it know which one it is compiling? Also can it compile f77 code? Does ubuntu already have a fortran compiler or do I need to download gfortran...
Evin asked 4/6, 2012 at 15:56

1

Solved

This question is about the efficiency of a linear search vs. the efficiency of a binary search for a pre-sorted array in contiguous storage... I have an application written in fortran (77!). One f...

4

Solved

I have been working with Fortran for years, but the file I/O is still hazy to me. My understanding of status, form, access, recl is limited, because I only needed certain use-cases in grad school. ...
Roca asked 3/4, 2012 at 17:22

1

Solved

I have a Fortran77 snippet that looks like this: DO 1301 N=NMLK-2,2,-1 Some code... IF(NB1(N).EQ.50) GOTO 1300 Some code... IF(BS(N).EQ.0.0) GOTO 1301 some code... GOTO 1301 1300 NW(M...
Blooded asked 5/1, 2012 at 6:27

4

Solved

Today I was reading code from some very popular numerical libraries written in FORTRAN 77 such as QUADPACK (last updated in 1987), and I was wondering if there is any reason not to rewrite those li...
Iolenta asked 2/1, 2012 at 22:29

1

Solved

I'm rewriting some legacy code and came across this: DO 4 I=1,N ... DO 4 J=1,N ... 4 CONTINUE There appears to be only one CONTINUE for these two loops. Is it equivalent to this Java code? ...
Chicoine asked 1/9, 2011 at 17:9

2

Solved

Can anyone tell me how to install f77 on Mac OS X 10.6? I am quite new to f77. Thank you very much
Pharisaic asked 29/3, 2011 at 10:5

1

Solved

How can I get Mathematica to export/save/write a text file with proper Fortan77 formatting, that is, 72 columns and a continuation marker on the sixth column? I am using Mathematica to generate la...
Steelworks asked 6/11, 2009 at 13:48

1

Solved

Before I begin, I must preface by stating that I am a novice when it comes to FORTRAN. I am maintaining a legacy piece of code from 1978. It's purpose is to read in some data values from a file, pr...
Extort asked 14/7, 2009 at 15:49
1

© 2022 - 2024 — McMap. All rights reserved.