2019-12-05 11:04:49 -05:00
|
|
|
module mode_convert
|
|
|
|
|
|
|
|
use parameters
|
|
|
|
use box
|
|
|
|
use elements
|
|
|
|
use io
|
|
|
|
|
|
|
|
public
|
|
|
|
contains
|
|
|
|
|
2019-12-11 09:07:59 -05:00
|
|
|
subroutine convert(arg_pos)
|
2019-12-05 11:04:49 -05:00
|
|
|
!This subroutine converts a single input file from one format to another
|
2019-12-11 09:07:59 -05:00
|
|
|
integer, intent(out) :: arg_pos
|
2019-12-05 11:04:49 -05:00
|
|
|
character(len=100) :: infile, outfile
|
2019-12-07 13:38:52 -05:00
|
|
|
real(kind = dp) :: temp_box_bd(6)
|
2019-12-05 11:04:49 -05:00
|
|
|
!First read in the file
|
|
|
|
call get_command_argument(2, infile)
|
|
|
|
call get_in_file(infile)
|
2019-12-07 13:38:52 -05:00
|
|
|
call read_in(1, (/0.0_dp,0.0_dp,0.0_dp/), temp_box_bd)
|
|
|
|
call grow_box(temp_box_bd)
|
2019-12-11 09:07:59 -05:00
|
|
|
arg_pos = 3
|
2019-12-05 11:04:49 -05:00
|
|
|
|
|
|
|
end subroutine convert
|
|
|
|
end module mode_convert
|