#!/bin/bash

echo -e "np\t| N\t| time/ite [s] "
echo -e "-------------------------------------"

for np in 1 2 3 4 5 6 8 10 12 15; do
    N=$((100 * np))
    mpiexec -n "$np" llg3d --N "$N" --Jx 600 --n_mean 0 --result_file run_$np.npz > /dev/null 2>&1
    time_per_ite=$(llg3d.extract run_$np.npz results/metrics/time_per_ite)
    echo -e "$np\t| $N\t| $time_per_ite"
done
