Tutorial .rst needs fixing

Bug #802024 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Undecided
Unassigned
FEniCS Web
Fix Released
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)
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
Revision history for this message
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()

Revision history for this message
Anders Logg (logg) wrote : Re: [Bug 802024] Re: Tutorial .rst needs fixing

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)
Changed in dolfin:
milestone: none → 1.0
Changed in fenics-web:
status: Confirmed → In Progress
Anders Logg (logg)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.