This is a discussion on variable names for different fortrans - Fortran ; I'm working someone who is writing some new code. He has showed me a bit of it: do nr=1,nrows do nc=1,ncols nareat=nareat+1 idcel(nr,nc)=nareat end do end do I find this is difficult to read, I prefer: do rowNumber = 1, ...
I'm working someone who is writing some new code. He has showed me a
bit of it:
do nr=1,nrows
do nc=1,ncols
nareat=nareat+1
idcel(nr,nc)=nareat
end do
end do
I find this is difficult to read, I prefer:
do rowNumber = 1, numberOfRows
do columnNumber = 1, numberOfColumns
dontKnowWhatThisIs = dontKnowWhatThisIs
cellNumber (rowNumber, columnNumber) = dontKnowWhatThisIs
end do
end do
At what version of Fortran is these longer names allowed (f77, f90,
f95?)
Do particular compilers have different rules for this?