Next Up Previous Contents
Next: A.4.3 p3.f
Up: A.4 Profiling
Previous: A.4.1 p1.f
[ID index][Keyword index]

A.4.2 p2.f


      subroutine mkidentity (matrix, dim)
      implicit none
      integer dim
      real matrix (dim,dim)
      integer m,n
      do m = 1, dim
         do n = 1, dim
            if (m.eq.n) then
               matrix(m,n) = 1.
            else
               matrix(m,n) = 0.
            endif
         enddo
      enddo
      return
      end


Next Up Previous Contents
Next: A.4.3 p3.f
Up: A.4 Profiling
Previous: A.4.1 p1.f
[ID index][Keyword index]
Theory and Modelling Resources Cookbook
Starlink Cookbook 13
Norman Gray
2 December 2001. Release 2-5. Last updated 10 March 2003