This is my program:
program ejercicio8
implicit none
real(kind=8) :: i, k, pi
integer, allocatable :: n
integer :: j
real, dimension(:),allocatable :: array
pi= 4*atan(1.0_8)
!----------------------------------------------------------------...
I have a program for the propagation of seismic waves, when I compile it is fine, but when I run it I get this error:
Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.
Backtrace for this error:
#0 0x7F65...
I tried to build a program that generates a vector of 1000 components, but then it does not do anything. The code is this, very simple:
program vector
real:: r(10000)
call random_number(r)
end program
I am programming a program in Fortran (g95) to approximate the zeros of a Bessel function of order n (the exercise requires that you use the series that defines it). My modules are these:
The module that contains the Bessel function in the fo...
Errors in Fortran when compiling the program that works with .dat or .txt files.
Program
Program liga
Implicit none
integer :: i,j,suma
integer, parameter :: N = 4, M = 20
real:: A(i,j), p(j),u(j)
u(3)=...
I'm trying to create a program that divides my number by two until I reach the unit and that's where the program ends.
program multiplicacion
implicit none
integer :: a
integer :: b
integer :: i
print*, "Escribe dos n...
I want to generate an algorithm that identifies me the minimum value of an array of dimension n read from an a.dat file
program ejercicio11
implicit none
real, dimension(:), allocatable :: a
integer :: n
real :: min
open(unit=20, file='a.d...
I am trying to create a program that writes me the value of a function according to the values that exist in a vector. Is there any way to pass each value of the vector to the function in a similar way to this?:
program prueba
real(kind=4),dim...
This is the code, but the error appears on line 29, and the Fortran runtime error appears: end of the file. We do not know what can be treated. It is a program in which we have to get the student's grade through a txt file.
program amarillo
im...