From 0bdf40281c3a84a2effd682b4570a4f188e62624 Mon Sep 17 00:00:00 2001 From: Gabriel Birnbaum Date: Wed, 24 Nov 2021 21:03:04 +0100 Subject: [PATCH] added some documentation --- src/solve.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/solve.jl b/src/solve.jl index 27c4674..2c1135b 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -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 @@ -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