Skip to content

Commit

Permalink
fixed a defect associated with Nemission<=0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
qianglbl committed May 9, 2024
1 parent 87b1ca7 commit c725b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contrl/AccSimulator.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c725b8f

Please sign in to comment.