Skip to content
Snippets Groups Projects
Commit ee315e07 authored by Rene Halver's avatar Rene Halver
Browse files

added ALL_TENSOR_MAX to example code

parent ec1661bc
No related branches found
No related tags found
1 merge request!22added maximum based tensor method
This commit is part of merge request !22. Comments created here will be created in the context of that merge request.
......@@ -417,6 +417,7 @@ int main(int argc, char **argv) {
// print out chosen method
if (localRank == 0) {
switch (chosen_method) {
case ALL::LB_t::TENSOR_MAX:
case ALL::LB_t::TENSOR:
std::cout << "chosen method: TENSOR" << std::endl;
break;
......@@ -457,6 +458,7 @@ int main(int argc, char **argv) {
int nvertices = 2;
switch (chosen_method) {
case ALL::LB_t::TENSOR_MAX:
case ALL::LB_t::TENSOR:
nvertices = 2;
break;
......@@ -488,6 +490,7 @@ int main(int argc, char **argv) {
std::vector<ALL::Point<double>> old_vertices(nvertices, lp);
switch (chosen_method) {
case ALL::LB_t::TENSOR_MAX:
case ALL::LB_t::TENSOR:
vertices.at(0) = lp;
vertices.at(1) = up;
......@@ -1113,6 +1116,7 @@ int main(int argc, char **argv) {
std::cout << "beginning particles transfer..." << std::endl;
#endif
switch (chosen_method) {
case ALL::LB_t::TENSOR_MAX:
case ALL::LB_t::TENSOR: {
int n_transfer[2];
int n_recv[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment