|
|
@ -199,20 +199,7 @@ module mode_create
|
|
|
|
call get_command_argument(arg_pos, orient_string, arglen)
|
|
|
|
call get_command_argument(arg_pos, orient_string, arglen)
|
|
|
|
if (arglen==0) STOP "Missing orientation in orient command of mode create"
|
|
|
|
if (arglen==0) STOP "Missing orientation in orient command of mode create"
|
|
|
|
arg_pos = arg_pos+1
|
|
|
|
arg_pos = arg_pos+1
|
|
|
|
ori_pos=2
|
|
|
|
call parse_ori_vec(orient_string, orient(i,:))
|
|
|
|
do j = 1,3
|
|
|
|
|
|
|
|
if (orient_string(ori_pos:ori_pos) == '-') then
|
|
|
|
|
|
|
|
ori_pos = ori_pos + 1
|
|
|
|
|
|
|
|
read(orient_string(ori_pos:ori_pos), *, iostat=stat) orient(i,j)
|
|
|
|
|
|
|
|
if (stat>0) STOP "Error reading orient value"
|
|
|
|
|
|
|
|
orient(i,j) = -orient(i,j)
|
|
|
|
|
|
|
|
ori_pos = ori_pos + 1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
read(orient_string(ori_pos:ori_pos), *, iostat=stat) orient(i,j)
|
|
|
|
|
|
|
|
if(stat>0) STOP "Error reading orient value"
|
|
|
|
|
|
|
|
ori_pos=ori_pos + 1
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|