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
6
subroutine
readmix
(iscl0,nwork,work)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(out)
:: iscl0
11
integer
,
intent(in)
:: nwork
12
real
(8),
intent(out)
:: work(nwork)
13
! local variables
14
integer
ios,nwork_
15
open
(80,file=
'MIXWORK'
//trim(
filext
),form=
'UNFORMATTED'
,action=
'READ'
, &
16
status=
'OLD'
,iostat=ios)
17
if
(ios /= 0)
then
18
write
(*,*)
19
write
(*,
'("Error(readmix): error opening ",A)'
)
'MIXWORK'
//trim(
filext
)
20
write
(*,*)
21
stop
22
end if
23
read
(80) iscl0
24
read
(80) nwork_
25
if
(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
32
end if
33
read
(80) work
34
close
(80)
35
end subroutine
36
modmain
Definition
modmain.f90:6
modmain::filext
character(256) filext
Definition
modmain.f90:1300
readmix
subroutine readmix(iscl0, nwork, work)
Definition
readmix.f90:7
readmix.f90
Generated by
1.9.8