Skip to content

Commit

Permalink
default package id in resource class
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Feb 26, 2024
1 parent 38ea3d9 commit fef853f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/material.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace cyclus {

const ResourceType Material::kType = "Material";

static int default_package_id_ = 1;

Material::~Material() {}

Material::Ptr Material::Create(Agent* creator, double quantity,
Expand Down
1 change: 0 additions & 1 deletion src/product.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const ResourceType Product::kType = "Product";

std::map<std::string, int> Product::qualids_;
int Product::next_qualid_ = 1;
static int default_package_id_ = 1;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Product::Ptr Product::Create(Agent* creator, double quantity,
Expand Down
2 changes: 2 additions & 0 deletions src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class Resource {
/// @return a new resource object with same state id and quantity == quantity
virtual Ptr ExtractRes(double quantity) = 0;

protected:
const static int default_package_id_ = 1;
private:
static int nextstate_id_;
static int nextobj_id_;
Expand Down

0 comments on commit fef853f

Please sign in to comment.