fortran90
can a type member which is a type be a target?
Suppose I have the following setup type BarType integer :: i end type type FooType type(BarType) :: bar[详细]
2023-03-05 04:27 分类:问答Save values of an array at Fortran 90 program
I have a two-dimensional and 1-D arrays of different variables of a system which characterize an Equilibrium state of the system from where the next configurations going to evolve from. Now i need to[详细]
2023-02-19 06:40 分类:问答To use MPI_type_contiguous and MPI_Type_CREATE_Subarray in FORTRAN 90 structure
Hi I am trying to use fortran structure like this type some u! actual code will have 17 such scalars end type some[详细]
2023-02-17 20:19 分类:问答Crash of simple fortran program using system()
program x character(len=1024) :: foo integer:: ret foo = \'ls\' call system(foo, ret) end program This program crashes with SIGSEGV on ifort.[详细]
2023-02-14 17:05 分类:问答How to copy a file in Fortran 90?
How ca开发者_JS百科n I copy a file in fortran 90 in a portable, cross plaform way ?Use the SYSTEM with your OS\'s copy command. Practically all compilers support this feature.You can read/write the fi[详细]
2023-02-14 04:22 分类:问答passing assumed-shape arrays in two levels of subroutines (Fortran 90)
I have had problems calling successive subroutines with assum开发者_C百科ed-shape arrays in Fortran 90. More specifically, I call two levels of subroutines, passing an assumed-shape array as a paramet[详细]
2023-02-13 04:56 分类:问答Optional subroutines in Fortran 90
How can I achieve this objective in fortran 90 ? I have a routine accepting a function subroutine foo(bar, mysub)[详细]
2023-02-11 16:54 分类:问答units of measure in fortran
Is there a library defining a datatype and servic开发者_StackOverflow社区es to deal with quantities associated to a unit of measure in fortran ?There is the PHYSUNITS F90 module, which might do what y[详细]
2023-02-11 03:21 分类:问答passing a string as an argument when the dummy has specified length
if I have this code module test contains subroutine xx(name) character(len=20), intent(in), optional :: name[详细]
2023-02-06 21:44 分类:问答Smart printing of integers in fortran90
I\'m learning Fortran90 after a brief introduction to Fortran77 a few years ago. When printing integers in Fortran, you must specify how many spaces you want to reserve for printing the integer. Consi[详细]
2023-02-05 19:33 分类:问答