atomes
1.1.17
atomes: an atomic scale modeling tool box
Toggle main menu visibility
Main Page
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Data Types
Data Types List
Data Type Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
i
l
m
o
p
q
r
s
t
v
w
Enumerations
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
z
Macros
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
y
z
▼
atomes
►
atomes: code source documentation
►
Modules
►
Data Types
▼
Files
▼
File List
►
calc
►
curve
▼
fortran
►
allocbonds.F90
►
allochem.F90
►
allocmsd.F90
►
angles.F90
►
bonds.F90
►
c3d.F90
►
chains.F90
►
chains_ogl.F90
►
chemistry.F90
►
clean.F90
►
cqvf.F90
►
dmtx.F90
►
dvtb.F90
►
escs.F90
►
fzbt.F90
►
gr.F90
►
grfft.F90
►
initchains.F90
►
initrings.F90
►
lattice.F90
►
mendeleiev.F90
►
molecules.F90
►
msd.F90
►
parameters.F90
►
pdb.F90
►
prepdata.F90
►
resrings.F90
►
rings-guttman.F90
►
rings-king.F90
►
rings-primitive.F90
►
rings_ogl.F90
►
sk.F90
►
spherical.F90
►
sq.F90
►
threads.F90
►
trj.F90
►
utils.F90
►
vas.F90
►
writedata.F90
►
xyz.F90
►
gui
►
opengl
►
project
►
startup-testing
►
workspace
►
affero.h
►
bind.h
►
config.h
►
global.c
►
global.h
►
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
threads.F90
Go to the documentation of this file.
1
! This file is part of the 'atomes' software.
2
!
3
! 'atomes' is free software: you can redistribute it and/or modify it under the terms
4
! of the GNU Affero General Public License as published by the Free Software Foundation,
5
! either version 3 of the License, or (at your option) any later version.
6
!
7
! 'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8
! without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
! See the GNU General Public License for more details.
10
!
11
! You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12
! If not, see <https://www.gnu.org/licenses/>
13
!
14
! Copyright (C) 2022-2025 by CNRS and University of Strasbourg
15
!
20
21
INTEGER
FUNCTION
get_thread_start
(NOBJ, NTHREADS, THREAD_ID)
22
23
IMPLICIT NONE
24
25
INTEGER
,
INTENT(IN)
:: nobj, nthreads, thread_id
26
INTEGER
:: tmp
27
REAL
:: va, vb
28
29
va = nobj
30
vb = nthreads
31
tmp = int(va/vb)
32
get_thread_start
= tmp * thread_id + 1
33
21
INTEGER
FUNCTION
get_thread_start
(NOBJ, NTHREADS, THREAD_ID)
…
34
END FUNCTION
35
36
INTEGER
FUNCTION
get_thread_end
(NOBJ, NTHREADS, THREAD_ID)
37
38
IMPLICIT NONE
39
40
INTEGER
,
INTENT(IN)
:: nobj, nthreads, thread_id
41
INTEGER
:: tmp
42
REAL
:: va, vb
43
44
va = nobj
45
vb = nthreads
46
tmp = int(va/vb)
47
if
(thread_id .eq. nthreads-1)
then
48
get_thread_end
= nobj
49
else
50
get_thread_end
= tmp * (thread_id+1)
51
endif
52
36
INTEGER
FUNCTION
get_thread_end
(NOBJ, NTHREADS, THREAD_ID)
…
53
END FUNCTION
get_thread_start
integer function get_thread_start(nobj, nthreads, thread_id)
Definition
threads.F90:22
get_thread_end
integer function get_thread_end(nobj, nthreads, thread_id)
Definition
threads.F90:37
fortran
threads.F90
Generated by
1.10.0