{"height":"190","published":"2011-10-30 19:04:56","author_url":"https://blog.hatena.ne.jp/fortran66/","url":"https://fortran66.hatenablog.com/entry/20111030/1319969096","blog_url":"https://fortran66.hatenablog.com/","blog_title":"fortran66\u306e\u30d6\u30ed\u30b0","author_name":"fortran66","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffortran66.hatenablog.com%2Fentry%2F20111030%2F1319969096\" title=\"\u7d20\u6734\u633f\u5165\u30bd\u30fc\u30c8 - fortran66\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u7d20\u6734\u633f\u5165\u30bd\u30fc\u30c8","version":"1.0","width":"100%","categories":["Fortran2003"],"provider_name":"Hatena Blog","type":"rich","image_url":null,"description":"\u914d\u5217\u751f\u6210\u5b50\u3092\u4f7f\u3063\u305f\u3082\u306e\u306f\u3001\u914d\u5217\u306f\u307f\u51fa\u3057\u306e\u5834\u5408\u5206\u3051\u3092\u3057\u306a\u304f\u3066\u6e08\u3080\u304c\u3001\u6b7b\u306c\u307b\u3069\u9045\u3044\uff57 \u7d20\u6734\u306a\u65b9\u304c\u3044\u3044\u3002 module m_isort2 contains subroutine isort2( x ) real, intent(in out) :: x(:) real :: tmp integer :: i, k, n n = size(x) if (n <= 1) return do k = n - 1, 1, -1 tmp = x(k) do j = k + 1, n if ( tmp > x(j) ) then x(j - 1) = x(j) else exit end if end do x\u2026"}