#!/bin/sh
# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
# HYPRE Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

#=============================================================================
# ij: Test aggressive coarsening interpolation options
#     1: 2s-ei interpolation 1 level (Pmx = 4)
#     2: 2s-std interpolation 1 level (Pmx = 4)
#     3: 2s-ext interpolation 1 level (tr = 0.3)
#     4: multipass interpolation 1 level
#     5: 2s-ei interpolation all levels (Pmx = 4)
#     6: 2s-std interpolation all levels (Pmx = 4)
#     7: 2s-ext interpolation all levels (tr = 0.3 P12_tr = 0.2)
#     8: multipass interpolation all levels
#     9: 2s-ei interpolation all levels (Pmx = 4, P12_mx = 3)
#    10: multipass interpolation all levels for systems problem unknown approach
#    11: 2s-ei interpolation all levels for systems problem unknown approach
#    12: multipass interpolation all levels for systems problem hybrid approach
#    13: 2s-ei interpolation all levels for systems problem hybrid approach
#    14: 2s-mod-ext interpolation 1 level (agg_Pmx 4) 
#    15: 2s-mod-ext interpolation 1 level (agg_tr 0.3) 
#    16: 2s-mod-ei-ext interpolation 1 level (agg_P12 6 agg_Pmx 4) 
#    17: 2s-mod-ext interpolation all levels for systems problem unknown approach
#    18: 2s-mod-ext interpolation all levels for systems problem hybrid approach
#    19: 2s-mod-ee interpolation 1 levels (agg_tr 0.3)
#    20: 2s-mod-ee interpolation all levels (agg_Pmx 4 agg_P12_mx 4)
#    22: multipass interpolation all levels (agg_Pmx 4 agg_P12_mx 4)
#=============================================================================

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 1 -agg_Pmx 4 -solver 1 -rlx 6 \
 > agg_interp.out.1

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 2 -agg_Pmx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.2

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 3 -agg_tr 0.3 -solver 1 -rlx 6 \
 >> agg_interp.out.3

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 4  -solver 1 -rlx 6 \
 >> agg_interp.out.4

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 8  -solver 1 -rlx 6 \
 >> agg_interp.out.4.1

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 9  -solver 1 -rlx 6 \
 >> agg_interp.out.4.2

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 1 -agg_Pmx 4 -solver 1 -rlx 6 \
 > agg_interp.out.5

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 2 -agg_Pmx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.6

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 3 -agg_tr 0.3 -agg_P12_tr 0.2 -solver 1 -rlx 6 \
 >> agg_interp.out.7

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 4 -solver 1 -rlx 6 \
 >> agg_interp.out.8

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 8 -solver 1 -rlx 6 \
 >> agg_interp.out.8.1

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 9 -solver 1 -rlx 6 \
 >> agg_interp.out.8.2

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 1 -agg_Pmx 4 -agg_P12_mx 3 -solver 1 -rlx 6 \
 > agg_interp.out.9

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 4 -solver 1 -rlx 6 \
 >> agg_interp.out.10

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 8 -solver 1 -rlx 6 \
 >> agg_interp.out.10.1

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 9 -solver 1 -rlx 6 \
 >> agg_interp.out.10.2

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 1 -agg_Pmx 4 -agg_P12_mx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.11

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 4 -nodal 1 -solver 1 -rlx 6 \
 >> agg_interp.out.12

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 8 -nodal 1 -solver 1 -rlx 6 \
 >> agg_interp.out.12.1

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 9 -nodal 1 -solver 1 -rlx 6 \
 >> agg_interp.out.12.2

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -agg_interp 1 -agg_Pmx 4 -agg_P12_mx 4 -nodal 1 -solver 1 -rlx 6 \
 >> agg_interp.out.13

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 5 -agg_Pmx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.14

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 5 -agg_tr 0.3 -solver 1 -rlx 6 \
 >> agg_interp.out.15

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 6 -agg_Pmx 4 -agg_P12_mx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.16

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -interptype 16 -agg_interp 5 -agg_Pmx 4 -agg_P12_mx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.17

mpirun -np 8 ./ij    -rhsrand -n 20 19 22 -P 2 2 2 -sysL 3 -nf 3 -agg_nl 10 -interptype 17 -agg_interp 5 -agg_tr 0.2 -agg_P12_tr 0.2 -nodal 1 -solver 1 -rlx 6 \
 >> agg_interp.out.18

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 1 -agg_interp 7 -interptype 18 -agg_tr 0.3 -solver 1 -rlx 8 \
 >> agg_interp.out.19

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 7 -agg_Pmx 4 -agg_P12_mx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.20

mpirun -np 2 ./ij -fromfile tst -agg_nl 1 -agg_interp 8 \
 >> agg_interp.out.21

mpirun -np 8 ./ij    -rhsrand -n 30 29 31 -P 2 2 2 -agg_nl 10 -agg_interp 8 -agg_Pmx 4 -agg_P12_mx 4 -solver 1 -rlx 6 \
 >> agg_interp.out.22
