source: CIVL/examples/fortran/flash/eos_getData_min/driver.F

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 998 bytes
Line 
1 Program Driver
2
3 implicit none
4
5 #include "Eos.h"
6 #include "Eos_map.h"
7 #include "constants.h"
8 #include "Flash.h"
9
10 integer range(LOW:HIGH,MDIM)
11 integer vecLen, n
12 real solnData(EOS_NUM,NZB,NYB,NXB)
13 real eosData(EOS_NUM*NZB*NYB*NXB)
14
15 range(LOW, IAXIS) = GRID_ILO
16 range(LOW, JAXIS) = GRID_JLO
17 range(LOW, KAXIS) = GRID_KLO
18 range(HIGH, IAXIS) = GRID_IHI
19 range(HIGH, JAXIS) = GRID_JHI
20 range(HIGH, KAXIS) = GRID_KHI
21
22 n = 1
23
24 do l = 1, EOS_NUM
25 do k = GRID_KLO,GRID_KHI
26 do j = GRID_JLO,GRID_JHI
27 do i = GRID_ILO,GRID_IHI
28 solnData(l,k,j,i) = 1.0
29 eosData(n) = 0.0
30 n = n+1
31 end do
32 end do
33 end do
34 end do
35
36! call Eos_getData(range,vecLen,solnData,1,eosData)
37
38 End Program Driver
39
Note: See TracBrowser for help on using the repository browser.