Update Boundary Conditions authored by Elena Lega's avatar Elena Lega
...@@ -92,7 +92,7 @@ They will be made available to the code through a [std::map](http://www.cplusplu ...@@ -92,7 +92,7 @@ They will be made available to the code through a [std::map](http://www.cplusplu
PetShopBC(Disk& gas, real dt) { PetShopBC(Disk& gas, real dt) {
std::map<std::string, std::string> const& params = gas.physic().boundaries.params; std::map<std::string, std::string> const& params = gas.physic().boundaries.params;
real voltage = boost::lexical_cast<real>(attrs.at("voltage")); real voltage = boost::lexical_cast<real>(params.at("voltage"));
string type = attrs["type"]; string type = attrs["type"];
... ...
} }
... ...
......