Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/benchmarks/programs/b-hut/README
ViewVC logotype

Annotation of /sml/trunk/benchmarks/programs/b-hut/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193 - (view) (download)

1 : monnier 193 This is an ML version of the "Barnes-Hut" N-Body code. It is based on
2 :     the third release of the C version written by Joshua E. Barnes (see
3 :     c-version/Readme for details). It produces answers that are essentially
4 :     identical to the C version (there is occasionally an off-by-one error
5 :     in the least significant digit when printing the particle data, but this
6 :     is probably a difference in the rounding in the output libraries). You
7 :     will need the SML/NJ library to compile this code, and you may need to
8 :     patch the library path in the load file.
9 :    
10 :     This implementation is functorized over the dimension of space (specified
11 :     by the Vector structure). To compile the code, type
12 :    
13 :     use "load-all";
14 :    
15 :     then apply the Main functor to either the 2 or 3-dimensional vector
16 :     structure (Vector2 or Vector3). For example:
17 :    
18 :     structure M3 = Main (Vector3);
19 :    
20 :     produces the 3-dimensional version. To run, type
21 :    
22 :     M3.doit();
23 :    
24 :     this will prompt you for parameters.
25 :    
26 :     ACKNOWLEDGEMENTS:
27 :     a lot of the control structure was stolen from an ML version of Barnes-Hut
28 :     written by Lorenz Huelsbergen at the University of Wisconsin.
29 :    
30 :     BUGS:
31 :     None known at this time.
32 :    
33 :    
34 :     John Reppy
35 :     AT&T Bell Laboratories
36 :     Murray Hill, NJ 07974
37 :     jhr@research.att.com
38 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0