MCPcopy Create free account
hub / github.com/Kitware/VTK / PrintSelf

Method PrintSelf

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:72–187  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

70
71//------------------------------------------------------------------------------
72void vtkStructuredAMRGridConnectivity::PrintSelf(std::ostream& os, vtkIndent indent)
73{
74 this->Superclass::PrintSelf(os, indent);
75 os << "=====================\n";
76 os << "DATA DIMENSION: " << this->DataDimension << std::endl;
77 os << "WHOLE EXTENT: [";
78 for (int i = 0; i < 6; ++i)
79 {
80 os << this->WholeExtent[i] << " ";
81 }
82 os << "]\n";
83 os << "TOTAL NUMBER OF LEVELS:" << this->NumberOfLevels << std::endl;
84 os << "TOTAL NUMBER OF GRIDS:" << this->NumberOfGrids << std::endl;
85 if (this->HasConstantRefinementRatio())
86 {
87 os << "CONSTANT REFINEMENT RATIO: " << this->RefinementRatio << std::endl;
88 }
89 else
90 {
91 os << "VARIABLE REFINEMENT RATIO\n";
92 }
93
94 int gridExtent[6];
95 int neiExtent[6];
96 for (unsigned int gridId = 0; gridId < this->NumberOfGrids; ++gridId)
97 {
98 os << "=====================\n";
99 os << "GRID[" << gridId << "] ";
100 os << "LEVEL=" << this->GetGridLevel(gridId) << " ";
101 os << "EXTENT: ";
102 this->GetGridExtent(gridId, gridExtent);
103 this->PrintExtent(os, gridExtent);
104 os << std::endl;
105 if (!this->GhostedExtents.empty())
106 {
107 assert("pre: ghosted extents vector is not properly allocated" &&
108 (this->GhostedExtents.size() / 6 == this->NumberOfGrids));
109 os << "GHOSTED EXTENT: ";
110 int ghostedExt[6];
111 this->GetGhostedExtent(gridId, ghostedExt);
112 this->PrintExtent(os, ghostedExt);
113 os << std::endl;
114 }
115
116 os << std::endl;
117 os << "Connecting faces: " << this->GetNumberOfConnectingBlockFaces(gridId) << " ";
118
119 os << "[ ";
120 if (this->HasBlockConnection(gridId, AMRBlockFace::FRONT))
121 {
122 os << "FRONT(+k) ";
123 }
124 if (this->HasBlockConnection(gridId, AMRBlockFace::BACK))
125 {
126 os << "BACK(-k) ";
127 }
128 if (this->HasBlockConnection(gridId, AMRBlockFace::RIGHT))
129 {

Callers

nothing calls this directly

Calls 11

GetGridLevelMethod · 0.95
GetGridExtentMethod · 0.95
PrintExtentMethod · 0.95
GetGhostedExtentMethod · 0.95
HasBlockConnectionMethod · 0.80
GetRelationShipStringMethod · 0.80
assertFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected