QuantEcon / SimpleDifferentialOperators.jl

Library for simple upwind finite differences
MIT License
12 stars 2 forks source link

Implementation of the absorbing (not at the boundary) #191

Closed jlperla closed 5 years ago

jlperla commented 5 years ago

After #190

Basically it is an absorbing where we pass in the node location of the boundary. Right now it is

struct Absorbing <: HomogeneousBoundaryCondition end

Perhaps better if it is

struct Absorbing <: HomogeneousBoundaryCondition
   loc::Int
end

with the default as loc = 0 in the constructor, which is our current code.

--

chiyahn commented 5 years ago

Implementation complete in #198 (with affine boundary), will merge once a PR for #190 is merged (need some fix for math)