-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.f90
31 lines (24 loc) · 796 Bytes
/
data.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
module data
use mod1
use linkedlist
private
public :: data_t
public :: data_ptr
! Data is stored in data_t
type :: data_t
real(dp),dimension(2) :: x !posição
real(dp),dimension(2) :: v !velocidade
real(dp),dimension(2) :: F !força nela
integer :: grupo !grupo que a partícula pertence
integer :: n !numero da partícula
logical :: flag ! bandeira auxiliar
end type data_t
! A trick to allow us to store pointers in the list
type :: data_ptr
type(data_t), pointer :: p
end type data_ptr
! pra fazer vetor de ponteiro
! type :: container
! type(list_t), pointer :: list => null()
! end type container
end module data