https://github.com/ickc/thomson-problem-1d
https://github.com/ickc/thomson-problem-1d
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ickc/thomson-problem-1d
- Owner: ickc
- License: gpl-3.0
- Created: 2017-03-07T23:53:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T03:32:57.000Z (over 9 years ago)
- Last Synced: 2025-02-05T11:36:41.548Z (over 1 year ago)
- Language: C
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solving 1D "Thomson problem" with genetic algorithm in O(n^2)
- particles with identical charge on an interval between -L to L
- length L is chosen to be 1
- Simulation is from 0 to L by symmetry
- actual number of particles is 2n
# Usage
Local:
```bash
make clean && make -j
thomson-problem-1d -h
# examples
./scaling-n
./scaling-hybrid
./scaling-mpi
./scaling-openmp
```
On NERSC:
```bash
# compile (make sure the native flags are compile on the actual Cori node rather than login node)
sbatch ./compile-cori
# plot (output as CSV files)
sbatch ./scaling-n
sbatch ./scaling-hybrid
sbatch ./scaling-mpi
sbatch ./scaling-openmp
```