Added print messages to let user know whats going on
This commit is contained in:
parent
e91bcd5d1e
commit
9ebdfff0a1
6 changed files with 62 additions and 15 deletions
|
@ -30,6 +30,8 @@ module mode_create
|
|||
integer :: i, ibasis, inod
|
||||
real(kind=dp), allocatable :: r_node_temp(:,:,:)
|
||||
|
||||
print *, '-----------------------Mode Create---------------------------'
|
||||
|
||||
!Initialize default parameters
|
||||
orient = reshape((/ 1.0_dp, 0.0_dp, 0.0_dp, 0.0_dp, 1.0_dp, 0.0_dp, 0.0_dp, 0.0_dp, 1.0_dp /), shape(orient))
|
||||
cell_mat(:,:)=0.0_dp
|
||||
|
@ -91,6 +93,8 @@ module mode_create
|
|||
end do
|
||||
else
|
||||
|
||||
print *, "Creating 1 element"
|
||||
|
||||
call cell_init(lattice_parameter, esize, element_type, orient, cell_mat)
|
||||
!If the user doesn't pass any build instructions than we just put the cell mat into the element_array
|
||||
call alloc_ele_arrays(1,0)
|
||||
|
@ -110,6 +114,7 @@ module mode_create
|
|||
|
||||
!If we passed the dup_flag or dim_flag then we have to convert the lattice points and add them to the atom/element arrays
|
||||
if(dup_flag.or.dim_flag) then
|
||||
|
||||
!Call the build function with the correct transformation matrix
|
||||
select case(trim(adjustl(element_type)))
|
||||
case('fcc')
|
||||
|
@ -123,6 +128,8 @@ module mode_create
|
|||
!Now that it is built multiply by the lattice parameter
|
||||
box_bd = box_bd*lattice_parameter
|
||||
|
||||
print *, "Using mode create, ", lat_ele_num, " elements are created and ", lat_atom_num*basisnum(1), " atoms are created."
|
||||
|
||||
!Allocate variables
|
||||
call alloc_ele_arrays(lat_ele_num, lat_atom_num*basisnum(1))
|
||||
if(lat_atom_num > 0) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue