Gitiles
Code Review
Sign In
gerrit.avm99963.com
/
edu
/
college-misc
/
61897898c5b660cdec6e1d3a06804f88fede4a89
/
.
/
quad10
/
fenomens
/
lab
/
p4
/
energ.f90
blob: ba7841cc5c96aa934e8b7d0b48556fd820465bc5 [
file
] [
log
] [
blame
]
real
*
8
function
ENERG
(
S
,
L
)
integer
*
2
::
S
(
1
:
64
,
1
:
64
)
integer
*
4
::
I
,
J
,
L
,
PBC
real
*
8
::
ENE
ENE
=
0.0d0
do
I
=
1
,
L
do
J
=
1
,
L
ENE
=
ENE
-
S
(
I
,
J
)*
S
(
PBC
(
I
+
1
,
L
),
J
)
-
S
(
I
,
J
)*
S
(
I
,
PBC
(
J
+
1
,
L
))
enddo
enddo
ENERG
=
ENE
return
endfunction