Skip to content
Snippets Groups Projects
Commit 7a78b857 authored by Dave Whipp's avatar Dave Whipp
Browse files

Initial e2d value can now be define in the input file

parent db9f7d37
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ subroutine read_input_file (params,threadinfo,material0,mat,surface,boxes, & ...@@ -68,7 +68,7 @@ subroutine read_input_file (params,threadinfo,material0,mat,surface,boxes, &
! default value is 1.d0 ! default value is 1.d0
! surface are surface structure ! surface are surface structure
! for each surface, one needs to define a levelt, itype, material and fnme. ! for each surface, one needs to define a levelt, itype, material and fnme.
! levelt is the inital level for the particles on the surface; to be accurate ! levelt is the initial level for the particles on the surface; to be accurate
! and avoid wholes in the surface during definition of the lsf, one should use ! and avoid wholes in the surface during definition of the lsf, one should use
! levelt=levelmax_oct+1 for all surfaces as a minimum value; itype should be 1 ! levelt=levelmax_oct+1 for all surfaces as a minimum value; itype should be 1
! for foldable surfaces or 0 for nonfoldable surfaces; material is the material ! for foldable surfaces or 0 for nonfoldable surfaces; material is the material
...@@ -175,6 +175,11 @@ endif ...@@ -175,6 +175,11 @@ endif
call mpi_bcast(params%init_e2d,1,mpi_logical,0,mpi_comm_world,ierr) call mpi_bcast(params%init_e2d,1,mpi_logical,0,mpi_comm_world,ierr)
write(threadinfo%Logunit,*) 'init_e2d ',params%init_e2d write(threadinfo%Logunit,*) 'init_e2d ',params%init_e2d
params%e2d0=1.d0
if (iproc==0) call scanfile (params%infile,'e2d0',params%e2d0,ires)
call mpi_bcast(params%e2d0,1,mpi_double_precision,0,mpi_comm_world,ierr)
write(threadinfo%Logunit,*) 'e2d0 ',params%e2d0
do i=0,params%nmat do i=0,params%nmat
write(cm,'(i3)') i write(cm,'(i3)') i
il=1 il=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment