NeoPZ
|
Tests for Decompose_Cholesky, Decompose_LDLt and MultAdd with Skyline Matrices. More...
#include <iostream>
#include <cstdlib>
#include "pzbfilestream.h"
#include "pzmd5stream.h"
#include "tpzdohrsubstruct.h"
#include "tpzdohrmatrix.h"
#include "tpzdohrprecond.h"
#include "pzdohrstructmatrix.h"
#include "pzstepsolver.h"
#include "pzcompel.h"
#include "pzgeoelbc.h"
#include "pzelast3d.h"
#include "pzbndcond.h"
#include "tpzdohrassembly.h"
#include "pzlog.h"
#include "tpzgensubstruct.h"
#include "tpzpairstructmatrix.h"
#include "pzviscoelastic.h"
#include "TPZTimer.h"
#include "TPZVTKGeoMesh.h"
#include "pzgeotetrahedra.h"
#include "pzskylstrmatrix.h"
#include "pzskylmat.h"
#include "tpzarc3d.h"
#include "pzvtkmesh.h"
#include <fstream>
#include <string>
#include "arglib.h"
#include "run_stats_table.h"
#include <sched.h>
Go to the source code of this file.
Classes | |
class | FileStreamWrapper |
Macros | |
#define | VERBOSE(level, ...) |
Functions | |
void | InsertElasticityCubo (TPZAutoPointer< TPZCompMesh > mesh) |
TPZGeoMesh * | MalhaCubo (string FileName) |
void | SetPointBC (TPZGeoMesh *gr, TPZVec< REAL > &x, int bc) |
Generate a boundary geometric element at the indicated node. More... | |
void | CopyTo (TPZSkylMatrix< REAL > *skylmat, TPZSkylMatrix< TPZFlopCounter > &fp_counter) |
void | PrintInfo (string funct, TPZCounter info) |
void | help (const char *prg) |
int | main (int argc, char *argv[]) |
Variables | |
clarg::argBool | h ("-h", "help message", false) |
clarg::argBool | print_flops ("-pf", "print floating point operations", false) |
clarg::argInt | verb_level ("-v", "verbosity level", 0) |
int | verbose |
clarg::argInt | porder ("-porder", "polinomial order", 1) |
clarg::argString | input ("-if", "input file", "cube1.txt") |
RunStatsTable | clk_rst ("-clk_rdt", "Decompose_Cholesky() statistics raw data table") |
RunStatsTable | ldlt_rst ("-ldlt_rdt", "Decompose_LDLt() statistics raw data table") |
RunStatsTable | sfwd_rst ("-sfwd_rdt", "Subst_Forward(...) statistics raw data table") |
RunStatsTable | sbck_rst ("-sbck_rdt", "Subst_Backward(...) statistics raw data table") |
RunStatsTable | mult_rst ("-mult_rdt", "MultAdd(...) statistics raw data table") |
RunStatsTable | sor_rst ("-sor_rdt", "SolveSOR(...) statistics raw data table") |
Tests for Decompose_Cholesky, Decompose_LDLt and MultAdd with Skyline Matrices.
Definition in file skyline.cpp.
#define VERBOSE | ( | level, | |
... | |||
) |
Definition at line 100 of file skyline.cpp.
void CopyTo | ( | TPZSkylMatrix< REAL > * | skylmat, |
TPZSkylMatrix< TPZFlopCounter > & | fp_counter | ||
) |
Definition at line 625 of file skyline.cpp.
References TPZMatrix< TVar >::Cols(), TPZSkylMatrix< TVar >::GetVal(), TPZSkylMatrix< TVar >::PutVal(), TPZSkylMatrix< TVar >::Redim(), TPZMatrix< TVar >::Rows(), TPZSkylMatrix< TVar >::SetSkyline(), and TPZSkylMatrix< TVar >::Size().
Referenced by main().
void help | ( | const char * | prg | ) |
Definition at line 84 of file skyline.cpp.
References clarg::arguments_descriptions(), h, print_flops, and verb_level.
Referenced by main().
void InsertElasticityCubo | ( | TPZAutoPointer< TPZCompMesh > | mesh | ) |
Definition at line 350 of file skyline.cpp.
References bc1, bc2, bc3, bc4, TPZMaterial::CreateBC(), TPZCompMesh::InsertMaterialObject(), TPZCompMesh::SetDimModel(), and TPZFMatrix< TVar >::Zero().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 178 of file skyline.cpp.
References TPZAnalysis::Assemble(), clk_rst, TPZMatrix< TVar >::Clone(), CopyTo(), TPZSkylMatrix< TVar >::Decompose_Cholesky(), TPZSkylMatrix< TVar >::Decompose_LDLt(), ECholesky, test::f, TPZFlopCounter::gCount, clarg::argT< T >::get_value(), help(), input, InsertElasticityCubo(), ldlt_rst, MalhaCubo(), TPZMatrixSolver< TVar >::Matrix(), mult_rst, TPZSkylMatrix< TVar >::MultAdd(), clarg::parse_arguments(), porder, PrintInfo(), test::res, sbck_rst, TPZStepSolver< TVar >::SetDirect(), TPZAnalysis::SetSolver(), TPZAnalysis::SetStructuralMatrix(), sfwd_rst, TPZAnalysis::Solver(), TPZSkylMatrix< TVar >::SolveSOR(), sor_rst, RunStatsTable::start(), RunStatsTable::stop(), TPZSkylMatrix< TVar >::Subst_Backward(), TPZSkylMatrix< TVar >::Subst_Forward(), pzgeom::tol, clarg::values(), RunStatsTable::was_set(), and clarg::arg_base::was_set().
TPZGeoMesh * MalhaCubo | ( | string | FileName | ) |
Definition at line 418 of file skyline.cpp.
References TPZGeoMesh::BuildConnectivity(), DebugStop, TPZGeoEl::Divide(), TPZGeoMesh::ElementVec(), TPZGeoEl::HasSubElement(), m, TPZGeoMesh::NElements(), TPZVec< T >::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoMesh::Print(), TPZVTKGeoMesh::PrintGMeshVTK(), stats::read(), TPZVec< T >::Resize(), SetPointBC(), and TPZGeoEl::WhichSide().
Referenced by main().
void PrintInfo | ( | string | funct, |
TPZCounter | info | ||
) |
void SetPointBC | ( | TPZGeoMesh * | gr, |
TPZVec< REAL > & | x, | ||
int | bc | ||
) |
Generate a boundary geometric element at the indicated node.
Definition at line 600 of file skyline.cpp.
References TPZGeoMesh::ElementVec(), TPZGeoMesh::FindNode(), gn, TPZGeoEl::NCornerNodes(), TPZChunkVector< T, EXP >::NElements(), and TPZGeoEl::NodePtr().
Referenced by MalhaCubo().
RunStatsTable clk_rst("-clk_rdt", "Decompose_Cholesky() statistics raw data table") |
Uncoment for parsing matrix from input Uncoment for md5 checking of resulting matrix Uncoment for dumping resulting matrix
Referenced by main().
clarg::argBool h("-h", "help message", false) |
Referenced by help().
clarg::argString input("-if", "input file", "cube1.txt") |
Referenced by TPZLadeKim::CheckConv(), TPZFileEqnStorage< TVar >::main(), main(), TPZCompMesh::ModifyPermute(), MultiDirectionsMaterialPointTest(), TPZDohrSubstructCondense< TTVar >::NumEquations(), TPZPlasticTest::PlasticIntegratorCheck(), TPZMatrixMarket::Read(), TPZRefPattern::TPZRefPattern(), and WriteInternal().
RunStatsTable ldlt_rst("-ldlt_rdt", "Decompose_LDLt() statistics raw data table") |
Referenced by main().
RunStatsTable mult_rst("-mult_rdt", "MultAdd(...) statistics raw data table") |
Referenced by main().
clarg::argInt porder("-porder", "polinomial order", 1) |
Referenced by TPZCompMesh::AdjustBoundaryElements(), TPZPostProcAnalysis::AutoBuildDisc(), TPZFlowCompMesh::ComputeTimeStep(), TPZMHMixedMeshControl::CreatePressureMHMMesh(), TPZMHMixedMeshControl::CreateRotationMesh(), TPZDiscontinuousGalerkin::GetIntegrationOrder(), main(), TPZMaterial::SetForcingFunction(), TPZDummyFunction< TVar >::SetPolynomialOrder(), TPZBuildMultiphysicsMesh::ShowShape(), TPZAnalysis::ShowShape(), and TPZMGAnalysis::UniformlyRefineMesh().
clarg::argBool print_flops("-pf", "print floating point operations", false) |
Referenced by help().
RunStatsTable sbck_rst("-sbck_rdt", "Subst_Backward(...) statistics raw data table") |
Referenced by main().
RunStatsTable sfwd_rst("-sfwd_rdt", "Subst_Forward(...) statistics raw data table") |
Referenced by main().
RunStatsTable sor_rst("-sor_rdt", "SolveSOR(...) statistics raw data table") |
Referenced by main().
clarg::argInt verb_level("-v", "verbosity level", 0) |
Referenced by help().
int verbose |
Definition at line 98 of file skyline.cpp.