Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Learning how to code

ignacio82
Beginner
5,314 Views
Hi,

I'm trying to learn how to program in fortran. I'm reading "Numerical Methods in Economics by Kenneth L. Judd"

Can someone recomend me a forum to ask questions (very basic questions) about how to code?

Thanks a lot

Ignacio
0 Kudos
43 Replies
TimP
Honored Contributor III
321 Views
The 6 part is a holdover from 30 years ago, before * was introduced. In the old days, unit 6 was the usual (but not universal) designation for the standard output device (printer, screen). The A format field matches the literal character string of the write, and F6.1 specifies a format of 6 numerical characters, including a decimal point with 1 place after decimal.
Assuming you have a reasonable textbook, that text might skip over some of the more archaic features which wouldn't normally be required in your beginning efforts. Even better would be if it didn't mix styles from different eras, as this example does.
0 Kudos
Mike_Rezny
Novice
321 Views
Quoting - tim18
The 6 part is a holdover from 30 years ago, before * was introduced. In the old days, unit 6 was the usual (but not universal) designation for the standard output device (printer, screen). The A format field matches the literal character string of the write, and F6.1 specifies a format of 6 numerical characters, including a decimal point with 1 place after decimal.
Assuming you have a reasonable textbook, that text might skip over some of the more archaic features which wouldn't normally be required in your beginning efforts. Even better would be if it didn't mix styles from different eras, as this example does.

Hi,
I would strongly suggest buying a good Fortran book: I use and would highly recommend:
Fortran 95/2003 For Scientists and Engineers by Stephen J. Chapman.
It is text book with many examples to work on.

Secondly, nothing beats having the Intel Fortran Manual at your fingertips. Although I use Fortran only on Linux,
I have it also as an icon on my Windows Laptop. Thatwas one of the most productive decisions I have made.

Thirdly, even though I work on mainly large projects, I have a test directory containing a number of subdirectories
each of which is a small experiment I needed to make. Typically each directory contains a small source file and a Makefile. These test directories are then reminders or snapshots of how I solved particular problems.

So, as an example, if I needed to understand something about unit 6 or *, I create a new directory, write a small example and try to understand what is going on. The code, some comments and the makefile are then invaluable
later on when you need to incorporate or understand what is going on in larger projects.

regards
Mike
0 Kudos
Reply