-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathglobal.f90
executable file
·47 lines (40 loc) · 1.43 KB
/
global.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
! ********************************************
! global.h - global vars
! ********************************************
! Solving the
!
! Convection Diffusion Problem
!
! with the Finite Element Method
! ********************************************
! Changelog:
!
! 2012.02.06: Start basic outline
!
! ********************************************
module global
integer,parameter :: numberOfNodes = 8
integer,parameter :: numberOfElements = numberOfNodes - 1
integer,parameter :: numberOfSpatialDimensions = 1
integer,parameter :: numberOfNodesPerElement = 2
integer,parameter :: numberOfDOFPerNode = 1
real,parameter :: elementLength = 1
! integer :: numberOfEquations
! Fluid Properties
type fluid
real :: a
real :: nu
end type
! Mesh Properties
type mesh
real, dimension(:), pointer :: boundaryFlag
real, dimension(:,:), pointer :: elementConnectivity
real, dimension(:), pointer :: nodePositions
end type mesh
! allocate(boundary(lwb:upb,lwb1:upb1), STAT=ierr)
! if ( ierr .ne. 0 ) then
! print *, "global: mesh.boundary allocation failed"
! function deallocateEverything()
! if allocated(mesh%boundary) then deallocate mesh%boundary
! end function deallocateEverything
end module global