~asc/fluidity/iceshelfcavity

« back to all changes in this revision

Viewing changes to legacy_reservoir_prototype/tests/BL_test_gravity_unstable/input_perm_func.f90

  • Committer: Adam Candy
  • Date: 2011-10-12 20:39:04 UTC
  • Revision ID: adam.candy@imperial.ac.uk-20111012203904-9gwqzs4z798zcw0l
Automatic sync to launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
program input_perm_funct
3
 
  implicit none
4
 
  ! Allocating  PERM( TOTELE, NDIM, NDIM )
5
 
  integer, parameter :: totele = 50, ndim = 1
6
 
  real, dimension( totele, ndim, ndim ) :: perm
7
 
  ! Local
8
 
  integer :: i, j, k
9
 
  real, parameter :: perm_value = 1.
10
 
 
11
 
  print*, totele, ndim, ndim
12
 
 
13
 
  perm = 0.
14
 
  perm( 1 : totele, 1, 1 ) = perm_value
15
 
 
16
 
  do i = 1, totele
17
 
     do j = 1, ndim
18
 
        do k = 1, ndim
19
 
           print*, perm( i, j, k )
20
 
        end do
21
 
     end do
22
 
  end do
23
 
 
24
 
  return
25
 
end program input_perm_funct