Fortran Maximum Number of Continuation Lines
Continuation lines in f90 (trouble?)
Continuation lines in f90 (trouble?)
| Author | Message |
|---|---|
| Let say you want to build a module containing large constant valued arrays: double precision, dimension(400), parameter :: x = & This statement can NOT fit into the f90 requirements: 1) Why does f90 include the latter restriction ??? 2) How should I circumvent this restriction in order to define the constant Best Regards, Jens B. Helmers | |
| Tue, 06 May 1997 22:44:57 GMT | |
| | |
| Let say you want to build a module containing large constant valued arrays: double precision, dimension(400), parameter :: x = & This statement can NOT fit into the f90 requirements: 2) How should I circumvent this restriction in order to define the constant Hmm, maybe you could build it up using smaller named constant arrays? Does seem kind of a drag to have to do that, though. Too bad | |
| Fri, 09 May 1997 13:39:52 GMT | |
| | |
| Quote: > This statement can NOT fit into the f90 requirements: > 1) Why does f90 include the latter restriction ??? > 2) How should I circumvent this restriction in order to define the constant These maximum restrictions on programs correspond to minimum To circumvent this limit, you could, as suggested by Craig Burley, DOUBLE PRECISION, PARAMETER, DIMENSION(25) :: X_01 = & DOUBLE PRECISION, PARAMETER, DIMENSION(400) :: X = & -- necessarily | |
| Sat, 10 May 1997 02:14:57 GMT | |
| | |
| Quote: > Let say you want to build a module containing large constant valued arrays: Of course your compiler may allow you to override the line continuation C234567 The price you may be reduced portability but on the other hand, at IBM ########## Opinions expressed here are mine, mine, mine. ############### | |
| Sun, 11 May 1997 00:02:55 GMT | |
| | |
| Quote: > Of course your compiler may allow you to override the line continuation The original poster was asking, I believe, about large _constant_ -- necessarily | |
| Sun, 11 May 1997 05:41:18 GMT | |
| | |
| Quote: > Let say you want to build a module containing large constant valued arrays: > double precision, dimension(400), parameter :: x = & > This statement can NOT fit into the f90 requirements: > 2) How should I circumvent this restriction in order to define the constant Since you should not care much about readability, just use double precision, parameter :: x00 = 1.834734464564556d0 With 3 character names like this, you can handle up to about dimension 1250. If it is not sufficient, define for instance x1to1250 (1250), x1251to2500 (1250) Michel --- | IFREMER: Institut Francais de Recherches pour l'Exploitation de la Mer| | |
| Sun, 11 May 1997 17:05:50 GMT | |
| | |
| Quote: > Let say you want to build a module containing large constant valued arrays: > double precision, dimension(400), parameter :: x = & > This statement can NOT fit into the f90 requirements: > 2) How should I circumvent this restriction in order to define the constant The same problem comes up if you try to initialize a non-parameter array as part of the initial Cheers, | |
| Thu, 15 May 1997 11:27:36 GMT | |
Powered by phpBB® Forum Software
Source: http://computer-programming-forum.com/49-fortran/a79ab45ec5afd1a3.htm
0 Response to "Fortran Maximum Number of Continuation Lines"
Post a Comment