! ANSYS $RCSfile: TZDELE.MAC,v $
! Modified on $Date: 2010-11-14 13:40:31 -0500 (Sun, 14 Nov 2010) $ 
! Source ID = $Revision: 435640 $
/nopr
! macro to delete Trefftz superelement and constraints
!
*get,_rout,active,,rout
*if,_rout,ne,17,then
  *msg,warn
  Enter Prep7 before issuing the TZDELE command macro
  _ok=1
*endif

*if,_ok,ne,1,then

*get,_cemin,tref,,cemi  ! smallest CE #
*get,_cemax,tref,,cema  ! largest CE #
*get,_tzelem,tref,,enum ! element # of TZ superelement
*get,_gui,active,0,int

*if,_gui,gt,0,then
 immed,0
*endif

!
/gopr
 *msg,info
 %/________________ TREFFTZ DOMAIN DELETE SUMMARY ____________________

cedel,_cemin,_cemax     ! delete constraints
edel,_tzelem            ! delete superelement
!
/dele,,sub              ! delete superelement matrix file
/dele,,tzn              ! delete Trefftz node file
/dele,,tze              ! delete surface elem file
/dele,,tzx              ! delete surface node file
/dele,,tzm              ! delete Trefftz material file

 *msg,info
 %/-------------------------------------------------------------------
/nopr
!
/tst,t9testt1,4         ! delete Trefftz *get items
!
*if,_gui,gt,0,then
 immed,1
*endif

*endif

_ok=
_rout=
_cemin=
_cemax=
_tzelem=
_gui=
