Commit af6abdc1 authored by Paul Schütze's avatar Paul Schütze
Browse files

Levinshtein: add exception in case of material != GaN

parent 48274783
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -405,6 +405,9 @@ namespace allpix {
            if(!doping) {
                throw ModelUnsuitable("No doping profile available");
            }
            if(material != SensorMaterial::GALLIUM_NITRIDE) {
                throw ModelUnsuitable("Sensor material " + allpix::to_string(material) + " not valid for this model.");
            }
        }

        double operator()(const CarrierType& type, double temperature, double doping) const override {