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

Go to the source code of this file.

Functions/Subroutines

subroutine push (item, maxstk, topstk, stack)
 

Function/Subroutine Documentation

◆ push()

subroutine push ( integer  item,
integer  maxstk,
integer  topstk,
integer, dimension(*)  stack 
)
24 !
25  implicit none
26 !
27  integer topstk,maxstk,stack(*),item
28 !
29  topstk=topstk+1
30  if(topstk.gt.maxstk) then
31  write(6,'("0***error in subroutine push***")')
32  write(6,'("***stack overflow***")')
33  call exit(201)
34  else
35  stack(topstk)=item
36  endif
Hosted by OpenAircraft.com, (Michigan UAV, LLC)