ADVANCED INFORMATION

TECHNOLOGY SOLUTIONS _____

 

Home         Products         Services         Free Quote         Site Map          Advanced Search          Contact .

 

 Strategic Outsourcing             Scientific Solutions              Business Applications           Software Tools .

 

 Talk to a representative > .

Home
Computing Index
Software Catalog
ASCII table
Free Source Code
Using the C Compiler
Emacs
Fortran
Matlab
Newsgroups
Postscript
Unix tutorial
Unix Command Summary
Free HTML/SGML tools

In this section:

<< | >>

In this sub-section:

\\

 

Sample GUI's >>>>>

Testimonial Laurent Favre, CEO, AlternativeSoft AG - http://www.alternativesoft.com/

"We have been working with [ITC Software] for more than 2 years now. We started with contract basis work and finally came to ODC which is completely dedicated for our tasks. High team stability, good proficiency and efficient administration support are the factors which bring high value to our collaboration."  ..../more

 

TED Ideas worth spreading.

Inspired talks by the
world's greatest
thinkers and doers >>

 

Climate Change >


> Decision Theory
 

 

 

Knowledge Center

Using Fortran

 


In order to program in FORTRAN (or any other language) you need to be able to write and edit a text file containing the actual code. (See emacs for an example of a text editor.)

The easiest way to run a FORTRAN program is to write it in a file with the extension .f, and use the command "make ". For example, suppose you created a file called "hello.f" containing the text:

      write (*,*) ' hello world '
      end

It is not obvious, but it is vital that each complete line of FORTRAN code begin with exactly six blank characters. This annoying "feature" is a holdover from the days when FORTRAN programs were prepared by punching cards. Interesting, eh?

To compile hello.f you simply type
   % make hello
and to run it you just type
   % hello

You can copy a version of this file to your working directory by giving the command

   cp labdemos/fortran/hello.f .

Note the "." at the end of this command. It is what tells cp that it should copy hello.f to your working directory.

More about the FORTRAN compiler

To find out more about the FORTRAN compiler type
   man f77

For example, the following f77 command has the same effect as the above make command:

   f77 -o hello hello.f

Content is available from University of Utah Mathematics Department >>  Disclaimers

 
Home    Site Map    FREE Quote    Advanced Search     About us      Meet the Team      Legal    Investors   Contact

© 2002-2008  ITC Software. All rights reserved. This site was last updated on 12/08/2008

Product and company names mentioned herein may be trademarks of their respective owners. info(at)itcsoftware.com
         

web metrics
 


Recommend this page: