Skip to content

Commit

Permalink
Another error fixed ...
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Aug 23, 2023
1 parent fdd6756 commit ea03c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poisson_transient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ op_C = TransientConstantFEOperator(m₀,a₀,b₀,U,V)
# Once we have the FE operator defined, we proceed with the definition of the transient solver. First, we define a linear solver to be used at each time step. Here we use the `LUSolver`, but other choices are possible.
linear_solver = LUSolver()

# Then, we define the ODE solver. That is, the scheme that will be used for the time integration. In this tutorial we use the `Steamed` with $\theta = 0.5$, resulting in a 2nd order scheme. The `ThetaMethod` function receives the linear solver, the time step size $\Delta t$ (constant) and the value of $\theta$.
# Then, we define the ODE solver. That is, the scheme that will be used for the time integration. In this tutorial we use the `ThetaMethod` with $\theta = 0.5$, resulting in a 2nd order scheme. The `ThetaMethod` function receives the linear solver, the time step size $\Delta t$ (constant) and the value of $\theta$.
Δt = 0.05
θ = 0.5
ode_solver = ThetaMethod(linear_solver,Δt,θ)
Expand Down

0 comments on commit ea03c04

Please sign in to comment.