Skip to content

Commit

Permalink
#276: example: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jan 17, 2023
1 parent 8d3c5ad commit 6358202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/hello_world/hello_world.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ void helloWorld(int a, int b, float c) {
int main(int argc, char** argv) {
vt::initialize(argc, argv);

vt::NodeType this_node = vt::theContext()->getNode();
vt::NodeType num_nodes = vt::theContext()->getNumNodes();

if (num_nodes == 1) {
return vt::rerror("requires at least 2 nodes");
}
Expand Down

0 comments on commit 6358202

Please sign in to comment.