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

Go to the source code of this file.

Functions/Subroutines

subroutine depvars (inpc, textpart, nelcon, nmat, nstate_, irstrt, istep, istat, n, iline, ipol, inl, ipoinp, inp, ncocon, ipoinpc)
 

Function/Subroutine Documentation

◆ depvars()

subroutine depvars ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
integer, dimension(2,*)  nelcon,
integer  nmat,
integer  nstate_,
integer  irstrt,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(2,*)  ncocon,
integer, dimension(0:*)  ipoinpc 
)
22 !
23 ! reading the input deck: *DEPVAR
24 !
25  implicit none
26 !
27  character*1 inpc(*)
28  character*132 textpart(16)
29 !
30  integer nelcon(2,*),nmat,istep,nstate_,ncocon(2,*),ipoinpc(0:*),
31  & n,key,istat,nstate,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*),i
32 !
33  if((istep.gt.0).and.(irstrt.ge.0)) then
34  write(*,*) '*ERROR in depvars: *DEPVAR should be placed'
35  write(*,*) ' before all step definitions'
36  call exit(201)
37  endif
38 !
39  if(nmat.eq.0) then
40  write(*,*) '*ERROR in depvars: *DEPVAR should be preceded'
41  write(*,*) ' by a *MATERIAL card'
42  call exit(201)
43  endif
44 !
45 c if((nelcon(1,nmat).gt.-100).and.(ncocon(1,nmat).gt.-100)) then
46 c write(*,*) '*ERROR in depvars: *DEPVAR should be preceded'
47 c write(*,*) ' by an *USER MATERIAL card'
48 c call exit(201)
49 c endif
50 !
51  do i=2,n
52  write(*,*)
53  & '*WARNING in depvars: parameter not recognized:'
54  write(*,*) ' ',
55  & textpart(i)(1:index(textpart(i),' ')-1)
56  call inputwarning(inpc,ipoinpc,iline,
57  &"*DEPVAR%")
58  enddo
59 !
60  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
61  & ipoinp,inp,ipoinpc)
62  if((istat.lt.0).or.(key.eq.1)) then
63  write(*,*) '*ERROR in depvars: incomplete definition'
64  call exit(201)
65  endif
66  read(textpart(1)(1:10),'(i10)',iostat=istat) nstate
67  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
68  &"*DEPVAR%")
69  nstate_=max(nstate_,nstate)
70 !
71  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
72  & ipoinp,inp,ipoinpc)
73 !
74  return
#define max(a, b)
Definition: cascade.c:32
subroutine inputwarning(inpc, ipoinpc, iline, text)
Definition: inputwarning.f:20
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
subroutine inputerror(inpc, ipoinpc, iline, text)
Definition: inputerror.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)