The Elk Code
Loading...
Searching...
No Matches
writestrain.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2018 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3
! This file is distributed under the terms of the GNU General Public License.
4
! See the file COPYING for license details.
5
6
subroutine
writestrain
7
use
modmain
8
implicit none
9
! local variables
10
integer
i,j,k
11
! initialise universal variables
12
call
init0
13
! generate the strain tensors
14
call
genstrain
15
! write the strain tensors to file
16
open
(50,file=
'STRAIN.OUT'
,form=
'FORMATTED'
,action=
'WRITE'
)
17
do
k=1,
nstrain
18
write
(50,*)
19
write
(50,
'("Strain tensor : ",I1)'
) k
20
do
j=1,3
21
write
(50,
'(3G18.10)'
) (
strain
(i,j,k),i=1,3)
22
end do
23
end do
24
close
(50)
25
write
(*,*)
26
write
(*,
'("Info(writestrain)")'
)
27
write
(*,
'(" Strain tensors written to STRAIN.OUT")'
)
28
write
(*,
'(" (the first strain tensor is isotropic expansion)")'
)
29
end subroutine
30
genstrain
subroutine genstrain
Definition
genstrain.f90:7
init0
subroutine init0
Definition
init0.f90:10
modmain
Definition
modmain.f90:6
modmain::nstrain
integer nstrain
Definition
modmain.f90:1012
modmain::strain
real(8), dimension(3, 3, 9) strain
Definition
modmain.f90:1016
writestrain
subroutine writestrain
Definition
writestrain.f90:7
writestrain.f90
Generated by
1.9.8