51 if (x.mesh() != y.mesh())
TRIQS_RUNTIME_ERROR <<
"GFs have different meshes\n -- 1st Mesh \n" << x.mesh() <<
"\n -- 2nd Mesh \n" << y.mesh();
52 if (max_element(abs(x.data() - y.data())) > precision)
53 TRIQS_RUNTIME_ERROR <<
"Gfs have different data. max(abs(x-y)) = " << max_element(abs(x.data() - y.data()));
70 if (x.size() != y.size())
TRIQS_RUNTIME_ERROR <<
"Block GFs have different number of blocks";
71 if (x.block_names() != y.block_names())
TRIQS_RUNTIME_ERROR <<
"Block GFs have different block_names";
89 if (x.size() != y.size())
TRIQS_RUNTIME_ERROR <<
"Block2 GFs have different number of blocks";
90 if (x.block_names() != y.block_names())
TRIQS_RUNTIME_ERROR <<
"Block2 GFs have different block_names";
91 for (
int i = 0; i < x.size1(); ++i)
TRIQS exception hierarchy and related macros.
#define TRIQS_RUNTIME_ERROR
Throw a triqs::runtime_error with the current source location.