Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2362: Clean up examples #2363

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading