NeoPZ
Classes | Macros | Functions | Variables
decompose.cpp File Reference

Tests for decompose_ldlt. More...

#include <iostream>
#include <cstdlib>
#include "pzbfilestream.h"
#include "pzmd5stream.h"
#include <fstream>
#include <string>
#include "pzlog.h"
#include "pzskylmat.h"
#include "arglib.h"
#include "run_stats_table.h"
#include <sched.h>
Include dependency graph for decompose.cpp:

Go to the source code of this file.

Classes

class  FileStreamWrapper
 

Macros

#define VERBOSE(level, ...)
 

Functions

void help (const char *prg)
 
int main (int argc, char *argv[])
 

Variables

clarg::argString ifn ("-ifn", "input matrix file name (use -bi to read from binary files)", "matrix.txt")
 
clarg::argInt affinity ("-af", "affinity mode (0=no affinity, 1=heuristi 1)", 0)
 
clarg::argInt verb_level ("-v", "verbosity level", 0)
 
int verbose
 
clarg::argInt mop ("-op", "Matrix operation", 1)
 
clarg::argBool br ("-br", "binary reference. Reference decomposed matrix file format == binary.", false)
 
clarg::argBool bi ("-bi", "binary input. Input file format == binary.", false)
 
clarg::argBool bd ("-bd", "binary dump. Dump file format == binary.", false)
 
clarg::argBool h ("-h", "help message", false)
 
clarg::argBool rea ("-rea", "reallocate matrix inside matrix.", false)
 
clarg::argInt mstats ("-mstats", "Matrix statistics vebosity level.", 0)
 
clarg::argInt maxcol ("-maxcol", "Limit computation to max column (Use Resize(maxcol)).", 0)
 
clarg::argString gen_dm_sig ("-gen_dm_md5", "generates MD5 signature for decomposed matrix into file.", "decomposed_matrix.md5")
 
clarg::argString chk_dm_sig ("-chk_dm_md5", "compute MD5 signature for decomposed matrix and check against MD5 at file.", "decomposed_matrix.md5")
 
clarg::argString chk_dm_error ("-chk_dm_error", "check the decomposed matrix error against a reference matrix. (use -br to read from binary files)", "ref_decomposed_matrix.txt")
 
clarg::argDouble error_tol ("-error_tol", "error tolerance.", 1.e-12)
 
clarg::argString dump_dm ("-dump_dm", "dump decomposed matrix. (use -bd for binary format)", "dump_matrix.txt")
 
clarg::argInt cholesky_blk ("-chol_blk", "Cholesky blocking factor", 256)
 
RunStatsTable total_rst ("-tot_rdt", "Whole program (total) statistics raw data table")
 
clarg::argInt nmats ("-nmats", "Number of matrizes to decompose simultaneously.", 1)
 
std::vector< TPZAutoPointer< TPZSkylMatrix< REAL > > > matrices
 

Detailed Description

Tests for decompose_ldlt.

Author
Edson Borin
Since
2012

Definition in file decompose.cpp.

Macro Definition Documentation

◆ VERBOSE

#define VERBOSE (   level,
  ... 
)

Definition at line 69 of file decompose.cpp.

Referenced by main().

Function Documentation

◆ help()

void help ( const char *  prg)

Definition at line 51 of file decompose.cpp.

References affinity, clarg::arguments_descriptions(), ifn, and verb_level.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ affinity

clarg::argInt affinity("-af", "affinity mode (0=no affinity, 1=heuristi 1)", 0)

Referenced by help().

◆ bd

clarg::argBool bd("-bd", "binary dump. Dump file format == binary.", false)

Referenced by TPZMGAnalysis::AppendMesh(), and main().

◆ bi

clarg::argBool bi("-bi", "binary input. Input file format == binary.", false)

Referenced by main().

◆ br

clarg::argBool br("-br", "binary reference. Reference decomposed matrix file format == binary.", false)

Referenced by main().

◆ chk_dm_error

clarg::argString chk_dm_error("-chk_dm_error", "check the decomposed matrix error against a reference matrix. (use -br to read from binary files)", "ref_decomposed_matrix.txt")

Referenced by main().

◆ chk_dm_sig

clarg::argString chk_dm_sig("-chk_dm_md5", "compute MD5 signature for decomposed matrix and check against MD5 at file.", "decomposed_matrix.md5")

Referenced by main().

◆ cholesky_blk

clarg::argInt cholesky_blk("-chol_blk", "Cholesky blocking factor", 256)

◆ dump_dm

clarg::argString dump_dm("-dump_dm", "dump decomposed matrix. (use -bd for binary format)", "dump_matrix.txt")

Referenced by main().

◆ error_tol

clarg::argDouble error_tol("-error_tol", "error tolerance.", 1.e-12)

Referenced by main().

◆ gen_dm_sig

clarg::argString gen_dm_sig("-gen_dm_md5", "generates MD5 signature for decomposed matrix into file.", "decomposed_matrix.md5")

Referenced by main().

◆ h

clarg::argBool h("-h", "help message", false)

◆ ifn

clarg::argString ifn("-ifn", "input matrix file name (use -bi to read from binary files)", "matrix.txt")

Referenced by help().

◆ matrices

std::vector< TPZAutoPointer<TPZSkylMatrix<REAL> > > matrices

Definition at line 141 of file decompose.cpp.

◆ maxcol

clarg::argInt maxcol("-maxcol", "Limit computation to max column (Use Resize(maxcol)).", 0)

Referenced by main().

◆ mop

clarg::argInt mop("-op", "Matrix operation", 1)

◆ mstats

clarg::argInt mstats("-mstats", "Matrix statistics vebosity level.", 0)

Referenced by main().

◆ nmats

clarg::argInt nmats("-nmats", "Number of matrizes to decompose simultaneously.", 1)

Referenced by main().

◆ rea

clarg::argBool rea("-rea", "reallocate matrix inside matrix.", false)

◆ total_rst

RunStatsTable total_rst("-tot_rdt", "Whole program (total) statistics raw data table")

Referenced by main().

◆ verb_level

clarg::argInt verb_level("-v", "verbosity level", 0)

Referenced by help().

◆ verbose

int verbose

Definition at line 67 of file decompose.cpp.

Referenced by main(), and TPZCompElDisc::PRefine().