Update Boundary Conditions authored by Alain O' Miniussi's avatar Alain O' Miniussi
......@@ -2,6 +2,7 @@
* [Adding new boundaries conditions](#adding-new-boundaries-conditions)
* [Implementing a stateless boundaries condition](#implementing-a-stateless-boundaries-condition)
* [Declaring a stateless boundaries condition](declaring-a-stateless-boundaries-condition)
* [Passing parameters](Passing parameters)
* [Tips](#tips)
## Choosing the boundaries conditions
......@@ -91,8 +92,8 @@ They will be made available to the code through a [std::map](http://www.cplusplu
PetChopBC(GasDisk& gas, real dt) {
using namespace std;
map<string, string> const& params = gas.physic().boundaries.params;
real voltage = boost::lexical_cast<real>(attrs["voltage"];
bool alive = boost::lexical_cast<real>(attrs["voltage"];
real voltage = boost::lexical_cast<real>(attrs["voltage"]);
string type = attrs["type"];
...
}
```
......
......