[Shootout-list] f95 count-words program mk 3

Simon Geard simon@whiteowl.co.uk
Sat, 26 Mar 2005 17:39:50 +0000


Isaac Gouy wrote:

>Simon continues to do great work contributing Fortran programs - don't
>read this as criticism.
>
>
>  
>
>>some minor updates that make the code clean and readable
>>    
>>
>
>Please contributors, spend a little more time before posting a program
>to be included in the Shootout 
>  
>
Guilty as charged! All I'll say in my defence is that I had already 
spent quite a long time on that program (fortran doesn't seem to do 
unformatted reads on stdin and doesn't have native variable-length 
strings) so I thought it was ready - but I'll do more design iterations 
next time.

>- do design iterations on your machine, or in a language newsgroup, and
>only then post it to Shootout
>
>- make sure the program gives correct output on your machine - check
>the output formating (complain if the benchmark page and existing
>programs don't show what the correct output should be)
>  
>
This is definitely the hard part. I have several fortran programs here 
(e.g. count-words and statistics) that produce identical output to the 
c++ versions and yet are marked as error on the web site. It would be 
helpful to me if I could see the command line that was actually used 
that caused the error. According to the web page the count-words program 
is run as

COMMAND LINE (%A is single numeric argument):

wc.ifc_run %A


yet this program requires stdin, and so presumably it is actually run as

wc.ifc_run < data


If the web site could show the actual command and its output then it would make it much easier to diagnose and fix the problem.


Simon