#include <sstream>
#include <iomanip>
Go to the source code of this file.
◆ KRATOS_WATCH_LINE
◆ KRATOS_WATCH_MATRIX_WITH_PRECISION
#define KRATOS_WATCH_MATRIX_WITH_PRECISION |
( |
|
variable, |
|
|
|
precision |
|
) |
| |
Value: { \
values << std::scientific << std::setprecision(precision); \
for (std::size_t
i = 0;
i < variable.size1();
i++) \
{ \
for (std::size_t
j = 0;
j < variable.size2();
j++) \
{ \
values << #variable <<
"(" <<
i <<
", " <<
j \
<<
") = " << variable(
i,
j) <<
";" << std::endl; \
} \
} \
std::cout << #variable << " : " << std::endl \
<<
values.str() << std::endl; \
}
list values
Definition: bombardelli_test.py:42
int j
Definition: quadrature.py:648
integer i
Definition: TensorModule.f:17
◆ KRATOS_WATCH_VECTOR_WITH_PRECISION
#define KRATOS_WATCH_VECTOR_WITH_PRECISION |
( |
|
variable, |
|
|
|
precision |
|
) |
| |
Value: { \
values << std::scientific << std::setprecision(precision); \
for (std::size_t
i = 0;
i < variable.size();
i++) \
{ \
values << #variable <<
"[" <<
i <<
"] = " << variable[
i] <<
";" << std::endl; \
} \
std::cout << #variable << " : " << std::endl \
<<
values.str() << std::endl; \
}