-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevolveProca.f90
executable file
·60 lines (42 loc) · 1.65 KB
/
evolveProca.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
48
49
50
51
52
53
54
55
56
57
58
59
60
subroutine evolveProca
!===============================================!
! Esta subrutina evoluciona el Sistema !
! de Proca con ICN !
!===============================================!
!------------------------------------------------
! Usamos el módulo 'arrays' para declarar arreglos
! y el módulo 'vars' para las variables de entrada.
use vars
use arrays
implicit none
!------------------------------------------------
! Definimos variables importantes.
integer j, k, n
real(8) dtw
!------------------------------------------------
! Alojamos en memoria los arreglos.
allocate( F(Nr), G(Nr) )
allocate( F1(Nr), F2(Nr), G1(Nr), G2(Nr) )
!------------------------------------------------
! Abriremos archivos.
!------------------------------------------------
! Llamamos a las condiciones iniciales.
call initialProca
adot = cero
!------------------------------------------------
! Si solo queremos la condición inicial ya la tendríamos
! y finalizamos esta subrutina con el 'return'.
if (evolveType == 1) then
return
end if
!------------------------------------------------
! Imprimimos información inicial a pantalla.
!------------------------------------------------
! Guardamos información al tiempo cero.
!================================================
! Comenzamos con el ciclo principal de evolución.
!================================================
! Finaliza el ciclo principal de evolución.
!------------------------------------------------
! Cerramos las puertas que abrimos.
end subroutine