Go to the source code of this file.
|
subroutine | writeinput (inpc, ipoinp, inp, nline, ninp, ipoinpc) |
|
◆ writeinput()
subroutine writeinput |
( |
character*1, dimension(*) |
inpc, |
|
|
integer, dimension(2,nentries) |
ipoinp, |
|
|
integer, dimension(3,ninp) |
inp, |
|
|
integer |
nline, |
|
|
integer |
ninp, |
|
|
integer, dimension(0:*) |
ipoinpc |
|
) |
| |
23 parameter(nentries=17)
26 character*20 nameref(nentries)
28 integer nline,i,j,ninp,ipoinp(2,nentries),inp(3,ninp),
31 data nameref /
'RESTART,READ',
'NODE',
'USERELEMENT',
'ELEMENT',
33 &
'ELSET',
'SURFACE',
'TRANSFORM',
'MATERIAL',
34 &
'ORIENTATION',
'TIE',
'SURFACEINTERACTION',
35 &
'INITIALCONDITIONS',
'AMPLITUDE',
36 &
'CONTACTPAIR',
'COUPLING',
'REST'/
38 open(16,file=
'input.inpc',status=
'unknown',err=161)
40 write(16,
'(1x,i6,1x,1320a1)') i,
41 & (inpc(j),j=ipoinpc(i-1)+1,ipoinpc(i))
45 open(16,file=
'input.ipoinp',status=
'unknown',err=162)
47 write(16,
'(1x,a20,1x,i6,1x,i6)') nameref(i),(ipoinp(j,i),j=1,2)
51 open(16,file=
'input.inp',status=
'unknown',err=163)
53 write(16,
'(1x,i3,1x,i6,1x,i6,1x,i6)') i,(inp(j,i),j=1,3)
59 161
write(*,*)
'*ERROR in writeinput: could not open file input.inpc' 63 &
'*ERROR in writeinput: could not open file input.ipoinp' 66 163
write(*,*)
'*ERROR in writeinput: could not open file input.inp'