Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Subroutine ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 8225 of 8656
Post > Topic >>

Re: Subroutine header

by e p chandler <epc8@[EMAIL PROTECTED] > May 11, 2008 at 08:44 PM

On May 11, 5:58=A0pm, Stefan <stefan@[EMAIL PROTECTED]
> wrote:
> When writing programs/subroutines I usually give them 'header' like
> this:
>
> PROGRAM/SUBROUTINE EXAMPLE(a,b,...)
> ! Version: 1.01 =A0 =A0 Last modified: 11.01.2001.
> ! Parameters: a - first parameter
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 b - second -||-
> ! Calling: list of subroutines it calles, if any ...
> ! Part of: if part of a greater program (exclusivly)
> ! Compiled and tested with: CVF66c
> ! Modifications:
> ! - version number / date:
> ! =A0 short description of modification
>
> Do you have a similar habit and what do you include in those headers?
> How do you organize larger programs and determine what a certain
> subroutine does after not looking at it for a while ?
>
> Stefan

Most collections of routines have similar headers. Look at the source
files for any large collection of routines such as those on Netlib as
examples. Also look at their classification scheme (like GAMS) as a
way of organizing routines. Manuals for commercial libraries are also
available on the net, so you could look at those too.

Otherwise, I have two suggestions.

1. do whatever your organization does.
2. follow the instructions of he who writes your paycheck. :-).

- e
 




 3 Posts in Topic:
Subroutine header
Stefan <stefan@[EMAIL   2008-05-11 23:58:16 
Re: Subroutine header
e p chandler <epc8@[EM  2008-05-11 20:44:18 
Re: Subroutine header
Mark Westwood <markc.w  2008-05-12 08:24:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:25:31 CDT 2008.