Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged fortran

0 votes
670 views
1 answer
    Here is my minimal example: program test implicit none real :: testfunc write(*,*) "Writing from main" write(*, ... just stop linking to them.) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
558 views
1 answer
    I have a module that contains a subroutine that contains another subroutine. The outer subroutine has a parallel ... to its child subroutines. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
723 views
1 answer
    In relation to a recent post regarding how to declare the array shape concisely, I tried the following three ... = (garbage data, reasonable) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
660 views
1 answer
    In a program I am improving, I noticed that Fortran does not detect file existing or not. This led to a ... Dump file not found' stop endif See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
732 views
1 answer
    I wrote this program in Fortran to display the Fibonacci numbers up to the x-th term: program fibonacci ... m using the gfortran compiler. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
880 views
1 answer
    PROBLEM : Long list of directives openmp fortran77 c$omp parallel default(shared) private(i,k,i1,i2,i3,i4,i5, ... because I am using fortran77) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
964 views
1 answer
    I'm trying to make a function that takes in a file name (i.e. "data.txt") and produces the number of ... when I compile just the wrong output. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
598 views
1 answer
    I have some old (~1995) legacy fortran code which is compiled with g77 compiler and fails on gfortran. The ... this? Thank you in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    I am writing a program that I will use in two main cases: 1D and 2D. The dimension ndim is loaded through ... what would be the proper syntax? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    I have a Fortran 90array (matrix) like: REAL(8),DIMENSION(Xmax, Ymax, Zmax, Xmax, Ymax, Zmax) :: Mat ... function? what would be more efficient? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
550 views
1 answer
    filelocation = "../"//filename PRINT *, "Attempting to open ", TRIM(filename) OPEN(fh1, FILE = filelocation, STATUS= ... /"// in the first line? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
505 views
1 answer
    The documentation for the datetime subroutine in fortran-95, gives an example on the usage of data and time. Here ... , in the print statements? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
433 views
1 answer
    I have a problem understanding why a variable (i) declared in a subroutine is seen in a contained subroutine, ... right words). Any explanation? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
628 views
1 answer
    I have written this very simple code in Fortran: program su implicit none real ran3 write(*,*) ran3(0) end program ... and how I can solve it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
675 views
1 answer
    I am tasked with changing the precision of parts of an HPC application, bearing in mind that it makes ... when implicitly promoting a REAL? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have a project written in VS2010 with Intel Visual Fortran. I have a dump subroutine to write a 2D matrix into ... ' in format string at (1) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
919 views
1 answer
    Below is a sample code that addresses the problem I am having. The error message I am getting is Function ... do end do end function Sample See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
537 views
1 answer
    I am trying to use a type in another type. However, I just cannot make it compile. It is strange to me: ... How can I make this code compile? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
632 views
1 answer
    I'm writing a matrix multiplication subroutine in Fortran. I'm using the Intel Fortran compiler. I've written ... appreciate any inputs on this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
633 views
1 answer
    In my program subroutine stlstp passing work(2,1) as parameter to stlfts(...) subroutine. work(2,1) will be double ... (x, n, np, trend) end See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
901 views
1 answer
    I have to create a program that reverses phrases. For example: when I write hello guys, I want syug olleh ... (*,*)nomT end program reversing See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    I'm testing out ranges of values (-1:34 just for kicks) for the function selected_real_kind to determine the kind ... t end do end program f1 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
661 views
1 answer
    In Fortran, will arithmetic involving an integer and real operand be always carried out by converting the integer ... is there any exception? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
500 views
1 answer
    In my code, I have a subroutine that takes a 5th-rank array as argument and uses a local variable, which ... the readability more than it helps. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
692 views
1 answer
    I want to create an operator .f. that checks whether a file exists so that I can write if (.f ... for having the mentioned functionality? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    I have nine matrices whose dimension as (N by N) A1(i,j),A2(i,j),A3(i,j),A4(i,j),A5(i,j),A6(i,j),A7(i,j), ... ,j),A8(i,j),A9(i,j)] end do end do See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
713 views
1 answer
    I am working with GFortran and CodeBlocks but I'm having an issue about Modules and Multiple files. i keep getting ... how to solve this issue? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
597 views
1 answer
    I've always been using the -fdefault-real-8 option of gfortran to automatically promote every single REAL declared ... changing only that line. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...