Driver program for PDGSSVX3D example.
Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt at the top-level directory.
-- Distributed SuperLU routine (version 8.1.0) --
Lawrence Berkeley National Lab, Georgia Institute of Technology,
Oak Ridge National Lab
May 12, 2021
August 27, 2022 Add batch option
*/
/*!
Purpose
=======
The driver program PDDRIVE3D.
This example illustrates how to use PDGSSVX3D with the full
(default) options to solve a linear system.
Five basic steps are required:
1. Initialize the MPI environment and the SuperLU process grid
2. Set up the input matrix and the right-hand side
3. Set the options argument
4. Call pdgssvx
5. Release the process grid and terminate the MPI environment
The program may be run by typing
mpiexec -np
pddrive3d -r <proc rows> -c <proc columns> \
-d <proc Z-dimension> <input_file>
NOTE: total number of processes p = r * c * d
d must be a power-of-two, e.g., 1, 2, 4, ...