Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cyclus/cycamore into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Nov 25, 2014
2 parents 1e22e82 + 25230cb commit 4fd4a34
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions src/enrichment_facility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ void EnrichmentFacility::Tock() {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
std::set<cyclus::RequestPortfolio<cyclus::Material>::Ptr>
EnrichmentFacility::GetMatlRequests() {
using cyclus::CapacityConstraint;
using cyclus::Material;
using cyclus::RequestPortfolio;
using cyclus::Request;
Expand All @@ -80,13 +79,9 @@ EnrichmentFacility::GetMatlRequests() {
double amt = mat->quantity();

if (amt > cyclus::eps()) {
CapacityConstraint<Material> cc(amt);
port->AddConstraint(cc);

port->AddRequest(mat, this, in_commod);

ports.insert(port);
} // if amt > eps
}

return ports;
}
Expand Down
4 changes: 1 addition & 3 deletions src/enrichment_facility_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ TEST_F(EnrichmentFacilityTest, AddRequests) {

const std::set< CapacityConstraint<Material> >& constraints =
ports.begin()->get()->constraints();
CapacityConstraint<Material> c(inv_size);
EXPECT_EQ(constraints.size(), 1);
EXPECT_EQ(*constraints.begin(), c);
EXPECT_EQ(constraints.size(), 0);
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down
4 changes: 0 additions & 4 deletions src/sink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ std::string Sink::str() {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
std::set<cyclus::RequestPortfolio<cyclus::Material>::Ptr>
Sink::GetMatlRequests() {
using cyclus::CapacityConstraint;
using cyclus::Material;
using cyclus::RequestPortfolio;
using cyclus::Request;
Expand All @@ -70,9 +69,6 @@ Sink::GetMatlRequests() {
Material::Ptr mat = cyclus::NewBlankMaterial(amt);

if (amt > cyclus::eps()) {
CapacityConstraint<Material> cc(amt);
port->AddConstraint(cc);

std::vector<std::string>::const_iterator it;
std::vector<Request<Material>*> mutuals;
for (it = in_commods.begin(); it != in_commods.end(); ++it) {
Expand Down
4 changes: 1 addition & 3 deletions src/sink_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ TEST_F(SinkTest, Requests) {

const std::set< CapacityConstraint<Material> >& constraints =
ports.begin()->get()->constraints();
ASSERT_TRUE(constraints.size() > 0);
EXPECT_EQ(constraints.size(), 1);
EXPECT_EQ(*constraints.begin(), CapacityConstraint<Material>(capacity_));
EXPECT_EQ(constraints.size(), 0);
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit 4fd4a34

Please sign in to comment.