*comdeck,elm_cadoe_ptrcm                                                gal

c *** ansys(r) copyright(c) 2009
c *** ansys, inc

c --- define the size of the common block
c     integer   nptr_elm_cadoe
c     parameter (nptr_elm_cadoe=50)
c     integer   ptrWrk_CADOE

      integer
     x nIdxSpace_fInt,    nIdxSpace_fExt,    nIdxSpace_MatRec,
     x nIdxSpace_TmpWrk,
     x nWrkSpace_fInt,    nWrkSpace_fExt,    nWrkSpace_MatRec,
     x nWrkSpace_MatTmp,  nWrkSpace_ElmData, nWrkSpace_NodData,
     x nWrkSpace_ElmElPp, nWrkSpace_TmpWrk,  
     x nWrkSpace_cpeMatR, nWrkSpace_cpeKinR,
     x nParSpace_CADOE,   nElUSpace_CADOE,   nPrsSpace_CADOE,
     x nDamSpace_CADOE,   nSprSpace_CADOE,   nXYZSpace_CADOE,
     x nThkSpace_CADOE,   nMatSpace_CADOE,   nRvrSpace_CADOE,
     x nTemSpace_CADOE,   nPresSpace_CADOE,  nConvCoefSpace_CADOE,
     x nConvTempSpace_CADOE, nHfluxSpace_CADOE, nWrkSpace_genData, 
     x nWrkSpace_ElmRec,  nWrkSpace_TmpWsp,
     x nNumMatRecAdd,     mNumMatRecAdd,
     x nWkISpace_MRecHead

      common /elm_cadoe_ptrcm/
     x nIdxSpace_fInt,    nIdxSpace_fExt,    nIdxSpace_MatRec,
     x nIdxSpace_TmpWrk,
     x nWrkSpace_fInt,    nWrkSpace_fExt,    nWrkSpace_MatRec,
     x nWrkSpace_MatTmp,  nWrkSpace_ElmData, nWrkSpace_NodData,
     x nWrkSpace_ElmElPp, nWrkSpace_TmpWrk,
     x nParSpace_CADOE,   nElUSpace_CADOE,   nPrsSpace_CADOE,
     x nDamSpace_CADOE,   nSprSpace_CADOE,   nXYZSpace_CADOE,
     x nThkSpace_CADOE,   nMatSpace_CADOE,   nRvrSpace_CADOE,
     x nTemSpace_CADOE,   nPresSpace_CADOE,  nConvCoefSpace_CADOE,
     x nConvTempSpace_CADOE, nHfluxSpace_CADOE, nWrkSpace_genData, 
     x nWrkSpace_ElmRec, nWrkSpace_TmpWsp,
     x nNumMatRecAdd,     mNumMatRecAdd,
     x nWkISpace_MRecHead,
     x nWrkSpace_cpeMatR, nWrkSpace_cpeKinR

c --- indexes:
      integer
     x pIdxSpace_fInt,     pIdxSpace_fExt,   
     x pIdxSpace_MatRec,   pIdxSpace_MatReci,
     x pIdxSpace_ElmRec,   pIdxSpace_TmpWrk, pIdxSpace_ElmData,
     x pIdxSpace_NodData,  pIdxSpace_genData,
     x pWrkSpace_fInt,     pWrkSpace_fExt,   
     x pWkISpace_MatRec,   pWkISpace_MatRec0,  pWkISpace_MatReci,
     x pWrkSpace_MatRec,   pWrkSpace_MatRec0,  pWrkSpace_MatReci,
     x pWrkSpace_MatTmp, pWrkSpace_ElmData,
     x pWrkSpace_NodData,  pWrkSpace_ElmRec, pWrkSpace_ElmElPp,
     x pWrkSpace_TmpWrk,   pWrkSpace_Last,
     x pLstSpace_CADOE,    pParSpace_CADOE,  pElUSpace_CADOE,
     x pPrsSpace_CADOE,    pDamSpace_CADOE,  pSprSpace_CADOE,
     x pXYZSpace_CADOE,    pThkSpace_CADOE,  pMatSpace_CADOE,
     x pRvrSpace_CADOE,    pTemSpace_CADOE,  pPresSpace_CADOE,
     x pConvCoefSpace_CADOE, pConvTempSpace_CADOE, pHfluxSpace_CADOE, 
     x pWrkSpace_genData,  pWrkSpace_TmpWsp,
     x pWkISpace_MRecHead


      common / elm_cadoe_ptrcmx /
     x pIdxSpace_fInt,     pIdxSpace_fExt,   
     x pIdxSpace_MatRec,   pIdxSpace_MatReci,
     x pIdxSpace_ElmRec,   pIdxSpace_TmpWrk, pIdxSpace_ElmData,
     x pIdxSpace_NodData,  pIdxSpace_genData,
     x pWrkSpace_fInt,     pWrkSpace_fExt,   
     x pWkISpace_MatRec,   pWkISpace_MatRec0,  pWkISpace_MatReci,
     x pWrkSpace_MatRec,   pWrkSpace_MatRec0,  pWrkSpace_MatReci,
     x pWrkSpace_MatTmp,   pWrkSpace_ElmData,
     x pWrkSpace_NodData,  pWrkSpace_ElmRec, pWrkSpace_ElmElPp,
     x pWrkSpace_TmpWrk,   pWrkSpace_Last,
     x pLstSpace_CADOE,    pParSpace_CADOE,  pElUSpace_CADOE,
     x pPrsSpace_CADOE,    pDamSpace_CADOE,  pSprSpace_CADOE,
     x pXYZSpace_CADOE,    pThkSpace_CADOE,  pMatSpace_CADOE,
     x pRvrSpace_CADOE,    pTemSpace_CADOE,  pPresSpace_CADOE,
     x pConvCoefSpace_CADOE,pConvTempSpace_CADOE,pHfluxSpace_CADOE, 
     x pWrkSpace_genData,  pWrkSpace_TmpWsp,
     x pWkISpace_MRecHead

