Subroutine callgeneration(x,y,z,generation,ind)

出自 DDCC TCAD TOOL Manual
於 2017年8月27日 (日) 22:45 由 Yrwu (對話 | 貢獻) 所做的修訂

(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
前往: 導覽搜尋

Subroutine callgeneration is activated by $usegenfunc. After activation. The program will call this subroutine. This subroutine is save in file libcallgen.f90

subroutine callgeneration(x,y,z,generation,ind) 
use global2d  
implicit none 
real*8,intent(in) :: x,y,z  ! x,y,z is the position program sent to the subroutine.
real*8, intent(inout) :: generation  ! a returned value (positive value)
integer, intent(in) :: ind   ! Node number in the program
generation = 000.0d0 ! This is an example to return 0, you can return any positive value depending on your simulation case. 
 ! print*,x,y,z, generation
 ! print*, "You should not call ddcc.exe to run callgeneration. You should use 2D-ddcc-dyna.exe to run it."
 ! stop
end subroutine