fortran
Fortran elemental functions vs elemental subroutines
Fortan allows elemental subroutines to have intent(inout) and intent(out) arguments, but elemental functions are only allowed intent(in).[详细]
2023-03-24 02:38 分类:问答How do `DO` loops work in Fortran 66?
I\'m reading an old book I found in a second-hand book shop (again). This one is called \"Fortran techniques - with special reference to non-numerical applications\", by A. Colin Day, published by Cam[详细]
2023-03-23 16:10 分类:问答Interfacing Python With Fortran through Command-Line Using Pexpect
I am using pexpect with python to create a program that allows a user to interact with a FORTRAN program through a website. From the FORTRAN program I am receive the error:[详细]
2023-03-23 09:54 分类:问答Reading a two dimensional array
I\'m trying to read a two dimensional array (30.7) from a external file in Fortran 90 as READ(*,*)Fname[详细]
2023-03-21 05:08 分类:问答multiple unrecognized options in f77
I\'m attempting to compile some complete Fortran code developed by someone else.The makefile makes references to CC, F77 and F90.Our server doesn\'t have F90 on it, but I could probably ask for it if[详细]
2023-03-20 15:23 分类:问答eigenvalues and eigenvectors using mkl lapack libraries in Fortran
I am trying to calculate the eigenvalues and eigenvectors of matrices of different sizes. I am using a piece of very simple Fortran90 code and I am compiling it linking to the appropriate Lapack libra[详细]
2023-03-18 12:43 分类:问答Variable size arrays in Fortran without Allocate()
Is there a way to create variable size arrays in Fortran on the stack? Allocate() does not work for me, because it places the array on the heap. This may lead to problems with parallelization (see my[详细]
2023-03-17 22:10 分类:问答How to call each 4 values out of 40 values in fortran
I have a column ma开发者_开发技巧trix with 40 values. Say, 1 4 5 2 4 1 9 . . . 2 How can I call every four values and average them until it reaches 40th? I managed to do in the following way but is[详细]
2023-03-17 02:59 分类:问答In Fortran 90, do array dimensions have to be declared beforehand?
Is it necessary to declare array dimensions before any other code?For example, I have written the following simplified example code:[详细]
2023-03-16 11:32 分类:问答How do I get setup.py test to use a specific fortran compiler?
I am trying to test a package that includes some f90 files. If I build or install and specify the fortran compiler, it works fine. However, when I try to test I get the following error:[详细]
2023-03-16 10:37 分类:问答