Skip to content

Commit

Permalink
changed ub,lb in integrals for now
Browse files Browse the repository at this point in the history
  • Loading branch information
killah-t-cell committed Nov 23, 2021
1 parent 9691e4f commit 15ffaca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function solve(plasma::CollisionlessPlasma;
xs,vs = Symbolics.variables(:x, 1:dim), Symbolics.variables(:v, 1:dim)

# integrals
_I = Integral(tuple(vs...) in DomainSets.ProductDomain(ClosedInterval(-Inf ,Inf), ClosedInterval(-Inf ,Inf), ClosedInterval(-Inf ,Inf)))
_I = Integral(tuple(vs...) in DomainSets.ProductDomain(ClosedInterval(-1 ,1), ClosedInterval(-1 ,1), ClosedInterval(-1 ,1))) # TODO change back to Inf,-Inf

# differentials
Dxs = Differential.(xs)
Expand Down Expand Up @@ -182,10 +182,10 @@ function solve(plasma::ElectrostaticPlasma;

# integrals
_I = if length(vs) > 1
intervals = [ClosedInterval(-Inf ,Inf) for _ in 1:length(vs)]
intervals = [ClosedInterval(-1 ,1) for _ in 1:length(vs)] # TODO change back to Inf,-Inf
_I = Integral(tuple(vs...) in DomainSets.ProductDomain(intervals...))
else
_I = Integral(first(vs) in DomainSets.ClosedInterval(-Inf ,Inf))
_I = Integral(first(vs) in DomainSets.ClosedInterval(-1 ,1)) # TODO change back to Inf,-Inf
end

# differentials
Expand Down

0 comments on commit 15ffaca

Please sign in to comment.