From c725b8f12cba56a14d6ee1e0fd7f46446e4eeb13 Mon Sep 17 00:00:00 2001 From: Ji Qiang Date: Thu, 9 May 2024 10:10:30 -0700 Subject: [PATCH] fixed a defect associated with Nemission<=0 case --- src/Contrl/AccSimulator.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contrl/AccSimulator.f90 b/src/Contrl/AccSimulator.f90 index 10f42eb..4b71bc2 100644 --- a/src/Contrl/AccSimulator.f90 +++ b/src/Contrl/AccSimulator.f90 @@ -1445,7 +1445,7 @@ subroutine run_AccSimulator() else flagpos = 1 endif - if(grange(5).gt.0.0d0) then + if(grange(5).gt.0.0d0 .or. Nemission.le.0) then flagcathode = 0 else flagcathode = 1