Tutorial .rst needs fixing

Bug #802024 reported by Garth Wells on 2011-06-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Undecided
Unassigned
FEniCS Web
Critical
Hans Petter Langtangen

Bug Description

The tutorial .rst files were generated automatically from the .tex file, which is not perfect. Tutorial files needs to be checked and fixed.

Changed in fenics-web:
status: New → Confirmed
importance: Undecided → Critical
Changed in fenics-web:
milestone: none → 1.0
Anders Logg (logg) on 2011-08-18
Changed in fenics-web:
assignee: nobody → Hans Petter Langtangen (hpl)
Changed in fenics-web:
milestone: 1.0-beta → 1.0
tags: added: content
tags: added: documentation
eldad (eldad-a) wrote :

in the web tutorial (as well as in the book draft available online) there is a piece of code not compatible with current PPA FEniCS version; I refer to the first code appearing in http://fenicsproject.org/doc/tutorial/fundamentals.html :

# Compute solution
problem = VariationalProblem(a, L, bc)
u = problem.solve()

Running the code as is will result in the output error:

*** Error: Unable to create variational problem.
*** Reason: The VariationalProblem class has been removed. Please visit http://fenicsproject.org/releases/1.0-beta/ to see which changes you need to make to your program..
*** Where: This error was encountered inside variationalproblem.py.

This should be changed to (based on the link in the error output):

# Compute solution
u = Function(V)
problem = LinearVariationalProblem(a, L, u, bc)
solver = LinearVariationalSolver(problem)
solver.solve()

Thanks for the report. We are aware of this and will fix as soon as
possible.

--
Anders

On Sat, Oct 29, 2011 at 10:51:41PM -0000, eldad wrote:
> in the web tutorial (as well as in the book draft available online)
> there is a piece of code not compatible with current PPA FEniCS version;
> I refer to the first code appearing in
> http://fenicsproject.org/doc/tutorial/fundamentals.html :
>
>
> # Compute solution
> problem = VariationalProblem(a, L, bc)
> u = problem.solve()
>
>
> Running the code as is will result in the output error:
>
> *** Error: Unable to create variational problem.
> *** Reason: The VariationalProblem class has been removed. Please visit http://fenicsproject.org/releases/1.0-beta/ to see which changes you need to make to your program..
> *** Where: This error was encountered inside variationalproblem.py.
>
>
> This should be changed to (based on the link in the error output):
>
> # Compute solution
> u = Function(V)
> problem = LinearVariationalProblem(a, L, u, bc)
> solver = LinearVariationalSolver(problem)
> solver.solve()
>

Anders Logg (logg) on 2011-11-22
Changed in dolfin:
milestone: none → 1.0
Changed in fenics-web:
status: Confirmed → In Progress
Anders Logg (logg) on 2011-12-06
Changed in fenics-web:
status: In Progress → Fix Released
Changed in dolfin:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers