*comdeck,compcm                                                         jas
c 
c *** Copyright ANSYS.  All Rights Reserved.
c *** ansys, inc.
c
c *** mpg compcm < CompTypElm CompTypNE CompTypNod ComponentUse
c     cmpcmd cmpadd cmpdef cmpasm cmpdef2 cmplst cmpupd cmpsel cmpiqr
c     rom_DefineCapacity rom_Parameters rom_RunSamples: component data
c
c.... integer   lmtcmp, NICOMPCM, nselbts
c.... parameter (lmtcmp = 5000)
c.... parameter (nselbts = lmtcmp/32 + 1)
c.... parameter (NICOMPCM = 3*lmtcmp + nselbts + 11)
c.... character*(PARMSIZE)   labcmp(lmtcmp)
c.... integer  
c....x  loccmp(lmtcmp), typcmp(lmtcmp), mxcmp, key_cdread, cmpisp(6),
c....x  cmp_cursel(lmtcmp), cmp_slctd(nselbts),
c....x  cmp_pltset, cmp_slonly, cmp_numsel
c.... common / cmpmch / labcmp
c.... common / cmpmdp /
c....x  loccmp, typcmp, mxcmp, key_cdread, cmpisp,
c....x  cmp_cursel, cmp_slctd,
c....x  cmp_pltset, cmp_slonly, cmp_numsel
c
      integer  
     x  lmtcmp, nicompcm, nselbts,
     x  mxcmp, key_cdread, cmpisp(6),
     x  cmp_pltset, cmp_slonly, cmp_numsel

      integer,pointer::loccmp(:)
      integer,pointer::typcmp(:)
      integer,pointer::attcmp(:)
      integer,pointer::cmp_cursel(:)
      integer,pointer::cmp_slctd(:)
      character*(PARMSIZE),pointer::labcmp(:)

      common / cmpin1 /
     x  lmtcmp, nicompcm, nselbts,
     x  mxcmp, key_cdread, cmpisp,
     x  cmp_pltset, cmp_slonly, cmp_numsel

      common / cmpin2 / loccmp, typcmp, attcmp, cmp_cursel, cmp_slctd

      common / cmpchr / labcmp

co lmtcmp          - the maximum number of components allowed (initially 5000
co labcmp(lmtcmp)  - the eight character label for each component
co loccmp(lmtcmp)  - the location in data base of this component
co typcmp(lmtcmp)  - type of component  (see below)
co attcmp(lmtcmp)  - component attribute definition for ANSYS applet
co mxcmp           - the current highest defined component
co cmpisp          - integer spare location
co key_cdread      - 0=normal,  1=component from cdread/cdwrite file
co cmp_cursel(*)   - Cmplot selected component array for d3cmnm legend plot
co cmp_slctd(*)    - Bit Array of componenet selection flags
co cmp_pltset      - Current set of 11 components plotted
co cmp_slonly      - Cmplot flag 0 - plot all components 1 - plot only selected components
co cmp_numsel      - Number of selected components for cmplot

c    **********  component types  **********
c    1 - nodes             6 - keypoints        11 - components l1
c    2 - elements          7 - lines            12 - components l2
c    3 -                   8 - areas            13 - components l3
c    4 -                   9 - volumes          14 - components l4
c    5 -                  10 -                  15 - components l5
c
c     **********  component data base structure  **********
c    name      8 characters    2 words    integer form
c    type      see above
c    spare(5)
c    packed list of entities in this component
c                     or
c    list of 8 character component names (integer form)
c
c          ***********  component commands  **********
c
c     cm,name8,type      (all currently selected of this type)
c     cmdele,name
c     cmlist,name
c
c     cmgrp,name8,comp1,comp2,...,comp8
c        if name8 is a new name, create a new assembly
c        if name8 is an existing name, replace existing assembly
c
c     cmedit,name8,oper,comp1,...,comp7   (oper = add,dele)
c
c     select commands
c        cmsel,comp8
c        cmasel,comp8
c        cmusel,comp8
c
c     subroutines
c        call cmpini (from "begin" to initialize common)
c        comp = cmpadd(label8)        Add this label8 as a component 
c        call cmpdef (label8,ntyp,color) 
c        call cmpdel (comp) 
c        call cmpgrp (label8,n,names)
c        comp = cmploc(label8)
c        call cmpsel (label8,select)
c        call cmplst (name8,cwork)
c        n = cmpasm(label8,names)

c        **********  member functions  **********
c        ival = cmpiqr(comp,key)    get information
c                                   0, get ptr
c                                   1, get component type
c                                   2, get length

c        call   cmpnxt (entity,ptr,length,ipos)  Get next component entity
