1 program vec_boundary_conditions_test
3 use module_boundary_conditions
! testing only
4 use module_utils
! to read and write matrices as text files from matlab
8 real, pointer:: F(:,:,:), & ! fortran is not case sensitive
13 ifds
, ifde
, kfds
, kfde
, jfds
, jfde
, & ! fire domain bounds
14 ifms
, ifme
, kfms
, kfme
, jfms
, jfme
, & ! fire memory bounds
15 ifps
, ifpe
, kfps
, kfpe
, jfps
, jfpe
, & ! fire memory bounds
16 ifts
, ifte
, kfts
, kfte
, jfts
,jfte
! fire tile bounds
19 ! read input arrays in ikj index ordering and tight bounds
20 call read_array(F_m
,'F')
42 ! allocate a little bigger with zeros in extra areas
43 allocate(F(ifms
:ifme
,kfms
:kfme
,jfms
:jfme
))
46 F(1:n(1),1:n(2),1:n(3))=F_m
48 write(*,'(a)')'calling vec_boundary_conditions'
49 call vec_boundary_conditions( &
50 ifds
, ifde
, kfds
, kfde
, jfds
, jfde
, & ! fire domain bounds
51 ifms
, ifme
, kfms
, kfme
, jfms
, jfme
, & ! fire memory bounds
52 ifps
, ifpe
, kfps
, kfpe
, jfps
, jfpe
, & ! fire memory bounds
53 ifts
, ifte
, kfts
, kfte
, jfts
,jfte
, & ! fire tile bounds
56 ! copy the output data
57 F_m
=F(1:n(1),1:n(2),1:n(3))
59 call write_array(F_m
,'Fb')
61 end program vec_boundary_conditions_test