12.07.2015 Views

Contents

Contents

Contents

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 2 Motivation2.4.4 Frequent ErrorsErrors are frequently associated with misspelling such as “0” (zero) instead of theletter “o” or vice versa, or mistaking “1” (one) as the letter “l”. Often an ENDDO,ENDIF or a bracket is just missing.2.4.5 Trust Your CompilerImportant is to always trust the compiler. If there is an error message then there is anerror in your code. The error message text might be misleading, but the presence ofat least one error is a fact. In a state of frustration after endless unsuccessful searchafter errors, the reader should take a good rest, perhaps a walk or a sleep. Breaks arealways important!2.4.6 Display WarningsWarnings can be displayed with addition of “-Wall” (display all warnings) in thecompiling command. For Exercise 1, for example, this command reads:g95 -Wall -o winethief.exe winethief.f95Warning messages should be explored for potential errors in the code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!