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

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: 835 bytes
RevLine 
[a24d685]1Program Driver
2
3implicit none
4
5#include "Eos.h"
6#include "Eos_map.h"
7#include "constants.h"
8#include "Flash.h"
9
10 integer, dimension(LOW:HIGH,MDIM) :: range
11 integer :: vecLen, n, dataStruct
12 real, dimension(EOS_NUM,NZB,NYB,NXB) :: solnData
13 real, dimension(EOS_NUM*NZB*NYB*NXB) :: eosData
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 dataStruct = 1
23
24 n = 1
25
26 do l = 1, EOS_NUM
27 do k = GRID_KLO,GRID_KHI
28 do j = GRID_JLO,GRID_JHI
29 do i = GRID_ILO,GRID_IHI
30 solnData(l,k,j,i) = 1.0
31 eosData(n) = 0.0
32 n = n+1
33 end do
34 end do
35 end do
36 end do
37
38 call Eos_getData(range,vecLen,solnData,dataStruct,eosData)
39
40End Program
Note: See TracBrowser for help on using the repository browser.