Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. billgray1234

    Fortran 90, PUBLIC subroutines, and "local" variables within subroutines

    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...
  2. billgray1234

    fortran 90/95, recursive subroutines, and optional arguments

    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...
  3. billgray1234

    recursive subroutines and allocatable arrays

    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...
  4. billgray1234

    maximum allowable number of dimensions in a matrix ?

    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...
  5. billgray1234

    fortran 90/95 and derived type structures

    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)...
  6. billgray1234

    initialising REAL variables (to be equal to zero)

    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...
  7. billgray1234

    Fortran 90/95, assumed shape arrays, and interface blocks

    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...
  8. billgray1234

    fortran 90, precision, and intrinsic functions

    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...
  9. billgray1234

    declaring parameterised real variables

    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)...
  10. billgray1234

    RE: Function 'cosd' has no implicit type

    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'...
  11. billgray1234

    Implicit declaration of 'USE MODULE_NAME' statement

    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...

Part and Inventory Search

Back
Top