*comdeck,DofObj                                                jas
c   **********  Commmon for DofObj.F  **********
c
c *** mpg dofobj DOF Data< DofObj gdisbc gforbc dnodgt mainop esolgt verlop
c
      integer  DOFMAXIMUM, DOFMAXETYPE,DOFBITLENG
      parameter  (DOFMAXIMUM=128, DOFMAXETYPE=320,
     x            DOFBITLENG=DOFMAXIMUM/32)

      integer  niDofObjCom,ncDofObjCom
      parameter  (niDofObjCom=DOFBITLENG+DOFMAXETYPE/32+32+DOFMAXIMUM+4,
     x            ncDofObjCom=DOFMAXIMUM+DOFMAXIMUM)

      integer  DofGlobalBits(DOFBITLENG),
     x         DofElTypes(DOFMAXETYPE/32), DofGlobal(32),
     x         DofLocal(DOFMAXIMUM),nDofGlobal,
     x         DofFlowBits, kGlobalLabels, nDofMaxDefined,
     x         DofSpareVals(8)
      common /DofObjCom/  DofGlobalBits, DofElTypes, DofGlobal,
     x                    DofLocal, nDofGlobal,
     x                    DofFlowBits, kGlobalLabels, nDofMaxDefined,
     x                    DofSpareVals

      character*4  DofDispLabels(DOFMAXIMUM), DofForceLabels(DOFMAXIMUM)
      common /DofObjC/ DofDispLabels, DofForceLabels

co  DofGlobalBits(4)  - Bit set for each global dof being used
co  DofElTypes(10)    - Bit set for each element type defined (320 max)
co  DofGlobal(32)     - The current global dof set (local to global)
co  DofLocal(128)     - The current local dof set (global to local)
co  nDofGlobal        - The number of global (also local) dofs
co  DofFlowBits       - Bit set for extra flow dofs
co  kGlobalLabels     - 1, return master labels   0, return modified labels
co  nDofMaxDefined    - A number GE the maximum Global DOF number defined

co  DofDispLabels(128) - Current disp label set (may be modified)
co  DofForceLabels(128)- Current force label set (may be modified)


c          **********  member functions  **********
c  call DofInit (key)                                 - Initialize Dof Object
c                                                        0, all   1, elements
c  call DofGlobalLabels (iGlobalDof,DispLab,ForceLab) - Get global labels
c  call DofSetLabels (iGlobalDof,DispLab,ForceLab)    - Change global labels
c  call DofFlowLabels (iGlobalDof,FlowLab)            - Get flow labels
c  call DofAddEtype (ielc(1:IELCSZ))                  - Add element type
c  call DofAddUser (UserDof(1:4))                     - Add User Dof (global)
c  iFld = DofGlobalField (iGlobalDof)                 - Get field from 6 choices
c  iFld = DofConvField (iGlobalDof)                   - Get field from 12 choices
c  logical = DofGlobalActive(iGlobalDof)              - Is DOF active?
c  call DofGlobalRemove (iGlobalDof)                  - Delete a global dof
c  call DofSetLocal (numdof,curdof(1),actdof,         - Create local dof set
c        dislab(1),forlab(1),labdof(1),dofgrp(1))
c  call DofSetGlobal (numdof,iGlobalDof(1))           - Get global dof set
c  call DofSetFlow (nfldor,fledof(1),acfdof,labflo(1))- Create flow dof set
c  eldof = DofCalcElDofs (ielc(1))  (slow)            - Calculate local DOFS
c  eldof = DofGetElDofs (ielc(1))  (fast)             - Get element local DOFS
c  iGlobal = DofGetGlobal(iLocal)                     - given local, get global
c  iGlobal = DofFindDLab(lab4)                        - find global dof for lab
c  iGlobal = dofFindFlab(lab4)                        - find global dof for lab
c  call DofGetGlBits (bits(1:DOFBITLENG)              - get global bit vector
c  nLab= DofGlBitDLabs (UserDof(1:4),labs(1))         - get D labels for gl bits
c  nLab= DofGlBitFLabs (UserDof(1:4),labs(1))         - get F labels for gl bits
c         *****  service routines  *****
c  call DofElPutNForce (nnode,ielc(1),elvect,dvect)   - Total from elem values
c  nval = DofElGetFlab (iDofBeg,iDofEnd,ielc(1),prlabl)- Get el force pr labels
c  call DofElGetForce (iDofBeg,iDofEnd,ielc(1),dvect,elvect)
c  local = DofLocalDof (iGlobalDof)                    - local dof from global
c  elpos = DofElDofLoc (iDofLoc,ielc(1))               - Element position
c  call DofElGetNForce (nnode,ielc(1),dvect,elvect)    - elem from total values
c  log = DofElLocalExist(iDof,ielc(1))                 - is local dof on elem?
c  iVal = DofInquire(key)  key=1,nDofGlobal   2, DofFlowBits   3,kGlobalLabels
c                              4,nDofMaxDefined
