SST  6.1.0
StructuralSimulationToolkit
simplepart.h
1 // Copyright 2009-2016 Sandia Corporation. Under the terms
2 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2016, Sandia Corporation
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 #ifndef SST_CORE_PART_SIMPLEPART_H
12 #define SST_CORE_PART_SIMPLEPART_H
13 
14 #include "sst/core/part/sstpart.h"
15 
16 namespace SST {
17 namespace Partition{
18 
20 
21 private:
22  RankInfo world_size;
23  static bool initialized;
24 
25 public:
26 
27  SimplePartitioner(RankInfo total_ranks);
29  ~SimplePartitioner() {}
30 
31  void performPartition(PartitionGraph* graph);
32 
33  bool requiresConfigGraph() { return false; }
34  bool spawnOnAllRanks() { return false; }
35 
36  static SSTPartitioner* allocate(RankInfo total_ranks, RankInfo my_rank, int verbosity) {
37  return new SimplePartitioner(total_ranks);
38  }
39 
40 };
41 
42 } // namespace partition
43 } //namespace SST
44 #endif //SST_CORE_PART_SIMPLERPART_H
Definition: simplepart.h:19
Definition: configGraph.h:397
Definition: action.cc:17
void performPartition(PartitionGraph *graph)
Function to be overriden by subclasses.
Definition: simplepart.cc:184
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:27