Code Comments
Programming Forum and web based access to our favorite programming groups.I am aware of several free (for research purposes) fortran 95 compilers for use in Linux, such as Intel or g95. I am interested to know, if any free editor exists in Linux and which do you prefer to work with. Thanks in advance for your comments.
Post Follow-up to this messageOn Tue, 19 Oct 2004 at 10:11 GMT, Angelo (aka Bruce) was almost, but not quite, entirely unlike tea: > I am aware of several free (for research purposes) fortran 95 > compilers for use in Linux, such as Intel or g95. I am interested to > know, if any free editor exists in Linux and which do you prefer to > work with. > > Thanks in advance for your comments. XEmacs. Although if I was starting from scratch, and didn't have my 148kb of init files investment, I'd probably recommend Emacs instead. Most elisp developers aim their stuff at Emacs, because it's the Free-er of the two. -- TimC -- http://astronomy.swin.edu.au/staff/tconnors/ Ws of coding can save you hours of planning. --unk
Post Follow-up to this messageasifaleras@hotmail.com (Angelo) writes:
| I am aware of several free (for research purposes) fortran 95
| compilers for use in Linux, such as Intel or g95. I am interested to
| know, if any free editor exists in Linux and which do you prefer to
| work with.
GNU emacs is nice. not the most «beginner friendly» editor, but after
you have got the main keystrokes in your fingers, and massage .emacs a
little, it is hard to beat. appended some of my personal .emacs
settings for fortran as an example. (e.g how to make emacs parse g95's
error messages)
Emacs can syntax highlight your code, let you invoke the compiler (M-x
compile RET) and automatically place the cursor on the line with an
error in the right file. a good interface for grep (M-x grep RET).
automatic upcasing of keywords if you like that. features like this
excist not only for fortran, but also python, matlab, C, C++, ... (you
may have to download packages for python and matlab support)
Emacs also supports comp.lang.fortran! (M-x gnus)
Helge
;; fortran mode. for info open a fortran file, and do "C-h m".
;; put the cursor on a variable name and do "C-h v" to see a
;; description of the variable
(add-hook 'fortran-mode-hook
(function (lambda ()
(local-set-key (kbd "C-m") 'fortran-indent-new-line)
(local-set-key (kbd "C-j") 'newline)
(fortran-auto-fill-mode 1)
(abbrev-mode 1)
(column-number-mode 1)
(setq fortran-comment-region "c ")
(setq fortran-comment-indent-style 'relative)
) ) )
;; identify all files ending with .F as Fortran 77
(setq auto-mode-alist
(cons '("\\.F$" . fortran-mode) auto-mode-alist))
(add-hook 'f90-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
;; (setq f90-break-delimiters "[\\*/= \t]")
(setq f90-indented-comment-re "!")
(setq f90-beginning-ampersand nil)
(local-set-key (kbd "C-m") 'f90-indent-new-line)
(local-set-key (kbd "C-j") 'newline)
(local-set-key (kbd "M-RET") 'f90-break-line)
(setq f90-smart-end 'no-blink)
;; (auto-fill-mode 1)
(setq f90-comment-region "! ")
;; (setq f90-directive-comment-re "!$\\(omp\\|OMP\\)")
(setq f90-do-indent 4)
(setq f90-if-indent 4)
;; (abbrev-mode 1)
(column-number-mode 1)
;; (setq f90-auto-keyword-case 'upcase-word)
(setq truncate-lines t)
)) )
;; all files ending with .F90 are fortran 90 files:
(setq auto-mode-alist
(cons '("\\.F90$" . f90-mode) auto-mode-alist))
;; make emacs grok g95 error messages: (can now jump to the right line)
(eval-after-load "compile"
'(setq compilation-error-regexp-alist
(cons '("^In file \\(.+\\):\\([0-9]+\\)" 1 2)
compilation-error-regexp-alist)))
Post Follow-up to this messageHelge Avlesen <avle@ii.uib.no> writes: > appended some of my personal .emacs settings for fortran as an example. (e .g > how to make emacs parse g95's error messages) Does anyone have the equivalent for Intel ifort? -- Gareth Owen
Post Follow-up to this messageGareth Owen <usenet@gwowen.freeserve.co.uk> writes: | > appended some of my personal .emacs settings for fortran as an example. (e.g | > how to make emacs parse g95's error messages) | | Does anyone have the equivalent for Intel ifort? that works by default(at least for me...) with GNU emacs 21.3 Helge
Post Follow-up to this messageAngelo wrote: > I am aware of several free (for research purposes) fortran 95 > compilers for use in Linux, such as Intel or g95. I am interested to > know, if any free editor exists in Linux and which do you prefer to > work with. > > Thanks in advance for your comments. I use ViM for just about everything on Linux, including editing source code in several languages, including Fortran. For that matter, I prefer use ViM for most purposes on Windows, too. John Bollinger jobollin@indiana.edu
Post Follow-up to this message
"Gareth Owen" <usenet@gwowen.freeserve.co.uk> wrote in message
news:r5iy8i27tf8.fsf@gill.maths.keele.ac.uk...
> Helge Avlesen <avle@ii.uib.no> writes:
>
>
> Does anyone have the equivalent for Intel ifort?
> --
> Gareth Owen
I use:
;; For ifort
(setq compilation-error-regexp-alist
(append compilation-error-regexp-alist
'(("^[A-Za-z ]+[:][A-Za-z ]+[:] \\([^.]+[.][a-zA-Z0-9]+\\), line
\\([0-9]+\\)[:]"
1 2))))
Regards,
Post Follow-up to this messageAngelo wrote: > I am aware of several free (for research purposes) fortran 95 > compilers for use in Linux, such as Intel or g95. I am interested to > know, if any free editor exists in Linux and which do you prefer to > work with. > > Thanks in advance for your comments. emacs
Post Follow-up to this messageAngelo wrote: > I am aware of several free (for research purposes) fortran 95 > compilers for use in Linux, such as Intel or g95. I am interested to > know, if any free editor exists in Linux and which do you prefer to > work with. > > Thanks in advance for your comments. GNU Emacs, hands down. There is also a Windows version available. -- "Well, I think if you say you're going to do something and don't do it, that's trustworthiness." - George W. Bush, Aug. 30, 2000
Post Follow-up to this messageI use Compaq Visual Fortran in Windows, which I personally think it is a very good choice as a programming environment. Is any other similar application, freeware for research purposes, available in Linux? I know that Absoft and Lahey / Fujitsu have also developed sophisticated programming applications, but not freeware. However, I noticed that most of the people use XEmacs. I am just asking if there exists a more friendly, but also efficient, freeware for research purposes, Fortran programming application, (www.nedit.org ? ). Thanks a lot in advance for your comments.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.