Skip to content

marcuskelly/Wator

Repository files navigation

Wa-Tor

Wa-Tor is a population dynamics simulation devised by Alexander Keewatin Dewdney and presented in the December 1984 issue of Scientific American in a 5-page article entitled "Computer Recreations: Sharks and fish wage an ecological war on the toroidal planet Wa-Tor".

Built With

  • Ubuntu 16.04 LTS - The OS used
  • SFML - The graphics library
  • C++ - The programming language
  • g++ - The compiler

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

SFML Simple and Fast Multimedia Library is used to display the simulation.

Instructions on how to install SFML on a Linux system can be found here.

Installing

Clone the repo

git clone https://github.com/marcuskelly/Wator.git

Change into Wator directory

cd Wator

Compile the program

make

Run the program

./start

Up and running

Alt text

Sequential Benchmarking

Benchmarking was carried out using a HP Notebook:

  • System Type- 64-bit OS, x64-based processor
  • Processor- Intel(R) Core(TM) i5-6200U, CPU @ 2.30GHz
  • RAM- 8.00 GB

The speed of the each iteration was measured in contrasting grid sizes. The grid sizes used are 40 x 40, 80 x 80, 160 x 160, 320 x 320. Statistics were collected for 5000 iterations for each grid size. This data is as follows:

Alt text

Alt text

Parallel Benchmarking

OpenMP was integrated into the application. Using the same machine stated above, the following statistics were observed.

Alt text

  • Above - 4 thread implementation Alt text

Alt text

  • Above - 8 thread implementation Alt text

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

Acknowledgments

Thanks to Karl Redmond and Ger Dobbs for their help getting SFML working on the MakeFile.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •