Skip to content

Commit

Permalink
Merge pull request #2363 from DARMA-tasking/2362-clean-up-examples
Browse files Browse the repository at this point in the history
#2362: Clean up examples
  • Loading branch information
lifflander authored Oct 22, 2024
2 parents cced7f8 + e63abfa commit a6bad05
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-include-guards-and-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Dependencies
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.13'

- name: Check that for correct include guards and license
run: ./scripts/check_guards.sh $(pwd)
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 a6bad05

Please sign in to comment.