Commit c1086ebf authored by Peter Bastian's avatar Peter Bastian
Browse files

nice formatting for the first example

Showing with 5 additions and 5 deletions
+5 -5
......@@ -15,17 +15,17 @@ int main ()
V u(1);
u[0] = 1.0;
std::vector<Number> times; // store time values here
std::vector<V> states; // store states here
times.push_back(time); // initial time
states.push_back(u); // initial state
std::vector<Number> times; // store time values here
std::vector<V> states; // store states here
times.push_back(time); // initial time
states.push_back(u); // initial state
while (time<5.0-1e-6) // the time loop
{
u[0] = u[0]/(1-lambda*dt);
time += dt;
times.push_back(time); // save time
states.push_back(u); // and state
states.push_back(u); // and state
}
gnuplot("iemp.dat",times,states); // output model result
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment