Skip to content

Commit c725b8f

Browse files
committed
fixed a defect associated with Nemission<=0 case
1 parent 87b1ca7 commit c725b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Contrl/AccSimulator.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ subroutine run_AccSimulator()
14451445
else
14461446
flagpos = 1
14471447
endif
1448-
if(grange(5).gt.0.0d0) then
1448+
if(grange(5).gt.0.0d0 .or. Nemission.le.0) then
14491449
flagcathode = 0
14501450
else
14511451
flagcathode = 1

0 commit comments

Comments
 (0)