lonestarlong.blogg.se

Simply fortran serial number
Simply fortran serial number








program first integer, parameter : : rkind=8 integer : : i real(kind=rkind) : : a logical : : ltmp i=-10 a=5.Use readable names as much as possible Valid var names: time, my_own_data Invalid names: A$, 3_daysĮxamples Declaration Execution Termination.Variables: values may change during the execution (so why do we need constants? ).Constants: does not change thru’out the execution.

simply fortran serial number

Name can contain up to 31 chars, with combination of alphabets, digits and ‘_’ it must start with an alphabet.I personally use lower case thru’out: pick a style and stick to it!! (or, grep –i can help somewhat).A legacy from F 77 era and a major sore point for modern programmers.Characters are not case sensitive (so ‘write’ is same as ‘WRITE’ or ‘Write’).Treat inline comments seriously (this is your live documentation & 1 st line of help for readers!).Comments can be inserted anywhere (and you are highly encouraged to do so!).

simply fortran serial number

  • Termination section: statement(s) stopping the execution of the program.
  • Execution section: usually the main part statements describing the actions to be performed by the program.
  • Declaration section: non-executable statements at the start of program that define the variables used.









  • Simply fortran serial number