Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/xiaoyeli/superlu
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed Nov 22, 2023
2 parents 92d12cc + b1082fd commit f9518bc
Show file tree
Hide file tree
Showing 38 changed files with 382 additions and 349 deletions.
7 changes: 7 additions & 0 deletions DOC/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
\page modules Modules
*/

/*!
\defgroup Common
\brief Common code shared within SuperLU.

Type-independent code.
*/

/*!
\defgroup Example
\brief Examples of how to use SuperLU.
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/clinsolx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_cdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
char equed[1];
Expand Down Expand Up @@ -56,8 +59,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/clinsolx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_cdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
/*
Expand Down Expand Up @@ -70,8 +73,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
7 changes: 4 additions & 3 deletions EXAMPLE/clinsolx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_cdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
/*!
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down Expand Up @@ -274,7 +275,7 @@ int main(int argc, char *argv[])
*/
void
parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans )
float *u, yes_no_t *equil, trans_t *trans )
{
int c;
extern char *optarg;
Expand Down
7 changes: 4 additions & 3 deletions EXAMPLE/clinsolx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_cdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program CLINSOLX2.
*
Expand Down Expand Up @@ -65,8 +68,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down Expand Up @@ -269,7 +270,7 @@ int main(int argc, char *argv[])
*/
void
parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans )
float *u, yes_no_t *equil, trans_t *trans )
{
int c;
extern char *optarg;
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/dlinsolx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_ddefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
char equed[1];
Expand Down Expand Up @@ -56,8 +59,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/dlinsolx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_ddefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program DLINSOLX1.
*
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/dlinsolx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_ddefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program DLINSOLX2.
*
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/dlinsolx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_ddefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program DLINSOLX2.
*
Expand Down Expand Up @@ -65,8 +68,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/slinsolx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_sdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
char equed[1];
Expand Down Expand Up @@ -56,8 +59,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/slinsolx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_sdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
/*
Expand Down Expand Up @@ -70,8 +73,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
7 changes: 4 additions & 3 deletions EXAMPLE/slinsolx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_sdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program SLINSOLX2.
*
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down Expand Up @@ -274,7 +275,7 @@ int main(int argc, char *argv[])
*/
void
parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans )
float *u, yes_no_t *equil, trans_t *trans )
{
int c;
extern char *optarg;
Expand Down
7 changes: 4 additions & 3 deletions EXAMPLE/slinsolx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_sdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
float *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program SLINSOLX2.
*
Expand Down Expand Up @@ -65,8 +68,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down Expand Up @@ -269,7 +270,7 @@ int main(int argc, char *argv[])
*/
void
parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans )
float *u, yes_no_t *equil, trans_t *trans )
{
int c;
extern char *optarg;
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/zlinsolx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_zdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

int main(int argc, char *argv[])
{
char equed[1];
Expand Down Expand Up @@ -56,8 +59,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/zlinsolx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_zdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program ZLINSOLX1.
*
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/zlinsolx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_zdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program ZLINSOLX2.
*
Expand Down Expand Up @@ -66,8 +69,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
5 changes: 3 additions & 2 deletions EXAMPLE/zlinsolx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ at the top-level directory.
#include <getopt.h>
#include "slu_zdefs.h"

void parse_command_line(int argc, char *argv[], int *lwork,
double *u, yes_no_t *equil, trans_t *trans);

/*!
* \brief The driver program ZLINSOLX2.
*
Expand Down Expand Up @@ -65,8 +68,6 @@ int main(int argc, char *argv[])
SuperLUStat_t stat;
FILE *fp = stdin;

extern void parse_command_line();

#if ( DEBUGlevel>=1 )
CHECK_MALLOC("Enter main()");
#endif
Expand Down
8 changes: 1 addition & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,9 @@ are described below.
To install the library, type:
make install

To run the installation test, type:
To run the regression tests, type:
make test (or: ctest)

The test results are in the files below:
build/TESTING/s_test.out # single precision, real
build/TESTING/d_test.out # double precision, real
build/TESTING/c_test.out # single precision, complex
build/TESTING/z_test.out # double precision, complex


2. Manual installation with makefile.
Before installing the package, please examine the three things dependent
Expand Down
2 changes: 0 additions & 2 deletions SRC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ set(sources
mc64ad.c
qselect.c
input_error.c
dmach.c
smach.c
)

set_source_files_properties(superlu_timer.c PROPERTIES COMPILE_FLAGS -O0)
Expand Down
Loading

0 comments on commit f9518bc

Please sign in to comment.