21 std::cout <<
"\nUsage: " << prg << std::endl;
22 std::cout <<
"Arguments: "<< std::endl;
28 static LoggerPtr logger(Logger::getLogger(
"pz.Cedric-Perf"));
36 int main (
int argc,
char **argv)
46 cerr <<
"Error when parsing the arguments!" << endl;
56 std::cout <<
"\nParameter out of avaliable limit.";
64 std::ofstream
arq(
"Errors.txt", ios::app);
76 for(
int D=0; D<nDiv; D++)
79 for(
int elem = 0; elem < nels; elem++)
84 if(dim > 0 && gel->
Dimension() != dim)
continue;
97 sumvol +=
fabs(filhos[nsubs]->Volume());
98 if(!
IsZero(volgel-sumvol)) {
99 std::cout <<
"Division of geometric element " << elem <<
" is wrong.\n";
Contains a class to record running statistics on CSV tables.
static void SetgOrder(int order)
Sets the value of the default interpolation order.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ fabs
REAL Volume()
Return the volume of the element.
bool IsZero(long double a)
Returns if the value a is close Zero as the allowable tolerance.
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
void InitializeAllUniformRefPatterns()
Initialize the uniform refinement pattern from hard coaded data for all linear geometric elements...
Implements a vector class which allows to use external storage provided by the user. Utility.
int MaterialId() const
Returns the material index of the element.
Contains declaration of TPZCompEl class which defines the interface of a computational element...
int64_t NElements() const
Number of elements of the mesh.
virtual void Divide(TPZVec< TPZGeoEl *> &pv)
Divides the element and puts the resulting elements in the vector.
void Run(int nsubdivisions, int geocase, int POrder, int MaterialId, std::ostream &out=std::cout)
TPZRefPatternDataBase gRefDBase
External variable to data base of patterns.
RunStatsTable cedric_rst("-ced_rdt", "TCedric::Run statistics raw data table.")
clarg::argInt porder("-p", "porder", 2)
clarg::argInt gcase("-g", "gcase", 1)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
clarg::argBool help("-h", "display the help message")
clarg::argInt nsub("-nsub", "number of substructures", 15)
#define DebugStop()
Returns a message to user put a breakpoint in.
int parse_arguments(int argc, char *argv[])
void arguments_descriptions(ostream &os, string prefix, string suffix)
virtual int HasSubElement() const =0
Return 1 if the element has subelements.
void BuildConnectivity()
Build the connectivity of the grid.
std::ofstream arq("Param.dat")
Output file with number of iteration made.
void InitializePZLOG()
Initializes log file for log4cxx with commom name log4cxx.cfg.
virtual int Dimension() const =0
Returns the dimension of the element.
void UniformRefinement(const int nDiv, TPZGeoMesh *gmesh, const int dim, bool allmaterial=false, const int matidtodivided=1)
This class implements a geometric mesh for the pz environment. Geometry.
const T & get_value() const
void ResetConnectivities()
Reset all connectivities.
virtual int NSubElements() const =0
Returns the number of subelements of the element independent of the fact whether the element has alr...
TPZAdmChunkVector< TPZGeoEl * > & ElementVec()
Methods for handling pzlists.