Skip to content
Snippets Groups Projects
Commit 5527f5f8 authored by Armin Damon Riess's avatar Armin Damon Riess
Browse files

Merge branch 'master' of gitlab.uzh.ch:armindamon.riess/nbody

parents 3aafad36 c01c82d4
No related branches found
No related tags found
No related merge requests found
plots/mid (0).png

18.6 KiB

plots/mid.png

18.5 KiB

import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt('mid.txt')
steps = np.linspace(0, len(data), len(data))
plt.plot(steps, data)
plt.savefig('mid.png')
\ No newline at end of file
#!/bin/bash
#SBATCH -n 64
#SBATCH --time=0:10:00
#SBATCH -n 48
#SBATCH --time=0:20:00
#SBATCH --job-name=nbody_run
#SBATCH --mem-per-cpu=2048
#SBATCH --output=slurm_output.txt
#SBATCH --error=slurm_error.txt
#SBATCH --open-mode=truncate
export OMP_NUM_THREADS=64
lscpu
export OMP_NUM_THREADS=48
cd build/
make
./nbody
cd ..
\ No newline at end of file
cd ..
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment