Skip to content

Commit

Permalink
no package in resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Apr 17, 2024
1 parent 6e63f52 commit 391b5d7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/resource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,4 @@ void Resource::BumpStateId() {
nextstate_id_++;
}

std::vector<Resource::Ptr> Resource::Package(Package::Ptr pkg) {
std::vector<Resource::Ptr> rs_pkgd;
Resource::Ptr r_pkgd;

double fill_mass = pkg->GetFillMass(quantity());
if (fill_mass == 0) {
return rs_pkgd;
}

while (quantity() > pkg->fill_min()) {
double pkg_fill = std::min(quantity(), fill_mass);
r_pkgd = ExtractRes(pkg_fill);
r_pkgd->ChangePackageId(pkg->id());
rs_pkgd.push_back(r_pkgd);
}
return rs_pkgd;
}

} // namespace cyclus

0 comments on commit 391b5d7

Please sign in to comment.