*deck,uep103       USERDISTRIB  parallel                                pck
      subroutine uep103 (iott,elem,nodes,mat, kept,tem,
     x  kemn,fluen, kems,force, kens,sig, keel,epel,
     x  keth,eptho,epswel,epino, kenl,sigepl,sigrat,hpres,epeq,
     x  kepl,eppl, kecr,epcrp)
c
c --- This is an exact copy of uep101 (for testing purposes) ---
c
c *** primary function:    produce printed output for user103
c
c         *** Copyright ANSYS.  All Rights Reserved.
c         *** ansys, inc.
c *** Notice - This file contains ANSYS Confidential information ***
c
c  **********  this subroutine is provided for user information  *********
c *** user programmable features may not be used in parallel processing ***
c
c  input arguments:
c     iott     (int,sc,in)         - output unit number
c     elem     (int,sc,in)         - element number
c     nodes    (int,ar(2),in)      - node numbers
c     mat      (int,sc,in)         - material number
c     kept     (int,sc,in)         - key to print temperatures
c     tem      (dp,ar(2),in)       - nodal temperatures
c     kemn     (inr,sc,in)         - key to print fluences
c     fluen    (dp,ar(2),in)       - neutron fluences
c     kems     (int,sc,in)         - key to print moment forces
c     force    (int,sc,in)         - member force fx
c     kens     (int,sc,in)         - key to print strains
c     sig      (dp,sc,in)          - axial stress
c     keel     (int,sc,in)         - key to print elastic strain
c     epel     (dp,sc,in)          - axial elastic strain
c     keth     (int,sc,in)         - key to print thermal,initial,swelling strai
c     eptho    (dp,sc,in)          - axial thermal strain
c     epswel   (dp,sc,in)          - swelling strain
c     epino    (dp,sc,in)          - initial axial strain
c     kenl     (int,sc,in)         - key set if any nonlinear materials present
c     sigepl   (dp,sc,in)          - stress in stress-strain curve
c     sigrat   (dp,sc,in)          - stress ratio
c     hpres    (dp,sc,in)          - hydrostatic pressure
c     epeq     (dp,sc,in)          - plastic equivalent strain
c     kepl     (int,sc,in)         - key to print plastic strain
c     eppl     (dp,sc,in)          - plastic strain
c     kecr     (int,sc,in)         - key to print creep strain
c     epcrp    (dp,sc,in)          - creep strain
c
c  output arguments:     none
c
#include "impcom.inc"
#include "locknm.inc"
c
      external  pplock,ppunlock
c
      integer iott,elem,nodes(2),mat,kept,kemn,kems,kens,keel,keth,
     x  kenl,kepl,kecr, i
      double precision
     x tem(2),fluen(2),force,sig,epel,eptho,epino,sigepl,sigrat,
     x hpres,epeq,eppl,epcrp,epswel
c
c  Conditional tracking for qa activated by stability
#ifdef TRACK_QA
      external TrackPoint
      call TrackPoint('uep103')
#endif
c
c
c --- header
      call pplock (LOCKOT)
      write (iott,2000) elem,(nodes(i),i=1,2),mat
 2000 format (/' EL=',i8,' NODES=',2i8,' MAT=',i6,
     x 77x,'USER103 ')
c
c --- write out temperatures fluences
      if (kept.ge.1 .and. kemn.ge.1) then
         write (iott,2001)(tem(i),i=1,2),(fluen(i),i=1,2)
 2001    format ('  TEMP =',2f8.2,'  FLUENCES =',2e10.3)
      else if (kept.ge.1) then
         write (iott,2002)(tem(i),i=1,2)
 2002    format ('  TEMP =',2f8.2)
      else if (kemn.ge.1) then
         write (iott,2003)(fluen(i),i=1,2)
 2003    format ('  FLUENCES =',2e10.3)
      endif
c
c ---  write out moment forces
      if (kems.ge.1)
     x   write (iott,2005)force
 2005    format (' MFORX=',g12.5)
c
c ---  linear matrials
      if (kens.ge.1 .and. keel.ge.1 .and. keth.ge.1) then
         write (iott,2006)sig,epel,eptho,epswel,epino
 2006    format (' SAXL=',g12.5,' EPELAXL=',f9.6,
     x    ' EPTHAXL=',f9.6,' EPSWAXL=',f9.6,' EPINAXL=',f9.6)
      else if (kens.ge.1 .and. keel.ge.1) then
         write (iott,2007)sig,epel
 2007    format (' SAXL=',g12.5,' EPELAXL=',f9.6)
      else if (kens.ge.1 .and. keth.ge.1) then
         write (iott,2008)sig,eptho,epswel,epino
 2008    format (' SAXL=',g12.5,' EPTHAXL=',f9.6,
     x     ' EPSWAXL=',f9.6,' EPINAXL=',f9.6)
      else if (keel.ge.1 .and. keth.ge.1) then
         write (iott,2009)epel,eptho,epswel,epino
 2009    format (' EPELAXL=',f9.6,' EPTHAXL=',f9.6,
     x     ' EPSWAXL=',f9.6,' EPINAXL=',f9.6)
      else if (kens.ge.1) then
         write (iott,2010)sig
 2010    format (' SAXL=',f12.6)
      else if (keel.ge.1) then
         write (iott,2011)epel
 2011    format (' EPELAXL=',f12.6)
      else if (keth.ge.1) then
         write (iott,2012)eptho,epswel,epino
 2012    format (' EPTHAXL=',f9.6,' EPSWAXL=',f9.6,
     x     ' EPINAXL=',f9.6)
      endif
c
c --- nonlinear materials
      if (kenl.ge.1)
     x   write (iott,2014) sigepl,sigrat,hpres,epeq
 2014    format (' SEPL=',g12.5,' SRAT=',g12.5,' HPRES=',g12.5,
     x   ' EPEQ=',g12.5)
c
c --- check for plastic and creep strain and print
      if (kepl.ge.1 .and. kecr.ge.1) then
         write (iott,2017)eppl,epcrp
 2017    format (' EPPLAXL=',f9.6,' EPCRAXL=',f9.6)
      else if (kepl.ge.1) then
         write (iott,2020) eppl
 2020    format ('  EPPLAXL=',f9.6)
      else if (kecr.ge.1) then
         write (iott,2025)epcrp
 2025    format (' EPCRAXL=',f9.6)
      endif
      call ppunlock (LOCKOT)
c
      return
      end
