Go to the source code of this file.
◆ includefilename()
subroutine includefilename |
( |
character*1320 |
text, |
|
|
character*132 |
includefn, |
|
|
integer |
lincludefn |
|
) |
| |
25 character*132 includefn
28 integer nstart,nend,ii,jj,kk,lincludefn
33 loop:
do ii=1,lincludefn
34 if(text(ii:ii).eq.
'=')
then 36 if(text(jj:jj).eq.
'"')
then 39 if(text(kk:kk).eq.
'"')
then 44 write(*,*)
'*ERROR in includefilename: ',
45 &
'finishing quotes are lacking' 46 write(*,*)
'*ERROR in the input deck. Card image:' 48 & (text(kk:kk),kk=1,lincludefn)
57 if(ii.eq.lincludefn+1)
then 58 write(*,*)
'*ERROR in includefilename: syntax error' 59 write(*,*)
'*ERROR in the input deck. Card image:' 61 & (text(kk:kk),kk=1,lincludefn)
65 if(nend.ge.nstart)
then 66 if(nend-nstart+1.le.132)
then 67 includefn(1:nend-nstart+1)=text(nstart:nend)
68 lincludefn=nend-nstart+1
70 write(*,*)
'*ERROR in includefilename: file name too long' 71 write(*,*)
'*ERROR in the input deck. Card image:' 73 & (text(kk:kk),kk=1,lincludefn)
77 write(*,*)
'*ERROR in includefilename: file name is lacking' 78 write(*,*)
'*ERROR in the input deck. Card image:' 80 & (text(kk:kk),kk=1,lincludefn)