MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / PrintReportRec

Method PrintReportRec

fem/coefficient.cpp:105–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void CoefficientFunction :: PrintReportRec (ostream & ost, int level) const
106 {
107 ost << string(2*level, ' ');
108 // for (int i = 0; i < 2*level; i++)
109 // ost << ' ';
110 ost << "coef " << GetDescription() << ","
111 << (IsComplex() ? " complex" : " real");
112 if (Dimensions().Size() == 1)
113 ost << ", dim=" << Dimension();
114 else if (Dimensions().Size() >= 2)
115 {
116 ost << ", dims = " << Dimensions()[0]; // << " x " << Dimensions()[1];
117 for (int j = 1; j < Dimensions().Size(); j++)
118 ost << " x " << Dimensions()[j];
119 }
120 ost << endl;
121
122 Array<shared_ptr<CoefficientFunction>> input = InputCoefficientFunctions();
123 for (int i = 0; i < input.Size(); i++)
124 if (input[i])
125 input[i] -> PrintReportRec (ost, level+1);
126 else
127 ost << string(2*level+2, ' ') << "none" << endl;
128 }
129
130 string CoefficientFunction :: GetDescription () const
131 {

Callers

nothing calls this directly

Calls 6

GetDescriptionFunction · 0.85
DimensionsFunction · 0.85
IsComplexFunction · 0.70
DimensionFunction · 0.70
SizeMethod · 0.45

Tested by

no test coverage detected