Skip to content

Commit

Permalink
fixed a defect associated with Nemission<=0
Browse files Browse the repository at this point in the history
  • Loading branch information
qianglbl committed May 9, 2024
1 parent 109a05e commit 493ea29
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 @@ -1465,7 +1465,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 493ea29

Please sign in to comment.