|
PaStiX Handbook 6.4.0
|
This group describes how to use the solver with some examples. More...
Files | |
| file | analyze.c |
| A simple example that performs only the analyses steps onto the given graph. | |
| file | compress.c |
| A compression example that factorizes the matrix with the Just-In-Time strategy and Rank-Revealing kernels. | |
| file | personal.c |
| A step-by-step example with a personal ordering (identity). | |
| file | reentrant.c |
| A reentrant example that runs two threads then run two instances of the solver in each thread. | |
| file | refinement.c |
| A refinement example that runs iterative methods without applying the preconditioner (factorization and solve steps are not called). Based on the step-by-step example. | |
| file | schur.c |
| Schur usage example. | |
| file | simple.c |
| A simple example that reads the matrix and then runs pastix in one call. | |
| file | simple_dist_csc_symmetric_upper_4x4.c |
| Example demonstrating how to define a distributed sparse symmetric matrix from a matrix allocated by the user in CSC format and solve a linear system with it. | |
| file | simple_dist_csc_general_4x4_reuse.c |
| Example demonstrating how to perform analysis on a common pattern matrix of multiple problems, and then solve multiple numerical problems re-using the same analysis. | |
| file | simple_dist_csr_symmetric_lower_4x4.c |
| Example demonstrating how to define a distributed sparse symmetric matrix from a matrix allocated by the user in CSR format and solve a linear system with it. | |
| file | simple_dist_ijv_general_4x4.c |
| Example demonstrating how to define a distributed sparse matrix from a matrix allocated by the user in IJV format and solve a linear system with it. | |
| file | simple_dist_ijv_general_4x4_nospmcheck.c |
| Example demonstrating how to define a distributed sparse matrix out of a matrix allocated by the user in IJV format without requiring to call the expensive spmCheckAndCorrect function, and then solve a linear system with it. | |
| file | step-by-step.c |
| A step-by-step example that runs one full analyze (ordering, symbolic factorization, analyze), then loops over 2 factorizations that are both used for 2 solves each. | |
Functions | |
| void | pastixGetOptions (int argc, char **argv, pastix_int_t *iparam, double *dparam, int *check, int *scatter, spm_driver_t *driver, char **filename) |
| PaStiX helper function to read command line options in examples. | |
This group describes how to use the solver with some examples.
| void pastixGetOptions | ( | int | argc, |
| char ** | argv, | ||
| pastix_int_t * | iparam, | ||
| double * | dparam, | ||
| int * | check, | ||
| int * | scatter, | ||
| spm_driver_t * | driver, | ||
| char ** | filename | ||
| ) |
PaStiX helper function to read command line options in examples.
This function takes the command line arguments, and read the given parameters (integers and doubles), as well as the matrix filename and the driver to read it.
| [in] | argc | The number of input parameters |
| [in] | argv | The NULL terminated list of parameters |
| [in,out] | iparam | The integer array of parameters. On entry, must be initialized to the default value with pastixInitParam(), On exit, is updated with any option that matches the pastix parameters. |
| [in,out] | dparam | The double array of parameters. On entry, must be initialized to the default value with pastixInitParam(), On exit, is updated with any option that matches the pastix parameters. |
| [in,out] | check | On exit, the value is updated by the value of the -c option. |
| [in,out] | scatter | On exit, the value is updated by the value of the -a option. |
| [in,out] | driver | On exit, contains the driver type give as option. -1, if no driver is specified. |
| [out] | filename | The allocated string of the filename given with the driver. |
Definition at line 149 of file get_options.c.
References GETOPT_STRING, IPARM_FACTORIZATION, IPARM_GPU_NBR, IPARM_ORDERING, IPARM_SCHEDULER, IPARM_THREAD_NBR, IPARM_VERBOSE, pastix_usage(), PastixOrderMetis, PastixOrderParMetis, PastixOrderPersonal, PastixOrderPtScotch, and PastixOrderScotch.