~asc/fluidity/iceshelfcavity

« back to all changes in this revision

Viewing changes to legacy_reservoir_prototype/tests/BL_test_10elements_1d/input_wic_vol_bc_BL1_fcn.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
 
program main
2
 
  implicit none
3
 
  integer :: ndim
4
 
  integer, dimension( : ), allocatable :: field
5
 
  integer :: i
6
 
 
7
 
  open( 5, file = 'filedim', status = 'unknown' )
8
 
  read( 5, * ) ndim
9
 
  close( 5 )
10
 
 
11
 
  allocate( field( ndim ))
12
 
 
13
 
  field = 0.
14
 
  field( 1 ) = 1.
15
 
  field( 3 ) = 1.
16
 
 
17
 
  do i = 1, ndim
18
 
     print*, field( i )
19
 
  end do
20
 
 
21
 
end program main