← Back to team overview

dolfin team mailing list archive

Re: [Branch ~dolfin-core/dolfin/trunk] Rev 6753: Update docs for some demo changes.

 

Thanks. Sorry about that. I only ran the unit and regression tests
before pushing...

Benjamin

2012/7/6  <noreply@xxxxxxxxxxxxx>:
> ------------------------------------------------------------
> revno: 6753
> committer: Garth N. Wells <gnw20@xxxxxxxxx>
> branch nick: working
> timestamp: Fri 2012-07-06 09:05:30 +0100
> message:
>   Update docs for some demo changes.
> modified:
>   demo/pde/biharmonic/cpp/documentation.rst
>   demo/pde/biharmonic/cpp/main.cpp
>   demo/pde/cahn-hilliard/cpp/documentation.rst
>   demo/pde/hyperelasticity/cpp/documentation.rst
>   demo/pde/navier-stokes/cpp/documentation.rst
>
>
> --
> lp:dolfin
> https://code.launchpad.net/~dolfin-core/dolfin/trunk
>
> Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
> To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/trunk/+edit-subscription
>
> === modified file 'demo/pde/biharmonic/cpp/documentation.rst'
> --- demo/pde/biharmonic/cpp/documentation.rst   2011-07-01 15:01:52 +0000
> +++ demo/pde/biharmonic/cpp/documentation.rst   2012-07-06 08:05:30 +0000
> @@ -177,18 +177,19 @@
>      Function u(V);
>      solve(a == L, u, bc);
>
> -The solution is then plotted to the screen and written to a file in VTK
> -format:
> +The solution is then written to a file in VTK format and plotted to
> +the screen:
>
>  .. code-block:: c++
>
> -    // Plot solution
> -    plot(u);
> -
>      // Save solution in VTK format
>      File file("biharmonic.pvd");
>      file << u;
>
> +    // Plot solution
> +    plot(u);
> +    interactive();
> +
>      return 0;
>    }
>
>
> === modified file 'demo/pde/biharmonic/cpp/main.cpp'
> --- demo/pde/biharmonic/cpp/main.cpp    2012-07-05 15:42:05 +0000
> +++ demo/pde/biharmonic/cpp/main.cpp    2012-07-06 08:05:30 +0000
> @@ -92,7 +92,6 @@
>    File file("biharmonic.pvd");
>    file << u;
>
> -
>    // Plot solution
>    plot(u);
>    interactive();
>
> === modified file 'demo/pde/cahn-hilliard/cpp/documentation.rst'
> --- demo/pde/cahn-hilliard/cpp/documentation.rst        2011-11-11 23:37:47 +0000
> +++ demo/pde/cahn-hilliard/cpp/documentation.rst        2012-07-06 08:05:30 +0000
> @@ -381,6 +381,7 @@
>
>      // Plot solution
>      plot(u[0]);
> +    interactive();
>
>      return 0;
>    }
>
> === modified file 'demo/pde/hyperelasticity/cpp/documentation.rst'
> --- demo/pde/hyperelasticity/cpp/documentation.rst      2011-10-20 11:59:45 +0000
> +++ demo/pde/hyperelasticity/cpp/documentation.rst      2012-07-06 08:05:30 +0000
> @@ -305,6 +305,7 @@
>
>    // Plot solution
>    plot(u);
> +  interactive();
>
>    return 0;
>
>
> === modified file 'demo/pde/navier-stokes/cpp/documentation.rst'
> --- demo/pde/navier-stokes/cpp/documentation.rst        2012-02-01 07:18:52 +0000
> +++ demo/pde/navier-stokes/cpp/documentation.rst        2012-07-06 08:05:30 +0000
> @@ -420,6 +420,7 @@
>      // Plot solution
>      plot(p1, "Pressure");
>      plot(u1, "Velocity");
> +    interactive();
>
>      return 0;
>    }
>
>