i'm using Fortran 90. i use lots of subroutines (each of which are given the PUBLIC attribute). in most of these subroutines i'm using ALLOCATABLE matrices -- which are "locally within" each subroutine.
for ease of programming, i've thought of a "universal" way of naming INTEGER variables...
i'm using fortran 90/95.
i'm using recursive subroutines.
i want to use an optional argument within one of these subroutines. i'm trying to determine whether i can.
basically, i want to know if the following situation is valid :-
1) a recursive subroutine has the optional argument declared...
i'm using fortran 90/95.
i'm using recursive subroutines.
i need to use arrays within these subroutines. i'm trying to determine whether i can use allocatable arrays, or whether i instead have to use "fixed size" arrays.
as you probably know, when using allocatable arrays, if they have already...
i'm using fortran 90/95.
i'm using a lot of (multi-dimensional) matrices.
forgetting about program performance / efficiency / etc, is there a limit to the number of dimensions each matrix can have ?
for example, say i have
REAL, DIMENSION ( IA , JA , KA , ... , ) :: A
where IA, JA, KA, etc...
i'm using fortran 90/95. i'm using derived type structures. some of these type structures contain other type structures (which, in turn, might contain other type structures, etc). for example, i might have the following :-
TYPE T_T1
TYPE (T_T2) :: T2
END TYPE T_T1
TYPE T_T2
TYPE (T_T3)...
all REAL variables need to be given a value (i.e. initialised) if they are to be either 1) written to the screen, or 2) written to a file, or 3) used in calculations. for example, a common way to initialise such variables is to set them equal to zero.
such variables include "CUMULATIVE SUM...
i'm a bit confused.
i'm using Fortran 90/95. i'm using modules; each module CONTAINS one (and only one) subroutine.
i want to use 'assumed shape arrays' in all of my subroutines. this means that, when declaring dummy argument arrays/matrices, i don't need to declare the dimensions of each...
i have a few questions about a program i'm writing in fortran 90. i've written a few explanation notes below, followed by my questions.
PRECISION IN FORTRAN 90
to enable portability between different computers, i'm declaring real variables using the KIND parameter, according to
integer...
i program in Fortran 90. i have a question about declaring parameterised real variables, as follows.
first, to enable portability between different computers, i'm declaring real variables using the KIND parameter, according to
integer, parameter :: PN_RL = selected_real_kind(p=15)...
This is a quick reply to a previous post. I tried to reply to the original post directly, but the post had been declared 'closed'. So, i'm posting my reply here (as a 'new' post), in the hope that people might find it helpful.
The original post that i'm replying to was called
''Function 'cosd'...
Hi all
I'm new to this forum. I have a problem in Fortran 90. It is described below.
The line 'IMPLICIT NONE' makes it impossible to implicitly declare VARIABLES. I'd like to know if there is a similar line (or way of declaring) that makes it impossible to implicitly declare STATEMENTS -- in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.