Skip to content

Commit a6bad05

Browse files
authored
Merge pull request #2363 from DARMA-tasking/2362-clean-up-examples
#2362: Clean up examples
2 parents cced7f8 + e63abfa commit a6bad05

File tree

5 files changed

+4
-17
lines changed

5 files changed

+4
-17
lines changed

.github/workflows/check-include-guards-and-license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup Dependencies
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.7'
16+
python-version: '3.13'
1717

1818
- name: Check that for correct include guards and license
1919
run: ./scripts/check_guards.sh $(pwd)

examples/collection/jacobi1d_vt.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
//
4747
// This code applies a few steps of the Jacobi iteration to
4848
// the linear system A x = 0
49-
// where is the tridiagonal matrix with pattern [-1 2 -1]
49+
// where A is a tridiagonal matrix with pattern [-1 2 -1]
5050
// The initial guess for x is a made-up non-zero vector.
5151
// The exact solution is the vector 0.
5252
//
@@ -61,11 +61,8 @@
6161

6262

6363
#include <vt/transport.h>
64-
#include <vt/runnable/invoke.h>
6564

6665
#include <cstdlib>
67-
#include <cassert>
68-
#include <iostream>
6966

7067
static constexpr std::size_t const default_nrow_object = 8;
7168
static constexpr std::size_t const default_num_objs = 4;

examples/collection/jacobi2d_vt.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@
4444
#include <vt/transport.h>
4545

4646
#include <cstdlib>
47-
#include <cassert>
48-
#include <iostream>
4947

5048
/// [Jacobi2D example]
5149

5250
//
5351
// This code applies a few steps of the Jacobi iteration to
5452
// the linear system A x = 0
55-
// where is a banded symmetric positive definite matrix.
53+
// where A is a banded symmetric positive definite matrix.
5654
// The initial guess for x is a made-up non-zero vector.
5755
// The exact solution is the vector 0.
5856
//

examples/collection/jacobi3d_vt.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@
4343

4444
#include <vt/transport.h>
4545
#include <cstdlib>
46-
#include <cassert>
47-
#include <iostream>
4846

4947
/// [Jacobi3D example]
5048

5149
//
5250
// This code applies a few steps of the Jacobi iteration to
5351
// the linear system A x = 0
54-
// where is a banded symmetric positive definite matrix.
52+
// where A is a banded symmetric positive definite matrix.
5553
// The initial guess for x is a made-up non-zero vector.
5654
// The exact solution is the vector 0.
5755
//

examples/hello_world/hello_world.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343

4444
#include <vt/transport.h>
4545

46-
struct HelloMsg : vt::Message {
47-
HelloMsg(vt::NodeType in_from) : from(in_from) { }
48-
49-
vt::NodeType from = 0;
50-
};
51-
5246
void hello_world(int a, int b, float c) {
5347
vt::NodeType this_node = vt::theContext()->getNode();
5448
fmt::print("{}: Hello from node vals = {} {} {}\n", this_node, a, b, c);

0 commit comments

Comments
 (0)