Page MenuHomec4science

gen_rows.sh
No OneTemporary

File Metadata

Created
Tue, Jun 17, 13:50

gen_rows.sh

#!/bin/bash
# Script that generates rows indices to be shared among the MPI taks if mpi_balanced
# Number of ion moments (must match Pmaxi,Jmaxi in fort.90 input file)
Pmaxi=10
Jmaxi=5
echo 'Create ion input rows rows_i_00.in'
for p in $(seq 0 $Pmaxi)
do
for j in $(seq 0 $Jmaxi)
do
echo "$p, $j " >> rows_i_00.in
done
done
echo 'and shuffle it into rows_i.in file ... '
shuf rows_i_00.in > rows_i.in
# Number of electrons moments (must match Pmaxe,Jmaxe in fort.90 input file)
Pmaxe=-1
Jmaxe=-1
echo 'Create electron input rows rows_e_00.in'
for p in $(seq 0 $Pmaxe)
do
for j in $(seq 0 $Jmaxe)
do
echo "$p, $j " >> rows_e_00.in
done
done
echo 'and shuffle it into rows_e.in file ... '
shuf rows_e_00.in > rows_e.in

Event Timeline