Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagobadia committed Jun 23, 2020
1 parent 8df0b8a commit 5e2c4a4
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/TransientFETools/TransientFEOperators.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
"""
Trait for TransientFEOperator that tells us whether the operator depends on the solution
(including its time derivatives), it is an affine operator that depends on time
or it is a constant operator (affine and time-indepedendent)
"""
abstract type OperatorType end
struct Nonlinear end
struct Affine end
struct Constant end

"""
A transient version of the `Gridap` `FEOperator` that depends on time
"""
Expand Down Expand Up @@ -72,9 +62,7 @@ get_assembler(feop::TransientFEOperator) = @abstractmethod
Returns a `ODEOperator` wrapper of the `TransientFEOperator` that can be
straightforwardly used with the `ODETools` module.
"""
function get_algebraic_operator(feop::TransientFEOperator)
ODEOpFromFEOp(feop)
end
get_algebraic_operator(feop::TransientFEOperator) = @abstractmethod

# @fverdugo This function is just in case we need to override it in the future for some specialization.
# This default implementation is enough for the moment.
Expand Down Expand Up @@ -183,13 +171,9 @@ function jacobian_t!(A::AbstractMatrix,op::TransientFEOperatorFromTerms,
end

function get_algebraic_operator(feop::TransientFEOperatorFromTerms)
_ode_operator(feop,feop.type)
ODEOpFromFEOp{typeof(feop.type)}(feop)
end

_ode_operator(feop,::Nonlinear) = ODEOpFromFEOp(feop)
_ode_operator(feop,::Affine) = AffineODEOpFromFEOp(feop)
_ode_operator(feop,::Constant) = ConstantODEOpFromFEOp(feop)

# Tester

function test_transient_fe_operator(op::TransientFEOperator,uh)
Expand Down

0 comments on commit 5e2c4a4

Please sign in to comment.