home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / adaptor / examples / simple / readme < prev    next >
Text File  |  1993-06-22  |  3KB  |  73 lines

  1. README of directory simple:
  2. ===========================
  3.  
  4. simple.f : 
  5.  
  6.      Simple redution.
  7.  
  8. pi.f:
  9.  
  10.      Numerical integration for pi.
  11.  
  12. prime.f:
  13.  
  14.      Computation of number of primes in a range from 2 to N (input)
  15.  
  16.      For sieving the corresponding prime number is sent from the owner
  17.      node to all other nodes
  18.  
  19. prime1.f:
  20.  
  21.      The primes that are used for sieving are replicated on all nodes.
  22.  
  23. Some examples (tests) for the prime number programs:
  24.  
  25.    100        25 primes
  26.   1000       168 primes
  27.  10000      1229 primes
  28. 100000      9592 primes
  29.  
  30. There should be no restrictions in the use of this examples.
  31.  
  32. lprime.f: simpler version of prime.f (no dynamic arrays, no array syntax)
  33.  
  34. ca.f:     One-dimensional cellular automata (Fortran 90 version)
  35.  
  36. Attention in node.f
  37.  
  38.          DO I=1,N
  39.             HOST_FELD_SC1 = ADP_NODE_RECV_HA_L1()
  40.             IF (HOST_FELD_SC1) THEN
  41.             END IF
  42.          END DO
  43.  
  44.    The function call might be removed if the optimization assumes that
  45.    this function call has no side effect, but actually it has.
  46.  
  47. Output is:
  48.  
  49.                                        *                                       
  50.                                       * *                                      
  51.                                      *   *                                     
  52.                                     * * * *                                    
  53.                                    *       *                                   
  54.                                   * *     * *                                  
  55.                                  *   *   *   *                                 
  56.                                 * * * * * * * *                                
  57.                                *               *                               
  58.                               * *             * *                              
  59.                              *   *           *   *                             
  60.                             * * * *         * * * *                            
  61.                            *       *       *       *                           
  62.                           * *     * *     * *     * *                          
  63.                          *   *   *   *   *   *   *   *                         
  64.          ...........................................................
  65.          ...........................................................
  66.          ...........................................................
  67.          ...........................................................
  68.        *             *                                   *             *       
  69.       * *           * *                                 * *           * *      
  70.      *   *         *   *                               *   *         *   *     
  71.     * * * *       * * * *                             * * * *       * * * *    
  72. HOST STOP 
  73.