#!/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: Run default case with different smoothers
#    1: hybrid SOR on 3 procs
#    2: hybrid scaled symGS on 4 procs. with scaled opt. outer wt on fine level
#    3: hybrid GS on 4 procs with backward solve GS on up cycle
#    4: hybrid GS, no CF-relaxation, on 4 procs
#    5: hybrid SOR on 4 procs, determine a weight automatically
#    6: use Schwarz smoothing on first level 
#    7: use Schwarz smoothing on first level with automatic weight determination
#    8: use 3 level Schwarz smoothing with automatic weight determination
#       followed by SSOR with automatic weight determination
#    9: CF Jacobi on 3 procs
#   10: CF L1 Jacobi on 3 procs
#   11: L1 Jacobi on 3 procs
#   12: L1 Gauss-Seidel on 4 procs
#   13: Polynomial (Chebyshev 2nd order) on 4 procs
#   14: Polynomial (Chebyshev 3rd order) on 4 procs
#   15: FCF Jacobi on 4 procs
#   16: CG smoother on 4 procs
#   17-20: Polynomial (Chebyshev 2nd order) with various options
#=============================================================================

mpirun -np 3  ./ij -rhsrand -n 15 30 10 -w 1.1 -owl 1.0 0 \
 > smoother.out.0

mpirun -np 4  ./ij -rhsrand -n 15 15 10 -P 2 2 1 -rlx 6 -owl -10 0 \
 > smoother.out.1

mpirun -np 4  ./ij -rhsrand -n 20 20 10 -P 2 2 1 -rlx_up 4 \
 > smoother.out.2

mpirun -np 4  ./ij -rhsrand -n 20 20 10 -P 2 2 1 -CF 1 \
 > smoother.out.3

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 6 -n 20 20 10 -P 2 2 1 \
-w -10 > smoother.out.4

mpirun -np 3  ./ij -rhsrand -fromfile schw -agg_nl 1 -smlv 1 > smoother.out.5

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 6 -n 20 20 10 -P 2 2 1 \
-sysL 2 -nf 2 -smlv 1 -smtype 6 -dom 1 -ov 0 -var 1 -ow -10 -sw -10 \
> smoother.out.6

mpirun -np 4  ./ij -rlx 6 -n 20 20 10 -P 2 2 1 -sysL 3 -nf 3 -smlv 3 \
-smtype 6 -dom 1 -ov 0 -w -10 -sw -10 \
> smoother.out.7

mpirun -np 3  ./ij -rhsrand -n 15 30 10 -rlx 0 -CF 1 \
> smoother.out.8

mpirun -np 3  ./ij -rhsrand -n 15 30 10 -rlx 18 -CF 1 \
> smoother.out.9

mpirun -np 3  ./ij -rhsrand -n 15 30 10 -rlx 18 \
> smoother.out.10

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 8 -n 20 20 10 -P 2 2 1 \
> smoother.out.11

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 16 -n 20 20 10 -P 2 2 1 \
> smoother.out.12

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 16 -cheby_order 3 -n 20 20 10 \
 -P 2 2 1 > smoother.out.13

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 17 -n 20 20 10 -P 2 2 1 \
> smoother.out.14

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 15 -n 20 20 10 -P 2 2 1 \
> smoother.out.15

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 16 -cheby_scale 0 -n 20 20 20 \
-P 2 2 1 -27pt > smoother.out.16

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 16 -cheby_variant 1 -n 20 20 20 \
-P 2 2 1 > smoother.out.17

mpirun -np 4  ./ij -solver 3 -rlx 16 -cheby_eig_est 0 -n 40 40 20 \
-P 2 2 1 -difconv -a 10 10 10  > smoother.out.18

mpirun -np 4  ./ij -rhsrand -solver 1 -rlx 16 -rotate -alpha 60 -eps 0.1 -cheby_fraction 0.2 -n 200 200 1 \
-P 2 2 1 > smoother.out.19

mpirun -np 4  ./ij -solver 1 -rlx 16 -cheby_eig_est 5 -n 40 40 20 \
-P 2 2 1 -vardifconv -eps 0.1  > smoother.out.20

mpirun -np 4  ./ij -solver 1 -rlx 16 -cheby_eig_est 10 -cheby_scale 0 -n 40 40 20 -P 2 2 1 \
> smoother.out.21

mpirun -np 4  ./ij -solver 1 -rlx 16 -cheby_eig_est 10 -cheby_scale 1 -n 40 40 20 -P 2 2 1 \
> smoother.out.22

mpirun -np 4  ./ij -solver 1 -rlx 16 -cheby_eig_est 0 -cheby_scale 1 -n 40 40 20 -P 2 2 1 \
> smoother.out.23

mpirun -np 4  ./ij -solver 1 -rlx 16 -cheby_eig_est 0 -cheby_scale 0 -n 40 40 20 -P 2 2 1 \
> smoother.out.24



