-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm_setup.f90
48 lines (41 loc) · 1.09 KB
/
m_setup.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
!---------------------------------------------------------------------------
! MELQUIADES: Metropolis Monte Carlo Program !
!---------------------------------------------------------------------------
!bop
!
! !Module: m_init
!
! !Description: This module contains routines for initializing the variables
!and activating the Linked-Cell List
!\\
!\\
! !Interface:
!
module m_setup
use m_kind
use m_simtype
use m_boxtype
use m_read
use m_init
use m_zeros
use m_configuration
use m_metropolis
use m_dealloc
use m_error
use m_unit
!
implicit none
public :: r_setup
contains
subroutine r_setup( edge, t, y , x)
implicit none
type(simulation), intent(inout) :: y
type(box), pointer :: x
type(temporary), intent(inout) :: t
real(rkind) :: engconf, virconf
real(rkind), dimension(:), intent(inout) :: edge
call r_configuration(edge, engconf, virconf, t, y, x, 0, .true.)
call r_metropolis(edge, engconf, virconf, t, y, x)
call r_configuration(edge, engconf, virconf, t, y, x, 1, .true.)
end subroutine r_setup
end module m_setup