CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Fortran editor for Linux

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2007, 08:15
Default Fortran editor for Linux
  #1
Praveen. C
Guest
 
Posts: n/a
Is there any editor with good support for fortran ? I am looking for an editor which has features to manage a big fortran project with multiple files. In Linux only.
  Reply With Quote

Old   August 22, 2007, 15:39
Default Re: Fortran editor for Linux
  #2
Harish
Guest
 
Posts: n/a
If you use the KDE environment you can use kdevelop to manage fortran projects.
  Reply With Quote

Old   August 22, 2007, 15:47
Default Re: Fortran editor for Linux
  #3
jinwon park
Guest
 
Posts: n/a
Now, I am using just the vim editor. It looks very simple and easy to use. However, one needs to memory some commands for the effective use.
  Reply With Quote

Old   August 23, 2007, 08:16
Default Re: Fortran editor for Linux
  #4
Arpiruk
Guest
 
Posts: n/a
Once you are expert at VIM, no other editor can beat it. But I'm quite lazy and found myself stuck with NEDIT.

It's not a software management but pretty goot at multi-file editing. Syntax hightlight, statistic line and line numbering and other function made it useful in editing and debuging.
  Reply With Quote

Old   August 23, 2007, 08:38
Default Re: Fortran editor for Linux
  #5
andy
Guest
 
Posts: n/a
Emacs version 22.1 released in June (not the older one that comes with your distribution) is probably the best for most people. In this version a lot of the unconventional stuff has been replaced so that it points-and-clicks like a conventional editor, includes a gui driven interactive debugger plus, of course, the billions of lisp scripts to support indentation, highlighting, commenting, etc... To manage a large project one usually emacs interfaces to separate tools like subversion/cvs , make, etc...

  Reply With Quote

Old   August 23, 2007, 23:40
Default Re: Fortran editor for Linux
  #6
taw
Guest
 
Posts: n/a
I go with Andy, I don't know the new version, but emacs is the best i know till now, but on debian. They have the tutorial online also, which you can study in few hours. The coloring of the syntaxes, commenting etc can be enabled for fortran itself.

Cheers
  Reply With Quote

Old   August 24, 2007, 03:45
Default Re: Fortran editor for Linux
  #7
Praveen. C
Guest
 
Posts: n/a
Thanks for all the suggestions. I have used only vim and I am usually happy with it. But now I am working with a huge fortran code. I would like to be able to easily navigate between different subroutines without having to search manually for them. I will try out emacs also.
  Reply With Quote

Old   August 24, 2007, 04:59
Default Re: Fortran editor for Linux
  #8
Steve
Guest
 
Posts: n/a
One thing worth knowing is the emacs itself has a VI emulator with user-settings for how close to VI it behaves. And you get the graphical benefits of emacs for free (point & click etc).

In emacs, use the command: "viper". (Stands for VI PERil)
  Reply With Quote

Old   August 24, 2007, 05:03
Default Re: Fortran editor for Linux
  #9
andy
Guest
 
Posts: n/a
In vim you can use tags to jump around. In emacs you can use the speedbar which is usually off by default or tags if you prefer.

If you want a Windows-type integrated environment there is eclipse with the photran extension (or a word something like photran) for Fortran but it does not work 100%. Eclipse works well for Java, OKish for C/C++ but with Fortran support lagging somewhat.

An alternative that is well sorted is the Sun Integrated Development Environment which fully supports java, c/c++ and fortran and in several instances has better programming tools than the gnu ones.

  Reply With Quote

Old   August 24, 2007, 12:21
Default Re: Fortran editor for Linux
  #10
Praveen. C
Guest
 
Posts: n/a
emacs with speedbar looks interesting. Also taglist with vim/gvim also does similar job. In emacs I havent got indenting etc. to work well for fortran. Is there something I have to enable? Can somebody paste their .emacs settings for fortran?
  Reply With Quote

Old   August 24, 2007, 15:53
Default Re: Fortran editor for Linux
  #11
andy
Guest
 
Posts: n/a
> In emacs I havent got indenting etc. to work well for fortran. Is there
: something I have to enable?

The only problem I can recall concerned something called freeze which seemed to get triggered by a .F ending.

What problems are you seeing with indentation?

> Can somebody paste their .emacs settings for fortran?

;;Hopefully this turns off the freeze business for .F files

(setq crypt-freeze-vs-fortran nil)

  Reply With Quote

Old   August 25, 2007, 00:02
Default Re: Fortran editor for Linux
  #12
taw
Guest
 
Posts: n/a
Hi I am not expert on setting environments, some one set it for me & indenting work fine with me as long as the file is named *.f, .F, .F90, .for. etc.

May be look thru this .emacs file, mind you my setting deliberately disabled CVS since it was a bit of annoying to me.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&

(mouse-wheel-mode t)

(toggle-transient-mark-mode)

(global-font-lock-mode 1)

(custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!

;; Your init file should contain only one such instance. '(vc-handled-backends (quote (CVS SCCS))))

(custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!

;; Your init file should contain only one such instance. )

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&

cheers taw
  Reply With Quote

Old   August 27, 2007, 07:32
Default Re: Fortran editor for Linux
  #13
Praveen. C
Guest
 
Posts: n/a
If I am editing a file ending in .f it should automatically do the indenting. But it does not work. In viper mode indenting works but not fully. For example if I start a do-loop indentation occurs but for "enddo" the indenting is wrong.
  Reply With Quote

Old   August 27, 2007, 08:38
Default Re: Fortran editor for Linux
  #14
andy
Guest
 
Posts: n/a
It does not know you are going to type end do until you have typed it. If you press the tab after typing end do but before hitting return it will indent.

  Reply With Quote

Old   August 27, 2007, 08:57
Default Re: Fortran editor for Linux
  #15
Praveen. C
Guest
 
Posts: n/a
Thanks for that information. In vim I dont have to press tab at all. Indentation is fully automatic. As soon as I type enddo it is automatically correctly indented. But in emacs you have to press tab for every indentation.
  Reply With Quote

Old   August 27, 2007, 21:50
Default Re: Fortran editor for Linux
  #16
taw
Guest
 
Posts: n/a
A comment still if it will help,

Your approach is new to me. I do it as follows. I just type my script, select or highlight it. Then in emacs in the menu bar there will be "Fortran" bar. I select indent region or sub-program etc, may be yours is short, I will try it.

Cheers, TAw
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Compiler-CFX12.1 Araz CFX 11 February 14, 2012 07:36
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 22:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 15:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34


All times are GMT -4. The time now is 16:40.