c *** pointer
      PTRFTN PtrElmatL
      integer maxPtrElmat
      parameter (maxPtrElmat = 5)
      pointer (piEsavIdxElmatL,EsavIdxElmatL)
      integer EsavIdxElmatL(*)
      equivalence
     x     (piEsavIdxElmatL,     PtrElmatL(1))
      common / elm_cadoe_pointer/PtrElmatL(maxPtrElmat)

c     data
c           nIdxSpace_fInt   /1/,
c    x      nIdxSpace_fExt   /1/,
c    x      nWrkSpace_fInt   /120/,
c    x      nWrkSpace_fExt   /120/,
c    x      nParSpace_CADOE  /30/,
c    x      nElUspace_CADOE  /122/,
c    x      nPrsSpace_CADOE  /30/,
c    x      nThkSpace_CADOE  /14/,
c    x      nDamSpace_CADOE  /5/,
c    x      nSprSpace_CADOE  /11/,
c    x      nXYZSpace_CADOE  /62/,
c    x      nMatSpace_CADOE  /41/


c ***
c     pIdxSpace_fInt   - pointer to internal force
c     pIdxSpace_fExt   - pointer to external force
c     pWrkSpace_MatRec - pointer to material work space
c     pWrkSpace_ElmRec - pointer to element  work space
c     pWrkSpace_TmpWrk - pointer to temporary wrok space used for mix up data only
c     pWrkSpace_TmpWsp - pointer to temporary wrok space used for material buffer
c     pWkISpace_MRecHead - pointer to material work space head

c     pParSpace_CADOE  - pointer to parameter work space
c     nParSpace_CADOE  - number of parameters
c     pElUSpace_CADOE  - pointer to element displacement vector
c     nElUSpace_CADOE  - number of element displacement vector
c     pPrsSpace_CADOE  - pointer to pressure load work space
c     nPrsSpace_CADOE  - number of pressure load
c                      - nd  for number of sets of pressure load
c                            0 no pressure load variation
c                      - idx for pressure load variation of 1st set; 1 yes, 0 no
c                      - c0  for pressure load variation of 1st set
c                      - c1  for pressure load variation of 1st set
c                         ....
c     pDamSpace_CADOE  - pointer to damping co. work space
c     nDamSpace_CADOE  - number of damping co.
c                      - nd  for number of sets of damping coef.
c                            0 no damping coef. variation
c                      - idx for damping coef. variation of 1st set; 1 yes, 0 no
c                      - c0  for damping coef. variation of 1st set
c                      - c1  for damping coef. variation of 1st set
c                         ....
c     pSprSpace_CADOE  - pointer to spring stiffness work space
c     nSprSpace_CADOE  - number of spring stiffness variation
c                  - nd  for number of sets of spring stiffness (max. 3 sets)
c                        0 no spring stiffness variation
c                  - idx for Spring stiffness variation of 1st set; 1 yes, 0 no
c                  - c0  for Spring stiffness variation of 1st set
c                  - c1  for Spring stiffness variation of 1st set
c                         ....
c     pMatSpace_CADOE  - pointer to material work space object
c     nMatSpace_CADOE  - size of material work space
c                        currently is 202 (as of 1 + 67*3 + 1(?????))
c                 - isoFlag; 0 - no MP variation, 1 - iso, 2 - ortho, 3 - aniso
c                 - idx for EX changes; 1 yes, 0 no
c                 - c0  for EX variation
c                 - c1  for EX variation
c                 - idx for EY changes; 1 yes, 0 no
c                 - c0  for EY variation
c                 - c1  for EY variation
c                         ....
c                         properties order
c                         EX,EY,EZ,GXY,GYZ,GXZ,NUXY,NUYZ,NUXZ,ALPX,ALPY,ALPZ,DENS
c                         subsequent properties sequence is identical to propev
c
c     pThkSpace_CADOE  - pointer to thickness work space object
c     nThkSpace_CADOE  - size of thickness work space
c                        currently is 13
c                         - nd  for number of nodes to be changed
c                               0 no thickness variation
c                         - idx for THICK variation of 1st node; 1 yes, 0 no
c                         - c0  for THICK variation of 1st node
c                         - c1  for THICK variation of 1st node
c                         - idx for THICK variation of 2nd node; 1 yes, 0 no
c                         - c0  for THICK variation of 2nd node
c                         - c1  for THICK variation of 2nd node

