gray_jetto1beam: activate some debug units by defaults
This commit is contained in:
parent
df4930818f
commit
8f90cb21da
@ -2,6 +2,7 @@ subroutine gray_jetto1beam(ijetto, mr, mz, r, z, psin, psia, rax, zax, &
|
||||
nbnd, rbnd, zbnd, nrho, psrad, fpol, te, dne, zeff, qpsi, ibeam, &
|
||||
p0mw, alphain, betain, dpdv, jcd, pabs, icd, error)
|
||||
use const_and_precisions, only: wp_
|
||||
use units, only: set_active_units, close_units
|
||||
use gray_params, only: gray_parameters, gray_data, gray_results
|
||||
use gray_core, only: gray_main
|
||||
|
||||
@ -29,6 +30,16 @@ subroutine gray_jetto1beam(ijetto, mr, mz, r, z, psin, psia, rax, zax, &
|
||||
first_call: if (firstcall) then
|
||||
firstcall = .false.
|
||||
|
||||
! Activate some debug units
|
||||
set_units: block
|
||||
use units
|
||||
call set_active_units([ &
|
||||
ucenr, usumm, uprj0, uprj0+1, &
|
||||
uwbm, udisp, ubres, ucnt, &
|
||||
uoutr, umaps, uprfin, uflx, &
|
||||
upec])
|
||||
end block set_units
|
||||
|
||||
! Read parameters from external file
|
||||
init_params: block
|
||||
use gray_params, only : read_gray_params, set_globals
|
||||
@ -133,4 +144,6 @@ subroutine gray_jetto1beam(ijetto, mr, mz, r, z, psin, psia, rax, zax, &
|
||||
dpdv = res%dpdv
|
||||
jcd = res%jcd
|
||||
|
||||
call close_units
|
||||
|
||||
end subroutine gray_jetto1beam
|
||||
|
Loading…
Reference in New Issue
Block a user