Fortran Extensions
Posted: Thu Nov 10, 2005 5:09 pm
A lot of the newer fortran languages use
.f90 or .f95 in additions to .for as language extensions.
Also there are some addtional ways to end folding options that seem to be missing
you have
DO
END DO
but
DO
ENDDO
also works
similarly
IF()THEN
END IF
works but you also need
IF()THEN
ENDIF
Another thing that works is
IF()THEN
ELSE
END IF
but not
IF()THEN
ELSE
ENDIF
If I use the format
IF()THEN
ELSE IF()THEN
ELSE IF()THEN
ELSE IF()THEN
END IF
the last ELSE IF collapses find, but the IF THEN and other ELSE IF's collapse to who knows where.
If I use the format
IF()THEN
ELSEIF()THEN
ELSEIF()THEN
ELSEIF()THEN
END IF
it works pretty good. All the ELSEIF's are not recognized as part of the structure and the entire thing collapses from IF THEN the END IF.
One work around is for me to convert all my ENDIF and ENDDO to END IF and END DO and learn to separate the words.
I rarely use ELSE IF, so this one also works.
The big thing I need is for F90 and F95 extensions to be part of FOR code.
.f90 or .f95 in additions to .for as language extensions.
Also there are some addtional ways to end folding options that seem to be missing
you have
DO
END DO
but
DO
ENDDO
also works
similarly
IF()THEN
END IF
works but you also need
IF()THEN
ENDIF
Another thing that works is
IF()THEN
ELSE
END IF
but not
IF()THEN
ELSE
ENDIF
If I use the format
IF()THEN
ELSE IF()THEN
ELSE IF()THEN
ELSE IF()THEN
END IF
the last ELSE IF collapses find, but the IF THEN and other ELSE IF's collapse to who knows where.
If I use the format
IF()THEN
ELSEIF()THEN
ELSEIF()THEN
ELSEIF()THEN
END IF
it works pretty good. All the ELSEIF's are not recognized as part of the structure and the entire thing collapses from IF THEN the END IF.
One work around is for me to convert all my ENDIF and ENDDO to END IF and END DO and learn to separate the words.
I rarely use ELSE IF, so this one also works.
The big thing I need is for F90 and F95 extensions to be part of FOR code.