OGS
anonymous_namespace{TESLocalAssembler-impl.h} Namespace Reference

Enumerations

enum class  MatOutType { OGS5 , PYTHON }
 

Functions

template<typename Mat >
void ogs5OutMat (const Mat &mat)
 
template<typename Vec >
void ogs5OutVec (const Vec &vec)
 

Variables

const MatOutType MATRIX_OUTPUT_FORMAT = MatOutType::PYTHON
 

Enumeration Type Documentation

◆ MatOutType

enum class anonymous_namespace{TESLocalAssembler-impl.h}::MatOutType
strong

Function Documentation

◆ ogs5OutMat()

template<typename Mat >
void anonymous_namespace{TESLocalAssembler-impl.h}::ogs5OutMat ( const Mat & mat)

Definition at line 34 of file TESLocalAssembler-impl.h.

35{
36 for (unsigned r = 0; r < mat.rows(); ++r)
37 {
39 {
41 if (r != 0)
42 {
43 std::printf("\n");
44 }
45 std::printf("|");
46 break;
48 if (r != 0)
49 {
50 std::printf(",\n");
51 }
52 std::printf("[");
53 break;
54 }
55
56 for (unsigned c = 0; c < mat.cols(); ++c)
57 {
59 {
61 std::printf(" %.16e", mat(r, c));
62 break;
64 if (c != 0)
65 {
66 std::printf(",");
67 }
68 std::printf(" %23.16g", mat(r, c));
69 break;
70 }
71 }
72
74 {
76 std::printf(" | ");
77 break;
79 std::printf(" ]");
80 break;
81 }
82 }
83 std::printf("\n");
84}

References MATRIX_OUTPUT_FORMAT, OGS5, and PYTHON.

◆ ogs5OutVec()

template<typename Vec >
void anonymous_namespace{TESLocalAssembler-impl.h}::ogs5OutVec ( const Vec & vec)

Definition at line 87 of file TESLocalAssembler-impl.h.

88{
89 for (unsigned r = 0; r < vec.size(); ++r)
90 {
92 {
94 if (r != 0)
95 {
96 std::printf("\n");
97 }
98 std::printf("| %.16e | ", vec[r]);
99 break;
101 if (r != 0)
102 {
103 std::printf(",\n");
104 }
105 std::printf("[ %23.16g ]", vec[r]);
106 break;
107 }
108 }
109 std::printf("\n");
110}

References MATRIX_OUTPUT_FORMAT, OGS5, and PYTHON.

Variable Documentation

◆ MATRIX_OUTPUT_FORMAT

const MatOutType anonymous_namespace{TESLocalAssembler-impl.h}::MATRIX_OUTPUT_FORMAT = MatOutType::PYTHON

Definition at line 30 of file TESLocalAssembler-impl.h.

Referenced by ogs5OutMat(), and ogs5OutVec().