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 | |||
| real(kind=dp), | intent(inout) | :: | ccentres_frac(:,:) | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine get_centre_constraint_from_column(column, start, finish, wann, dummy, ccentres_frac, & error, comm) !================================================! ! !! assigns value read to constraint !! parameters based on column ! !================================================! use w90_error, only: w90_error_type, set_error_input implicit none integer, intent(inout):: column, start, finish, wann character(len=maxlen), intent(inout):: dummy real(kind=dp), intent(inout) :: ccentres_frac(:, :) type(w90_error_type), allocatable, intent(out) :: error type(w90_comm_type), intent(in) :: comm if (column == 0) then read (dummy(start:finish), '(i3)') wann end if if (column > 0) then if (column > 4) then call set_error_input(error, "Didn't expect anything else after Lagrange multiplier", comm) return end if if (column < 4) read (dummy(start:finish), '(f10.10)') ccentres_frac(wann, column) end if column = column + 1 end subroutine get_centre_constraint_from_column