Skip to content

Commit

Permalink
#2362: clean up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Oct 15, 2024
1 parent c519afc commit b3bdbbe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
5 changes: 1 addition & 4 deletions examples/collection/jacobi1d_vt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
//
// This code applies a few steps of the Jacobi iteration to
// the linear system A x = 0
// where is the tridiagonal matrix with pattern [-1 2 -1]
// where A is a tridiagonal matrix with pattern [-1 2 -1]
// The initial guess for x is a made-up non-zero vector.
// The exact solution is the vector 0.
//
Expand All @@ -61,11 +61,8 @@


#include <vt/transport.h>
#include <vt/runnable/invoke.h>

#include <cstdlib>
#include <cassert>
#include <iostream>

static constexpr std::size_t const default_nrow_object = 8;
static constexpr std::size_t const default_num_objs = 4;
Expand Down
4 changes: 1 addition & 3 deletions examples/collection/jacobi2d_vt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@
#include <vt/transport.h>

#include <cstdlib>
#include <cassert>
#include <iostream>

/// [Jacobi2D example]

//
// This code applies a few steps of the Jacobi iteration to
// the linear system A x = 0
// where is a banded symmetric positive definite matrix.
// where A is a banded symmetric positive definite matrix.
// The initial guess for x is a made-up non-zero vector.
// The exact solution is the vector 0.
//
Expand Down
4 changes: 1 addition & 3 deletions examples/collection/jacobi3d_vt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@

#include <vt/transport.h>
#include <cstdlib>
#include <cassert>
#include <iostream>

/// [Jacobi3D example]

//
// This code applies a few steps of the Jacobi iteration to
// the linear system A x = 0
// where is a banded symmetric positive definite matrix.
// where A is a banded symmetric positive definite matrix.
// The initial guess for x is a made-up non-zero vector.
// The exact solution is the vector 0.
//
Expand Down
6 changes: 0 additions & 6 deletions examples/hello_world/hello_world.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@

#include <vt/transport.h>

struct HelloMsg : vt::Message {
HelloMsg(vt::NodeType in_from) : from(in_from) { }

vt::NodeType from = 0;
};

void hello_world(int a, int b, float c) {
vt::NodeType this_node = vt::theContext()->getNode();
fmt::print("{}: Hello from node vals = {} {} {}\n", this_node, a, b, c);
Expand Down

0 comments on commit b3bdbbe

Please sign in to comment.