Changes
Page history
Update Boundary Conditions
authored
Jan 30, 2019
by
Alain O' Miniussi
Show whitespace changes
Inline
Side-by-side
Developer's-corner/Boundary-Conditions.md
View page @
a19ed42b
...
@@ -90,9 +90,9 @@ They will be made available to the code through a [std::map](http://www.cplusplu
...
@@ -90,9 +90,9 @@ They will be made available to the code through a [std::map](http://www.cplusplu
```
```
void
void
PetShopBC(GasDisk& gas, real dt) {
PetShopBC(GasDisk& gas, real dt) {
using namespace std;
map<string, 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
[
"voltage"
]
);
real voltage = boost::lexical_cast<real>(attrs
.at(
"voltage"
)
);
string type = attrs["type"];
string type = attrs["type"];
...
...
}
}
...
...
...
...