|
[Sponsors] |
December 19, 2015, 15:34 |
colon in Fortran77
|
#1 |
Member
Join Date: Feb 2011
Posts: 41
Rep Power: 15 |
Hi,
I'm writing a Fortran77 code and it would be complied by gfortran or mpif90 (I have gcc 5.2.0 installed). I sometimes used colon for indicating the interested range of an array, is it a good practice for a Fortran77 code? For example, I have do i=1,Ny (some subroutine generates a new solu for every i) a(i,1:Ny) = solu end do where a is a 2D matrix of size (Nx,Ny) and solu is a 1D array of size Ny. I tested it and it seems to work good, but I'm concerned with any bug it might generate. The code is much more complicated than these lines. Do you have any suggestions? Thanks in advance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fortran77 or 90 | hosseinhgf | CFX | 2 | November 26, 2010 01:02 |
Simulation of a stirred miniplant extraction colon | PaMuelle | OpenFOAM | 0 | July 14, 2009 09:17 |
How can I find a free Fortran77 numerical library? | Alberto | Main CFD Forum | 3 | January 21, 2008 00:56 |
fortran77 help | khan | Main CFD Forum | 3 | June 12, 2007 00:24 |
Fortran77 or Fortran 90 | Swapnil | CFX | 2 | November 26, 2002 15:16 |