Go to the source code of this file.
|
subroutine | writesubmatrix (submatrix, noderetain, ndirretain, nretain, jobnamec) |
|
◆ writesubmatrix()
subroutine writesubmatrix |
( |
real*8, dimension(nretain,nretain) |
submatrix, |
|
|
integer, dimension(*) |
noderetain, |
|
|
integer, dimension(*) |
ndirretain, |
|
|
integer |
nretain, |
|
|
character*132, dimension(*) |
jobnamec |
|
) |
| |
26 character*132 jobnamec(*),fn
28 integer i,j,nretain,ilen,noderetain(*),ndirretain(*)
30 real*8 submatrix(nretain,nretain)
32 ilen=index(jobnamec(5),
' ')
34 write(*,*)
'*ERROR in writesubmatrix:' 35 write(*,*)
' name of file for storing the submatrix' 36 write(*,*)
' is too long (> 128 char); name = ' 37 write(*,*) jobnamec(5)(1:132)
40 fn(1:ilen-1)=jobnamec(5)(1:ilen-1)
41 fn(ilen:ilen+3)=
'.mtx' 47 open(12,file=fn,status=
'unknown')
51 101
format(
'** GENERATION OF SUBSTRUCTURE')
53 102
format(
'*USER ELEMENT,NODES= ',i10,
',LINEAR')
55 103
format(
'** ELEMENT NODES')
56 write(12,104) (noderetain(i),i=1,nretain)
57 104
format(
'**',i10,
',',i10,
',',i10,
',',i10,
',',i10,
',',i10,
',',
58 &i10,
',',i10,
',',i10,
',',i10,
',')
59 write(12,105) ndirretain(1)
61 write(12,106) (i,ndirretain(i),i=2,nretain)
62 106
format(i10,
',',i10)
64 107
format(
'*MATRIX,TYPE=STIFFNESS')
67 write(12,108) (submatrix(i,j),i=1,j)
69 108
format(e20.13,
',',e20.13,
',',e20.13,
',',e20.13,
',')