c     pXYZSpace_CADOE  - pointer to coordinate work space object
c     nXYZSpace_CADOE  - size of coordinate work space
c                        currently is 61 (as of 1 + 20*3)
c                         - nd  for number of nodes to be changed
c                               0  no coordinates variation
c                               4  for 181, 182
c                               8  for 183
c                               8  for 185
c                               20 for 186
c                               10 for 187
c                               2  for 180, 188
c                               3  for 189
c                         - x   for x coordinate variation of 1st node
c                         - y   for y coordinate variation of 1st node
c                         - z   for z coordinate variation of 1st node
c                         - x   for x coordinate variation of 2nd node
c                         - y   for y coordinate variation of 2nd node
c                         - z   for z coordinate variation of 2nd node
c                         ....
c     pDisSpace_CADOE  - pointer to dispalcement vector work space object
c     nDisSpace_CADOE  - size of dispalcement vector work space
c     pRvrSpace_CADOE  - pointer to real constant object
c     nRvrSpace_CADOE  - size of real constant object for CADOE
c     pIdxSpace_TmpWrk - pointer to temporary integer working array

c     pTemSpace_CADOE  - pointer to nodal temperature work space object
c     nTemSpace_CADOE  - size of temperature work space
c                         - nd  for number of nodes to be changed
c                               0 no thickness variation
c                         - idx for TEMP variation of 1st node; 1 yes, 0 no
c                         - c0  for TEMP variation of 1st node
c                         - c1  for TEMP variation of 1st node
c                         - idx for TEMP variation of 2nd node; 1 yes, 0 no
c                         - c0  for TEMP variation of 2nd node
c                         - c1  for TEMP variation of 2nd node

c     pPresSpace_CADOE  - pointer to element pressure work space object
c     nPresSpace_CADOE  - size of element pressure work space
c                         - nd  for number of nodes to be changed
c                               0 no pressure variation
c                         - idx for PRES variation of 1st node; 1 yes, 0 no
c                         - c0  for PRES variation of 1st node
c                         - c1  for PRES variation of 1st node
c                         - idx for PRES variation of 2nd node; 1 yes, 0 no
c                         - c0  for PRES variation of 2nd node
c                         - c1  for PRES variation of 2nd node

c     pConvSpace_CADOE  - pointer to element convection work space object
c     nConvSpace_CADOE  - size of element convection work space
c                         - nd  for number of nodes to be changed
c                               0 no convection variation
c                         - idx for CONV variation of 1st node; 1 yes, 0 no
c                         - c0  for CONV variation of 1st node
c                         - c1  for CONV variation of 1st node
c                         - idx for CONV variation of 2nd node; 1 yes, 0 no
c                         - c0  for CONV variation of 2nd node
c                         - c1  for CONV variation of 2nd node

c     pHfluxSpace_CADOE  - pointer to element heat flux work space object
c     nHfluxSpace_CADOE  - size of element heat flux work space
c                         - nd  for number of nodes to be changed
c                               0 no heat flux variation
c                         - idx for HFLUX variation of 1st node; 1 yes, 0 no
c                         - c0  for HFLUX variation of 1st node
c                         - c1  for HFLUX variation of 1st node
c                         - idx for HFLUX variation of 2nd node; 1 yes, 0 no
c                         - c0  for HFLUX variation of 2nd node
c                         - c1  for HFLUX variation of 2nd node
