Skip to content

Commit

Permalink
Resolve errors
Browse files Browse the repository at this point in the history
  • Loading branch information
apmypb committed Nov 15, 2024
1 parent 82b5113 commit 464b1d2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test/depletion_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ T = Float32
# simulate over and under depletion voltage
U₋ = U_est - ΔU
U₊ = U_est + ΔU
sim.detector = SolidStateDetector(
sim.detector, contact_id=1, contact_potential=U₊,
depletion_handling=true)
calculate_electric_potential!(sim, refinement_limits=0.01)
undepleted = is_depleted(sim.point_types)
sim.detector = SolidStateDetector(
sim.detector, contact_id=1, contact_potential=U₋,
depletion_handling=true)
calculate_electric_potential!(sim, refinement_limits=0.01)
sim.detector = SolidStateDetector(sim.detector, contact_id=1, contact_potential=U₊)
calculate_electric_potential!(sim, refinement_limits=0.01, depletion_handling=true)
undepleted = !is_depleted(sim.point_types)
sim.detector = SolidStateDetector(sim.detector, contact_id=1, contact_potential=U₋)
calculate_electric_potential!(sim, refinement_limits=0.01, depletion_handling=true)
depleted = is_depleted(sim.point_types)
@test undepleted && depleted
end

0 comments on commit 464b1d2

Please sign in to comment.