lattice
subroutine set_name(this, lat_type) class(lattice) :: this character(*), intent(in) :: lat_type this%name = lat_type end subroutine set_name