assigns value read to constraint parameters based on column
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | column | |||
integer, | intent(inout) | :: | start | |||
integer, | intent(inout) | :: | finish | |||
integer, | intent(inout) | :: | wann | |||
character(len=maxlen), | intent(inout) | :: | dummy |
subroutine param_get_centre_constraint_from_column(column, start, finish, wann, dummy)
!===================================!
! !
!! assigns value read to constraint
!! parameters based on column
! !
!===================================!
use w90_io, only: io_error
integer, intent(inout):: column, start, finish, wann
character(len=maxlen), intent(inout):: dummy
if (column == 0) then
read (dummy(start:finish), '(i3)') wann
end if
if (column > 0) then
if (column > 4) call io_error("Didn't expect anything else after Lagrange multiplier")
if (column < 4) read (dummy(start:finish), '(f10.10)') ccentres_frac(wann, column)
end if
column = column + 1
end subroutine param_get_centre_constraint_from_column