-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.f90
94 lines (87 loc) · 3.57 KB
/
common.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
! * * * * *
! *
! * JYU_SAMPLE
! *
! * Version: 0.5
! *
! * Date (DD/MM/YYYY): 08/10/2019
! *
! * File: jyu_sample/common.f90
! *
! * Author:
! * Gabriele Inghirami (University of Jyvaskyla and Helsinki Institute of physics- Finland)
! * E-mail: [email protected]
! * in collaboration with:
! * Harri Niemi (University of Jyvaskyla and Helsinki Institute of physics- Finland)
! *
! * Copyright - Important attribution note:
! *
! * THIS PROGRAM CONTAINS CODE:
! *
! * - INCLUDED IN ECHO-QGP v.1.0.x AND DEVELOPED BY:
! * Valentina Rolando (INFN and University of Ferrara - Italy)
! * with the contribution of:
! * Giuseppe Pagliara and Alessandro Drago (INFN and University of Ferrara - Italy)
! * References:
! * Eur.Phys.J. C73 (2013) 2524 - arXiv: 1305.7052
! * Eur.Phys.J. C75 (2015) no.9, 406, Erratum: Eur.Phys.J. C78 (2018) no.5, 354 - 1501.04468
! *
! * - INSPIRED BY A C++ PROGRAM WRITTEN IN 2013 BY:
! * Hannu Holopainen (Franfkurt University and FIAS - Germany)
! *
! *
! * License: GPL version 2.0 (Please, read the file LICENSE.TXT)
! *
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
! *
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
! *
! * You should have received a copy of the GNU General Public License
! * along with this program; if not, write to the Free Software
! * Foundation, Inc., 51 Franklin Street, Fifth Floor,
! * Boston, MA 02110-1301, USA.
! *
! * * * * *
module constants
implicit none
real(8), parameter :: PIGRECO=3.14159265358979323846
real(8), parameter :: HBARC=0.197326
real(8), parameter :: NOR_DENS=1.0/(2.0*PIGRECO*PIGRECO*HBARC*HBARC*HBARC)
real(8), parameter :: TWOPIhbarc_cube = (2.0*PIGRECO*HBARC)**3
real(8), parameter :: GREEK_PI=acos(-1.d0)
end module constants
! !------------------------------------------------------------------
module common ! OVERALL
use constants
use settings
implicit none
integer dimension_flag
! directory and file names for the i/o
character*32 inputdir,file,input,input1,outdir,output
integer LID_in, LID_out
integer frozen_cells, produced_particles
real Energy_int,particle_energy
integer npart
integer seed_settings, trueseed
contains
! !------------------------------------------------------------------
subroutine check_file(Status, filename)
implicit none
integer, intent(in) :: Status
character(len=*), intent(in) :: filename
if (Status .ne. 0) then
print *, "****** ERROR ******"
print *, "the file named: " , filename
print *, "cannot be opened. I am forced to quit!"
print *, "filename test", filename
call exit(1)
end if
end subroutine check_file
! !------------------------------------------------------------------
end module common