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
6subroutine writestrain
7use modmain
8implicit none
9! local variables
10integer i,j,k
11! initialise universal variables
12call init0
13! generate the strain tensors
14call genstrain
15! write the strain tensors to file
16open(50,file='STRAIN.OUT',form='FORMATTED',action='WRITE')
17do 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
23end do
24close(50)
25write(*,*)
26write(*,'("Info(writestrain)")')
27write(*,'(" Strain tensors written to STRAIN.OUT")')
28write(*,'(" (the first strain tensor is isotropic expansion)")')
29end subroutine
30
subroutine genstrain
Definition genstrain.f90:7
subroutine init0
Definition init0.f90:10
integer nstrain
Definition modmain.f90:1012
real(8), dimension(3, 3, 9) strain
Definition modmain.f90:1016
subroutine writestrain