Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(map_type), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | id | |||
integer, | intent(in), | dimension(:) | :: | codes | ||
integer, | intent(in), | dimension(:) | :: | atoms |
pure subroutine init_map(this, id, codes, atoms)
class(map_type), intent(inout) :: this
integer, intent(in) :: id
integer, dimension(:), intent(in) :: codes, atoms
this%id = id
allocate(this%atoms(size(codes)))
allocate(this%codes(size(codes)))
this%codes = codes
this%atoms = atoms
end subroutine init_map