CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
getnewline.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine getnewline (inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
 

Function/Subroutine Documentation

◆ getnewline()

subroutine getnewline ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
integer  istat,
integer  n,
integer  key,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc 
)
21 !
22  implicit none
23 !
24 ! parser for the input file (original order)
25 !
26  character*1 inpc(*)
27  character*132 textpart(16)
28  character*1320 text
29 !
30  integer istat,n,key,iline,ipol,inl,ipoinp(2,*),inp(3,*),
31  & ipoinpc(0:*),i,j,nentries
32 !
33  parameter(nentries=17)
34 !
35 ! reading a new line
36 !
37  if(iline.eq.inp(2,inl)) then
38  if(inp(3,inl).eq.0) then
39  do
40  ipol=ipol+1
41  if(ipol.gt.nentries) then
42  istat=-1
43  return
44  elseif(ipoinp(1,ipol).ne.0) then
45  exit
46  endif
47  enddo
48  inl=ipoinp(1,ipol)
49  iline=inp(1,inl)
50  else
51  inl=inp(3,inl)
52  iline=inp(1,inl)
53  endif
54  else
55  iline=iline+1
56  endif
57  j=0
58  do i=ipoinpc(iline-1)+1,ipoinpc(iline)
59  j=j+1
60  text(j:j)=inpc(i)
61  enddo
62  text(j+1:j+1)=' '
63 !
64  istat=0
65  key=0
66 !
67 ! only free format is supported
68 !
69  if((text(1:1).eq.'*').and.(text(2:2).ne.'*')) then
70  key=1
71  endif
72 !
73  call splitline(text,textpart,n)
74 !
75  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)