Skip to content

Commit

Permalink
added some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
killah-t-cell committed Nov 24, 2021
1 parent 15ffaca commit 0bdf402
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function solve(plasma::CollisionlessPlasma;
error("lower bound must be larger than upper bound")
end

if GPU && strategy == QuadratureTraining()
error("QuadratureTraining does not have GPU support. Use another strategy (e.g. StochasticTraining(200)) instead")
end

# constants
dim = 3
geometry = plasma.geometry.f # this might change with a geometry refactor
Expand Down Expand Up @@ -157,6 +161,10 @@ function solve(plasma::ElectrostaticPlasma;
error("lower bound must be larger than upper bound")
end

if GPU && strategy == QuadratureTraining()
error("QuadratureTraining does not have GPU support. Use another strategy (e.g. StochasticTraining(200)) instead")
end

# constants
geometry = plasma.geometry.f # this might change with a geometry refactor
dis = plasma.distributions
Expand Down

0 comments on commit 0bdf402

Please sign in to comment.