trying to revive some stuff from 40 years ago.
Found I could download and install Intel Fortran which seems to be a descendant from an old DEC VMS friend. Even managed to get it 'integrated' into Visual Studio 2022 (somewhat; haven't got a decent help or debug facility running yet... and no idea...
Hi, I am a beginner of Fortran. Recently I try to use a fortran code for my simulation. But it always shows me the following error when execute the program: At line 18 of the file sous.f (unit =11, file = 'fluid'), fortran runtime error, End of file, Error termination. Backtrace: could not print...
I'm new to fortran coding and trying to read a file called "data.dat" with data like a triangular matrix
0.1
0.1 0.2
0.1 0.2 0.3
0.1 0.2 0.3 0.4
0.1 0.2 0.3 0.4 0.5
using the code
PROGRAM matrix
IMPLICIT NONE
REAL, DIMENSION(5,5) :: a
INTEGER :: row,col,max_rows,max_cols
max_rows=5...
Hello everyone, I'm trying to solve a BVP that seems to be very sensitive, for which I have to provide a starting guess and hope the program can fix it to find a solution. The program has been tested many times and it is very solid, the only problem should be that I can't find the right guess...
Homework Statement
What is the runtime complexity for the following (pseudo-code) algorithm?:
Algorithm MyAlgorithm(A, n)
Input: Array of integer containing n elements
Output: Possibly modified Array A
done ← true
j ← 0
while j ≤ n - 2 do
if A[j] >...
Hello everyone,
Looking for a more efficient solution to method 'what', in terms of run-time complexity and space.
The method finds the largest cell sequence that the organs sum is divided by 3.(Correct me if I'm wrong)
As it seems runtime complexity here is O(n ^ 3).
I came to solution of O(n ^...
I can't get my head around question about energy consumption, energy supply and run-time. I think I forgot (Im sure I forgot) something in my equation. I am trying to find a way to calculate for how long could UPS supply my PC I don't know why I can't find Amp-hours of UPC on it but let's assume...
I am not if this belongs here or anywhere else, but ok...
Suppose we create an algorithm that does some online job during the data-acquisition of the run of a detector... How can we know whether our algorithm is slow for our needs?
For example ATLAS has some trigger levels and the Level 2 +...
Hi, I try to write program to calculating mach number, with using bisection method. When I run program, fortran write to me an error in line 40. Can you help? I tried to calculating function by using wolfram sucesfully but I need to run it on fortran, An equation is 1.7795 - (0.334898 (1 + 0.2...
I am using fortran 90 to find the prime numbers (1-100). When I print to the console, everything works. If I try to write to an text file (.out).
This is from my command line:
Sues-MacBook-Air:FORTRAN sueparks$ gfortran PRIME.f90
Sues-MacBook-Air:FORTRAN sueparks$ ./MY_PRIME.out
PROGRAM PRIME...
Dear Forum users,
I am running a program called NMTO package for constructing Wannier functions for a material. It uses a code plotnmto.f90 to calculate wannier isosurfaces within the mesh defined by me. I compiled the code in gfortran. After defining the mesh when I ran the program for...
Hi guys, I've been tinkering with this code for a while now, as you probably have seen from my other threads. Right now I am working on changing the code around so that it actually writes out the correct output instead of the old output.
I am getting this runtime error:
At line 2057 of file...
Last week on my computer science assignment I had to write a division algorithm using only addition and subtraction to tackle a problem. My first attempt was the simple and naive repeated subtraction, although I quickly discovered it was not nearly efficient enough for how I needed to use it, So...
FORTRAN Problem! "Runtime Error: End of File"
Hey everyone, back again with another Fortran question.
I am getting the runtime error in Fortran "End of Line". I have tried to simply understand what this means, but I am not getting much help from Google.
I have pasted my code below, and...
Hi! I'm trying to write a function that will integrate a user given function. I am having trouble with reading the function. Here is a section of my code:
function f(x)
implicit none
real :: x,f,p
print *,'Type a probability density function'
read *, p
!It doesn't like line 34...
f = p...
Hello, I've been playing around with some code (as shown below) and for some reason everytime i run this code I am told:
At line 11 of file tester.f90
Fortran runtime error: End of file
I'm not really sure what's causing it, is it the position of my Open file?
Any help would be much...
I’m hoping someone can help me.
I have several UPSs. Among them is a cheap Newpoint UPS. It’s something like 275W/550VA. I think the battery is dead or near-dead, was recently experimenting with it to confirm, and found some very interesting behavior.
I have a 120V lamp with a LED bulb in...
Hi there,
Not sure if this is the right place to post, but I seem to get a runtime error that says: address out of range 0x00000000. I think that it's probably in the first three lines of my code, but any idea as to what else it may be? Thanks so much!
.data
save: .word 1,2,4
size...
Is there a library with which I can lookup the value of a given symbol in Linux?
Also, I've read that C++ name manglingboth unstandardized and difficult. Are there libraries for GCC or Clang?
I want use these to build a GUI that uses HTML to design the interface and symbol lookup to allow...
I'm n facing a runtime error and do not know the reason.Also, I found where is the run time error in the code below but am at no clues, why it is occurring.
Actually when j=2 and i=1, the beta(i,j) is not getting calculated- that is, the print statement for beta(i,j) is not executed when j=2...
Can someone please explain to me why the recursive part of this algorithm has the runtime
T(n) = {O(1), if n ≤ 3;
{Tf(n/2) + Tc(n/2) + O(n), if n > 3.
->where Tf(n/2) represents the floor function of T(n/2) and Tc(n/2) represents the the ceilling function
It is called Shamos...
Hello guys,I decided to try and do a problem about analyzing the worst possible runtime of an algorithm.Since I'm a beginner and I want to do an understand this right I require some help.
I came accros this problem in a book that uses the following algoritthm
Input: A set of n points (x1, y1), ...
I frequently get the same runtime error when using g77. Here is the error message:
fmt: end of file
apparent state: unit 16 named vi1.src
last format: (F10.6)
lately reading sequential formatted external IO
abnormal program termination
I have added to my code the REWIND statement...
This is my first attempt at writing a VBA program. I am just trying to square items in excel in column 'A' and output the answer to column 'B'.
Option Explicit
Sub timestimes()
Dim n As Integer
Dim i As Integer
Dim z As Integer
n = Range("A").Count
For i = 1 To n
z =...
Is it true that the the makers of the programming language C get to specify standards for runtime libraries, and operating manufacturers must implement those standards in the runtime libraries they provide for C?
Or do the operating system manufacturers tell the makers of C "here are my system...
Maybe someone can help find what I've done wrong.
I'm using Windows XP, 2.3GHz, 80GB, 256MB, Student Version of MS Visual C++ .NET, 2003 version
I've opened a file up for input, which works fine, but as soon as I try to pull information from the file, it gives exception errors in memory...