The Elk Code
 
Loading...
Searching...
No Matches
readmix.f90
Go to the documentation of this file.
1
2! Copyright (C) 2025 Eddie Harris-Lee, J. K. Dewhurst and S. Sharma.
3! This file is distributed under the terms of the GNU General Public License.
4! See the file COPYING for license details.
5
6subroutine readmix(iscl0,nwork,work)
7use modmain
8implicit none
9! arguments
10integer, intent(out) :: iscl0
11integer, intent(in) :: nwork
12real(8), intent(out) :: work(nwork)
13! local variables
14integer ios,nwork_
15open(80,file='MIXWORK'//trim(filext),form='UNFORMATTED',action='READ', &
16 status='OLD',iostat=ios)
17if (ios /= 0) then
18 write(*,*)
19 write(*,'("Error(readmix): error opening ",A)') 'MIXWORK'//trim(filext)
20 write(*,*)
21 stop
22end if
23read(80) iscl0
24read(80) nwork_
25if (nwork /= nwork_) then
26 write(*,*)
27 write(*,'("Error(readmix): differing nwork")')
28 write(*,'(" current : ",I12)') nwork
29 write(*,'(" MIXWORK.OUT : ",I12)') nwork_
30 write(*,*)
31 stop
32end if
33read(80) work
34close(80)
35end subroutine
36
character(256) filext
Definition modmain.f90:1300
subroutine readmix(iscl0, nwork, work)
Definition readmix.f90:7