Skip to content
Snippets Groups Projects

added maximum based tensor method

Merged Rene Halver requested to merge tensor_max into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -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];
Loading