Questions tagged as 'fortran'

2
answers

Error Fortran 90: Program received signal SIGSEGV

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) !----------------------------------------------------------------...
asked by 26.01.2018 / 20:38
1
answer

Fortran - Error in "Program received signal SIGSEGV: Segmentation fault - invalid memory reference"

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...
asked by 07.03.2017 / 05:23
1
answer

Vector of n components [closed]

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     
asked by 06.02.2017 / 16:39
0
answers

Symbol 'k' at (1) has not IMPLICIT type (Fortran g95)

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...
asked by 28.12.2016 / 11:12
1
answer

When compiling this program in Fortran, it gives some errors

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)=...
asked by 03.02.2017 / 12:23
0
answers

Divide with a loop in Fortran

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...
asked by 22.11.2018 / 23:19
0
answers

Fortran runtime error: End of file

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...
asked by 02.02.2018 / 18:04
0
answers

Vector as input of a fortran 90 function

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...
asked by 08.02.2018 / 12:18
0
answers

fortran 95, fortran runtime error, bad real number in item 1 of list input

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...
asked by 31.01.2018 / 13:39