*comdeck,soptcm                                                        dc

c         *** Copyright ANSYS.  All Rights Reserved.
c         *** ansys, inc.

c          *****  DEFINE SYMBOLIC PARAMETERS  *****
c --- values for analysis type (ANTYPE command)
      integer     AN_STATIC      , AN_BUCKLE     , AN_MODAL      ,
     x            AN_HARMIC      , AN_TRANS      , AN_XXXXX1     ,
     x            AN_XXXXX2      , AN_SUBSTR     , AN_SPECTR
      parameter  (AN_STATIC  =  0, AN_BUCKLE =  1, AN_MODAL  =  2,
     x            AN_HARMIC  =  3, AN_TRANS  =  4, AN_XXXXX1 =  5,
     x            AN_XXXXX2  =  6, AN_SUBSTR =  7, AN_SPECTR =  8)

c --- values for SolveMethod
      integer     SV_FRONT       , SV_JCG        , SV_JCGOUT     ,
     x            SV_PCG         , SV_PCGOUT     , SV_ICCG       ,
     x            SV_ICCGOUT     , SV_JCGNEW     , SV_SPARSE     ,
     x            SV_USER        , SV_AMG        , SV_DOMAIN     ,
     x            SV_QMR
      parameter  (SV_FRONT   =  0, SV_JCG    =  1, SV_JCGOUT =  2,
     x            SV_PCG     =  3, SV_PCGOUT =  4, SV_ICCG   =  5,
     x            SV_ICCGOUT =  6, SV_JCGNEW =  7, SV_SPARSE =  8,
     x            SV_USER    =  9, SV_AMG    = 10, SV_DOMAIN = 11,
     x            SV_QMR     = 15)

c --- values for SparseSolveMethod
      integer     BCS_SPARSE  , DSP_SPARSE  , ISP_SPARSE
      parameter  (BCS_SPARSE=1, DSP_SPARSE=2, ISP_SPARSE=3)

c --- values for SolveCode
      integer  SV_ANSYS, SV_CASI, SV_ITER
      parameter  (SV_ANSYS=0, SV_CASI=1, SV_ITER=2)

c --- values for extopt
      integer   EXT_REDUCE  ,EXT_SSI      ,EXT_LANSYMundoc  ,
     x          EXT_UNSYM   ,EXT_DAMPED   ,EXT_BLOCundoc    ,
     x          EXT_LANB    ,EXT_XXXXX1   ,EXT_SNODE        ,
     x          EXT_LANPCG  ,EXT_FEAST
      parameter(EXT_REDUCE=0,EXT_SSI    =1,EXT_LANSYMundoc=2,
     x          EXT_UNSYM =3,EXT_DAMPED =4,EXT_BLOCundoc  =5,
     x          EXT_LANB  =6,EXT_XXXXX1 =7,EXT_SNODE      =8,
     x          EXT_LANPCG=9,EXT_FEAST =10)

c --- values for constraint
      integer   CST_STRLIMIT,CST_SUPPORT
      parameter(CST_STRLIMIT=1000000,CST_SUPPORT=1000001)

c --- values for linear perturbation stage
      integer    LP_NOT_INIT,
     x           LP_RESTARTED,
     x           LP_KT_FORMED,
     x           LP_SOLVED,
     x           LP_RESULTS_DONE,
     x           LP_LOADSTEP_DONE
      parameter (LP_NOT_INIT=0,
     x           LP_RESTARTED=50,
     x           LP_KT_FORMED=100,
     x           LP_SOLVED=200,
     x           LP_RESULTS_DONE=500,
     x           LP_LOADSTEP_DONE=999)


c --- solution options and keys
c     --- define the size of the common block
      integer ndsop,nisop
      parameter (ndsop=100,nisop=400)
      integer
     x kan,nlgeom,restrt,extopt,trnopt,hrmopt,nummod,frqspc,dmpkey,
     x totmdf,nrtmdf,prmode,strout,modexp,phsexp,cpxout,sematx,seprnt,
     x seexp,nuvect,locut,locui,locun,locvel,locacc,locucx,locupr,
     x ElemIntKey,nrkey,kplast,kcreep,kswell,knlele,keydim,keyuns,keyse,
     x srpass,knlmag,SolveMethod,jcgtrm,jcgeqn,nrigid,modcmb,sptype,
     x nspfrq,thsubs,nsubsz,kanse,trnstr,biotst,emunit,emsym,subpad,
     x InputUnits,subshf,subsrm,jcgitr,printn,postn,modnrm,ktargt,
     x spanal,spnmod,spstrs,magopt,AutoSolvMeth,subblk,solfil,
     x antype,ancont,hrpmod,directAssembly,subsiz,anset,AutoDirect,
     x sesst,CreateEmat,confini,SolveCode,SolveMulti,SolveIllcond,
     x SolveTrans,SolveGuess,knnewt,pmeth,knone,
     x comode,minmod,consmal,SolveSymm,cn129,NoEsavFile,lsloop,nelpcg,
     x selay,magoptlast,nrmsav,init_seq,MDI_nModes,rfsumkey,
     x magbio,magnsv,magtbc,modcyc,seslv,SolveCEkey,inclpls,
     x nrunsym,reord_opt,mem_conf,io_opt,dump_opt,OutputModalCoords,
     x currDomain,maxCurrDomain,LevDifficult,Nprocess,Nmaxiter,
     x MPIoption,StressMSUPkey,NoSolveKey,autodom,SolveCodeInput,
     x fem_solid_bc,UPformInput,UPformUsed,slvkeysav,subreslv,pcgIter,
     x dirasmsav,BCSscl,autoSubstr,cadoe_antype,pcgMaxIter,
     x cadoe_pass_input,imgprs,CERFadjust,locpen,nlmatkey,wrFull,
     x cadoe_intF_cal,noffsetrst,eoffsetrst,expopt,DomainPcg,
     x dispcontrol,tintopt,SXcontrol,magfrc,hhtok,hrmsxtype,qrdvec,
     x DScompare,PScontrol,requestMsave,nSuperDomain,qrdmtx,qrdsym,
     x qrdrig,qrdwrn,pcgopts,RotDofKey,DScontact,seSparse,optDecomp,
     x scaleMass,cadoe_update,elmatrzk,etkyop5uns,nsupport,decompOpts,
     x magicd,modlstp,emfopt,kstaticMod,hrOcean,SparseSolveMethod,
     x nSpectCombined,matrixCheck,distAssmKey,oocAssmKey,LeftRightModes,
     x lanbOpts,snodeComputeKey,DecompCompKey,matStrctChg,
     x cadoe_frqswp_vt,kpfact,svinterp,ispareInp,qrdskew,
     x PerturbKey,PertMatType,qrdreuse,modreuse,hrmfull,
     x partialAssemb,nbAssemb,PertContType,PertStiffType,CreateEsav,
     x partAssembRun,PerturbStage,PertLoadCtrl,kocean,nlgeEMA,sstEMAT,
     x ElemSymmetrized,qrdFullModalStiff,accOn,accSP,accDbg,
     x CombineFiles,hrOcPts,harfrqCall,PerturbInModeFile,
     x cadoe_frqswp_post,freq_computed_vt,seoc,buckRangeKey,
     x CombineForceType,rstsuppress,QRdampKey,exactB,cadoe_cyc_err,
     x mxpandTabKey,qrdCMCCout,definesolc,elemTableFreq,AcousCPkey,
     x newCeLogic,preciseMassKey,kcpxse,ModselMethod,qrdHyst,
     x PertLoadOpt,DScontactReq,DScontPairReq,RestartInModeFile,
     x ASIMapKey,senres,Ms1DOF,Ms2DOF,NoteDF,MsgGCdof,SolveTolerReq,
     x IntNodeWarn,kunsymCpx,qrdExtopt,kmodalCpx,PertSpinOff,
     x PiezoElKey,numWarnElems,ispr_soptcm

      double precision
     x toffst,SolveToler,seidir,sgnfmd,muzero,epzero,timedr,frqrat,
     x siconv,inconv,SolveLimit,outconv,sgnfmx,SubConvTol,
     x TimChkDeltim,comb_label,nmode_redu,mem_set,TolVoluComp,
     x ZeroThreshold,cutbackfactor,openupfactor,kdiagmin,
     x hyperVolLim,matNrTolpl,matNrTolcr,matNrTolhy,TolJointLagCE,
     x negFreqLim,ZeroThresholdCntl,snodeRangeFact,snodeRobustLev,
     x vtomeg2,qrdTol,accMinSz,accMaxSz,accMinOps,asiScale,hrPhase,
     x ModselDir,tem_toler, dsopsp

      common /soptcm/
c     --- dp vars
     x toffst,SolveToler,seidir(3),sgnfmd,muzero,epzero,timedr,frqrat,
     x siconv(8),inconv(8),SolveLimit,outconv(8),sgnfmx,SubConvTol,
     x TimChkDeltim,comb_label,nmode_redu,mem_set,TolVoluComp,
     x ZeroThreshold,cutbackfactor,openupfactor,kdiagmin,
     x hyperVolLim,matNrTolpl,matNrTolcr,matNrTolhy,TolJointLagCE,
     x negFreqLim,ZeroThresholdCntl,snodeRangeFact,snodeRobustLev,
     x vtomeg2,qrdTol(2),accMinSz,accMaxSz,accMinOps,asiScale,hrPhase,
     x ModselDir(6),tem_toler,dsopsp(30),
c     --- integer vars
     x kan,nlgeom,restrt,extopt,trnopt,hrmopt,nummod,frqspc,dmpkey,
     x totmdf,nrtmdf,prmode,strout,modexp,phsexp,cpxout,sematx,seprnt,
     x seexp,
     x nuvect,locut,locui,locun,locvel,locacc,locucx,locupr,
     x ElemIntKey,nrkey,kplast,kcreep,kswell,knlele,keydim,keyuns,keyse,
     x srpass,knlmag,SolveMethod,jcgtrm,jcgeqn,nrigid,modcmb,sptype,
     x nspfrq,thsubs,nsubsz,kanse,trnstr,biotst,emunit,emsym,subpad,
     x InputUnits,subshf,subsrm,jcgitr,printn,postn,modnrm,ktargt,
     x spanal,spnmod,spstrs,magopt,AutoSolvMeth,subblk,solfil,
     x antype,ancont,hrpmod,directAssembly,subsiz,anset,AutoDirect,
     x sesst,CreateEmat,confini,SolveCode,SolveMulti,SolveIllcond,
     x SolveTrans,SolveGuess,knnewt,pmeth,knone,
     x comode,minmod,consmal,SolveSymm,cn129,NoEsavFile,lsloop,nelpcg,
     x selay,magoptlast,nrmsav,init_seq,MDI_nModes,rfsumkey,
     x magbio,magnsv,magtbc,modcyc,seslv,SolveCEkey,inclpls,
     x nrunsym,reord_opt,mem_conf,io_opt,dump_opt,OutputModalCoords,
     x currDomain,maxCurrDomain,LevDifficult,Nprocess,Nmaxiter,
     x MPIoption,StressMSUPkey,NoSolveKey,autodom,SolveCodeInput,
     x fem_solid_bc,UPformInput,UPformUsed,slvkeysav,subreslv,pcgIter,
     x dirasmsav,BCSscl,autoSubstr,cadoe_antype,pcgMaxIter,
     x cadoe_pass_input,imgprs,CERFadjust,locpen,nlmatkey,wrFull,
     x cadoe_intF_cal,noffsetrst,eoffsetrst,expopt,DomainPcg,
     x dispcontrol,tintopt,SXcontrol,magfrc,hhtok,hrmsxtype,qrdvec,
     x DScompare,PScontrol,requestMsave,nSuperDomain,qrdmtx,qrdsym,
     x qrdrig,qrdwrn,pcgopts(8),RotDofKey,DScontact,seSparse,optDecomp,
     x scaleMass,cadoe_update,elmatrzk,etkyop5uns,nsupport,
     x decompOpts(6),magicd,modlstp,emfopt,kstaticMod,hrOcean,
     x SparseSolveMethod,nSpectCombined,matrixCheck,distAssmKey,
     x oocAssmKey,LeftRightModes,lanbOpts(8),snodeComputeKey,
     x DecompCompKey,matStrctChg,cadoe_frqswp_vt,kpfact,svinterp,
     x ispareInp,qrdskew,PerturbKey,PertMatType,qrdreuse,
     x modreuse,hrmfull,partialAssemb,nbAssemb,PertContType,
     x PertStiffType,CreateEsav,partAssembRun,PerturbStage,
     x PertLoadCtrl,kocean,nlgeEMA,sstEMAT,ElemSymmetrized,
     x qrdFullModalStiff,accOn,accSP,accDbg,CombineFiles,hrOcPts,
     x harfrqCall,PerturbInModeFile,cadoe_frqswp_post,
     x freq_computed_vt,seoc,buckRangeKey,CombineForceType,
     x rstsuppress,QRdampKey,exactB,cadoe_cyc_err,mxpandTabKey,
     x qrdCMCCout,definesolc,elemTableFreq,AcousCPkey,newCeLogic,
     x preciseMassKey,kcpxse,ModselMethod,qrdHyst,PertLoadOpt,
     x DScontactReq,DScontPairReq,RestartInModeFile,ASIMapKey,senres,
     x Ms1DOF,Ms2DOF,NoteDF,MsgGCdof,SolveTolerReq,IntNodeWarn,
     x kunsymCpx,qrdExtopt,kmodalCpx,PertSpinOff,PiezoElKey,
     x numWarnElems,ispr_soptcm(130)

c --- pointers:
      PTRFTN  PtrSoptcmL(18)
      pointer (pdUDispL,   UDisp)
      pointer (pdUImagL,   UImag)
      pointer (pdUInciL,   UInci)
      pointer (pdUIncnL,   UIncn)
      pointer (pdUPrevL,   UPrev)
      pointer (pdUVeloL,   UVelo)
      pointer (pdUAcclL,   UAccl)
      pointer (pdURotEPL,  URotEP)
      pointer (pdUPerturbL,UPerturb)
      double precision  UDisp(*), UImag(*), UInci(*), UIncn(*),
     x                  UPrev(*), UVelo(*), UAccl(*), URotEP(3,*),
     x                  UPerturb(*)
      common /soptcmL/ PtrSoptcmL
      equivalence
     x  (pdUDispL,    PtrSoptcmL(1)),
     x  (pdUImagL,    PtrSoptcmL(2)),
     x  (pdUInciL,    PtrSoptcmL(3)),
     x  (pdUIncnL,    PtrSoptcmL(4)),
     x  (pdUPrevL,    PtrSoptcmL(5)),
     x  (pdUVeloL,    PtrSoptcmL(6)),
     x  (pdUAcclL,    PtrSoptcmL(7)),
     x  (pdURotEPL,   PtrSoptcmL(8)),
     x  (pdUPerturbL, PtrSoptcmL(9))

c    --- the use of the word "key" below means:
c              0 = condition indicated is not occurring
c              1 = condition indicated is occurring

c === analysis options
co  antype - analysis type [antype cmd]
co  ancont - key indiciating the restart of an analysis [antype cmd]
co  anset  - key indicating that an antype cmd has been issued
co  kan    - analysis type for solution only (derived from antype and options)
co  srpass - key to indicate the stress pass of a reduced analysis [expass cmd]
co  nlgeom - large deformation key [nlgeom cmd]
co  restrt - key indicating a step of an analysis sequence [psolve cmd]
co  pmeth  - key set if p-method solution procedure is activated [/pmeth cmd]
co  extopt - mode extraction method (0,hbi  1,ssi  2,undoc  3,unsymm  4,damped
co           5,undoc  6,block lan  7,unused  8,SNODE  9,pcg lan) [modopt or bucopt cmd]
co  trnopt - transient method (0,full   1,reduced   2,modsup) [trnopt cmd]
co  hrmopt - harmonic method (0,full   1,reduced   2,modsup) [hropt cmd]
co  harfrqCall - 1 frequency range defined by the HARFRQ command
co  nummod - maximum mode to be used for mode super [hropt or trnopt cmd]
co  minmod - minumum mode to be used for mode super [hropt or trnopt cmd]
co  hrmsxtype - (0,viscous  1,hysteretic) [hropt cmd]
co  OutputModalCoords - key to output modal coords to file [hropt or trnopt cmd]
co  frqspc - key for frequency spacing, =1 cluster [hrout cmd]
co  dmpkey - key set to ignore damping in the analysis [trnopt cmd]
co  totmdf - total number of master dof requested [total cmd]
co  nrtmdf - key set if rotational mdof are to be excluded [total cmd]
co  prmode - reduced mode print key [modopt cmd]
co  kunsymCpx - user requested complex mode shape key for UNSYM eigensolver [modopt cmd]
co  kmodalCpx - effective complex modal key
co  qrdvec - complex mode shape key for QRDAMP eigensolver [modopt cmd]
co  QRdampKey - key denoting to perform the QR damped calculations after
co              the extraction of modes
co  qrdExtopt - symmetric mode extraction method for QR damped case
co  LeftRightModes - Eigenmodes asked by user (right left or both) [modopt cmd]
co           0 Only Right Eigenmodes
co           1 Only Left Eigenmodes
co           2 Both Eigenmodes
co  modnrm - 0,mass normalized  1,unit maximum normalized [bucopt cmd]
co  modlstp- 1, multiple load step support
co           2, single load step (set in pr7vop)
co  modreuse - modal analysis resue key (antype command)
co  kstaticMod - 1, calculate static modes
co  hrOcean - 0, no ocean harmonic forces
co          - 1, has ocean harmonic forces and evaluated as a static analysis
co          - 2, has ocean harmonic forces and evaluated as a harmonic analysis
co  hrOcPts- number of points to evaluate transient (hrocean command), defaults to 20
co  hrPhase- phase used by hrocean for wvargu (judged too many levels to be passed thru)
co  nrmsav - saved value of the normalization key "modnrm" [in modstr]
co  nrigid - node at center of rigid body modes (if any) [subopt cmd]
co  strout - key set to output stresses [mxpand, numexp, or expsol cmd]
co  StressMSUPkey - key set to use superposition of mode stresses [mxpand cmd]
co                - -1, no stresses on MODE file (ENF may be there)
co                -  0, no stresses on MODE file and use old way
co                -  1, stresses on MODE file
co  modexp - number of modes to be expanded [mxpand cmd]
co  mxpandTabKey - key if array parameter input for expansion [mxpand,%tab%]
co                 0=no and 1=yes  
co  ModselMethod - method for mode selection (mxpand command)
co  ModselDir    - directions specifications (modseloption command)
co  tem_toler    - temperature tolerance (default to 1 degree)
co  phsexp - key for complex expansion:
co           0,at phsang  1,both real and imag [hrexp cmd]
co           0,real disp  1,imag disp [seexp cmd]
co  cpxout - key for complex format  0,re and im  1,amp and phase [hrout cmd]
co  toffst - offset temperature to absolute zero [toffst cmd]
co  sematx - key to indicate matrices to generate [seopt cmd]
co  seprnt - key to print generated matrices [seopt cmd]
co  sesst  - key to save stress stiffness matrix on .mat for substructure
co           generation [seopt cmd]
co  seslv  - key for not saving the triangularized matrix file during the
co           generation pass of a substrucuring analysis
co  seexp  - superelement to expand [seexp cmd]
co  seexp  - key that warning has been printed for layered shell
co           elements in superelement generation pass (layr8i)
co  subreslv - key to re-solve superelement rather than use back substitution
co  seoc   - Added mass ocean surface treatment (1 - at this point, 2 - msl)
co         -                                    0 - at this point, undocumented)
co                            (See SeOcLvl on the SEOPT command)
co  autoSubstr - key to use automatic substructuring (-1 use fully automatic)
co  nrunsym    - key to use unsymmetric matrices (nropt,unsym)
co  etkeyop5uns - key set element keyopt(5)
co  thsubs - key to flag element type used in the substructuring
co           0 - structural
co           1 - 1st order non-structural
co           2 - 2nd order non-structural
co  nsubsz - size of the reduced matrices
co  kanse  - kan that was used in substructure use run
co  seidir - seismic excitation direction [sed cmd]
co  sgnfmd - tolerance for significant modes [mcomb cmd]
co  hrpmod - key to print mode contributions for harmonic mode sup [hrout cmd]
co  TimChkDeltim - Time interval for TimChk printouts(6 minutes(0.1) default)
co  init_seq   - Key for sequential solver
co               (init_seq=1 UPGEOM: init_seq=2 RIMPORT: init_seq=3 REXPORT)
co  MDI_nModes - Number of modes for MDF flexibility
co  rfsumkey   - if 1, sum K*U -F during element formation
co  modcyc     - flag for cyclic symmetry analysis
co  noffsetrst - offset for nodes written to .rst file
co  eoffsetrst - offset for elements written to .rst file
co  expopt     - 1, if expansion for substructures should transform geom
co  nsupport   - number of support specified
co  rstsuppress- mask for results file items to be suppressed
co  definesolc - key denoting whether solution controld command [SOLC] was used or not
co  PerturbKey - key enabling linear perturbation analysis
co               -1 - not linear perturbation
co                0 - perturbed linear static
co                1 - perturbed linear buckling
co                2 - perturbed linear modal
co                3 - perturbed full harmonic
co                4 - perturbed full transient
co  PertMatType - key to control material properties in linear perturbation
co                0 - default
co                1 - use linear part material properies defined by MP
co                2 - use consistent material tangent
co                3 - use secant in the material curves
co  PertContType - key to control contact behavior for linear perturbation analysis
co                0 - use current contact stiffness and status (same as restart)
co                1 - option use sticking contact stiffness, even it is sliding
co                    no sliding status is allowed to use
co  PertStiffType - key to control stiffness matrix for linear perturbation analysis
co                0 - use currect nonlinear element consistent stiffness matrix
co                1 - use elastic material stiffness even it is plastic already,
co                    (for hyperlasticity, always use current stiffness independent
co                     of PertStiffType key)
co  PerturbStage  - flag the current state of the linear perturbation analysis
co                  LP_NOT_INIT      - linear perturbation analysis has not yet been started
co                  LP_RESTARTED     - linear perturbation analysis restart has been performed
co                  LP_KT_FORMED     - Kt matrix has been reformed for linear perturbation
co                  LP_SOLVED        - linear perturbation equation solution has been computed
co                  LP_RESULTS_DONE  - linear perturbation results have been computed
co                  LP_LOADSTEP_DONE - linear perturbation load step has been completed
co  PertLoadCtrl  - key to control loading behavior for linear perturbation analysis
co                  0 - delete all boundary conditions upon starting linear
co                      perturbation analysis except for inertia loads,
co                      displacement boundary conditions, and temperatures
co                  1 - keep all boundary conditions from previous/restarted analysis
co                  2 - delete all boundary conditions upon starting linear
co                      perturbation analysis except for displacement boundary
co                      conditions and temperatures
co                  3 - delete all boundary conditions upon starting linear
co                      perturbation analysis including all displacement boundary
co                      conditions but not temps
co  PerturbInModeFile - 1 - mode file is from linear perturbation
co  RestartInModeFile - 1 - mode file is from modal restart
co  PertLoadOpt  - key for surf/body keeping in linear perturbation analysis
co                 if PertLoadCtrl=0 or 2
co                 0 - no keeping; 1 - keep acoustic loads
co
co  PertSpinOff    0 - include spin softening in Perturbation analysis (default, is the only documented option
co                 1 - exclude spin softening in Perturbation analysis (undoc'ed option, for GE). 
co  kcpxse - 1 - flag complex results when nested superelements are expanded
co  senres - key to control if are written in .dsub file
co           1 - only displacements, default
co           2 - harmonic analysis: real and then imaginary part of displacements
co           3 - transient analysis: displacements, velocities, accelerations
co  IntNodeWarn  - key to control the number of warning message for BC on quad/cub elts                    

c === solver options
co  SolveMethod - key for solver to use [eqslv cmd]
co                SV_FRONT,  frontal solver    SV_JCG, jcg solver
co                SV_JCGOUT, jcg out-of-core   SV_PCG, pcg solver
co                SV_ICCG,   iccg solver       SV_SPARSE, boeing's sparse
co                SV_JCGNEW, pcg assembly, jcg solution
co  SolveSymm - 0, Default solution  1, Force unsymmetric solution
co  jcgeqn - number of jcg equations
co  jcgtrm - number of coefficients in sparce jcg storage
co  pcgIter - number of iterations in the PCG solver
co  numWarnElems  - number of poorly shaped elements that have surpassed the warning limits
c                   (used by PCG level-of-difficulty heuristic)
co  pcgMaxIter - max number of iterations in the PCG solver per SOLV command
co  AutoSolvMeth - set to 1 if user issues eqslv,AUTO,tol command.
co  SolveToler - tolerance for iterative solution (1.0e-8 default) [eqslv cmd]
co  SolveTolerReq - key marking when solver tolerance was input by user [eqslv cmd]
co  SolveCode  - key for assembly code to use:
co                SV_ANSYS, ANSYS code    SV_CASI, CA&SI code
co  SolveCodeInput  - assembly code input by the user [ASSOPT cmd]
co  SolveIllcond  - 0, Normal    1, Use Illcondition logic
co  SolveGuess    - 0, Zero starting vector   1,
co  SolveMulti - 0, Single Step   1, Multiple Steps
co  SolveTrans - 0, No transient  1, transient (not presently used)
co  SolveLimit - Multiplier on Total Dof for Iteration Limit
co  SolveCEkey - CE processing key (0,direct  1,Lagr. quick,  2,Lagr. accurate)
co  pcgopts    - array of keys to set various PCG options [PCGOPT command]
co  decompOpts - array of keys to set various domain decomposer options [DDOPT command]
co  UPformInput- 1 user requested to use this undoc U/P formulation through
co               symb assembly
co  UPformUsed - 1, U/P is really used at the level of symb assembly
co               0, U/P is not in modeled: not in use although UPformInput=1
co  SparseSolveMethod - Sparse solver method (0-default, 1-Boeing, 2-DSP)
co  matrixCheck - key that controls which matrices to check (MTXCHECK command)
co  distAssmKey - key that controls whether we write a single, global FULL file (-1)
c                 or write multiple distributed local FULL files in D-ANSYS (1)
co  oocAssmKey  - key that controls whether we do out-of-core matrix assembly (1)
c                 or do incore matrix assembly (-1) in symbolic assembly element loop
co  lanbOpts    - array of keys to set various Block Lanczos options [LANBOPT command]
co  snodeRangeFact - SuperNode eigensolver frequency range factor [SNOPT command]
co  snodeRobustLev - SuperNode eigensolver robustness level key [SNOPT command]
co  snodeComputeKey- SuperNode eigensolver eigvalue/vector compute key [SNOPTION command]
co  buckRangeKey   - eigenbuckling range key (0=center method, 1=range method)
co  preciseMassKey - key for precise mass summary (0=none, 1=available)

c === magnetic option variables
co  biotst - 0, biot calculations not done   1,done
co  muzero - free space magnetic permeability [emunits cmd]
co  epzero - free space electric permeability [emunits cmd]
co  emunit - unit system (0,1 mks  2,cgs   3,user [emunits cmd]
co  emsym  - number of symmetry repeats for current sources
co  magopt - magnetic scalar potential option:   [magopt cmd 1st slot]
co           0,reduced  1,general(1)  2,difference  3,general(2)
co           4,incremental analysis from operating point
co  magbio - Biot-Savart option for magopt=4   [magopt cmd 2nd slot]
co  magnsv - no saving option for magopt=4     [magopt cmd 3rd slot]
co  magtbc - BC applies for total for magopt=4 [magopt cmd 4rd slot]
co  magoptlast - previous value of magopt
co  magfrc - magnetic force formulation option
co  magicd - option to not overwrite IC command with D command
co         - undocumented [MAGOPT,IC,ON/OFF]
co  emfopt - electrostatic force smoothing option
co         - undocumented [MAGOPT,EMFO,0/1/2]

c === displacement pointers
co  nuvect - number of displacement vectors saved
co  UDisp  - total displacement location
co  UInci  - displacement increment, over the equilibrium iteration
co  UIncn  - displacement increment, over the substep
co  UVelo  - velocity
co  UAccl  - acceleration
co  UImag  - complex displacement
co  UPrev  - previous displacement
co  URotEP - rotational DOFs Euler parameters
co  UPerturb - copy of the displacement vector resulting from the static analysis

c === element based keys
co  confini - when greater than 0, finite deformation contact exists
co  consmal - when greater than 0, small deforma contact exists
co  cn129  - first node of the last element flagged by sparx3
co  NoEsavFile - 0, write .ESAV file  1, No .ESAV file

c === solution keys
co  ElemIntKey  - key set to use closed form integration or gauss integration
co              - for element matrices formulation.
co  nrkey  - key to indicate a newton-raphson (incremental) procedure
co  kplast - key set if plastic material properties used
co  kcreep - key set if creep material properties used
co  kswell - key set if swelling material properties used
co  knlele - key set if any nonlinear elements used
co  knlmag - key set if any nonlinear magnetic material properties are used
co  knnewt - key set if any nonnewtonian fluid material properties are used
co  kocean - key set if any ocean loading is present

co  nlgeEMA - 0 - nlgeom is OFF the time this Emat file is created
co            1 - nlgeom is ON the time this Emat file is created

co  sstEMAT - 0 - sstif is OFF the time this Emat file is created
co            1 - sstif is ON the time this Emat file is created

co  ElemSymmetrized - 0 symmetrize contact stiffness from globally assembly level (QRdamp only)
co                    1 symmetrize contact stiffness from contact element level (QRdamp only)

co  keydim - dimensionality key:  0,2d  1,axisymm   2,axisymm-harmonic  3,3d
co                    (keydim matches ielc(KDIM), more or less)
co  keyuns - key set if any matrices are unsymmetric
co  keyse  - key set if any superelements are used
co  ktargt - key that indicates the presence of general contact elements
co  lsloop - key for inside line search loop in svkan
co  nelpcg - number of elements for pcg solver
co  solfil - 0,tri  1,full >1,extopt for eigenvalues
co  knone - 1, none has been input for frequency on outres command
co  fastSolution - pcg/jcg fast solution [eqslve,fast]
co  directAssembly - direct assembly key
co  AutoDirect - Set to 1 if user issues DIRECT command.
co  imgprs     - key indicating presence of elements with imaginary pressures
co  locpen     - stack pointer to location of storage used only in cal_pen
co  wrFull     - key for stopping after the FULL file has been written [WRFULL cmd]
co  ZeroThreshold - Threshold for zero terms in writeFull
co  PScontrol  - bitwise flag for toggling (shared memory) parallel sections of
c                code ON/OFF [PSCONTROL command]
co  requestMsave - key used to determine if the MSAVE command has been issued
co  slvkeysav    - applied solv method: *get,par,acti,,solu,eqsa
co  dirasmsav    - direct Assembly key: *get,par,acti,,solu,dasm
co  kdiagmin     - min diag K of 1st loadstep 1st substep for Emag analysis
co  CERFadjust   - 1, adjust reaction forces due to CE (outelm)
co  matNrTolpl   - material Newton-Raphson tolerance for plasticity
co  matNrTolcr   - material Newton-Raphson tolerance for creep
co  matNrTolhy   - material Newton-Raphson tolerance for hyperelasticity
co  hyperVolLim  - hyper imcompressibility limit (default 1.0d-6)
co  nlmatkey     - 0 active nonlinear material
co                 1 de-active nonlinear material
co  dispcontrol  - 1, use disp control method for Arclen
co                 0, don't use disp control method for Arclen
co  tintopt      - 0, Newmark time integration algorithm, default
co                 1, Generalized HHT integration algorithm
co                 2, Central difference integration algorithm
co  hhtok        - 0, use newmark if it is not ok (when force is not saved)
co                 1, use hht when tintopt=1 and hhtok=1 (when force is saved)
co  RotDofKey    - 1 if rotational DOFs exist and large rot updating to be used
co  scaleMass    - key to scale mass matrix closer to stiffness matrix for modal

c === subspace keys [subopt cmd]
co  SubConvTol - Tolerance for subspace convergence
co  subsrm - sturm check (0,all  1,none   2,all but last)
co  InputUnits - Integer number of input unit set
co  subocr - out-of-core key  (0,in-core  1,out-of-core   2,-huge)
co  subpad - extra modes added for full subspace (0, automatic)
co  subshf - minimum number of iteration before shift (2 to 5)
co  subblk - number of modes per block (0,in-core)
co  subsiz - number of modes in subspace being iterated (0, automatic)
co  jcgitr - number of jacobi iterations in subspace solution(jcgopt=1)
co  inclpls- kill pressure load stiffness(pls), based on SOLC command
co                  -1 = default, 0 = do not include pls, 1 = include pls
co                default: include for 153,154,156,181,182,183,185,186,187,
co                                                          188,189,208,209,281,
co                  do not include for 2,42,45,46,64,65,82,88,89,92,95,191.
co                default is always include if buckling analysis (set in antyp)
co  fem_solid_bc  - 0, neither FEM or SOLID BC yet input
co                  1, only FEM BC input
co                  2, only SOLID BC input
co                  3, both FEM and SOLID BC input
co  cutbackfactor - if > 0.0, use the user-input cutbackfactor instead of 0.5
co  openupfactor  - if > 0.0, use the user-input openupfactor instead of 2

c === QR damp eigensolver keys
co  qrdmtx  - flag if K or M matrix is symmetrized in blk Lan for QR damp
co  qrdskew - flag if K matrix is skew symmetric: 0-no, >=1-yes
co  qrdsym  - symmetrization flag: 1-zero, 2-average, 3-diag, 4-lowest, 5-mix
co  qrdrig  - rigid body mode flag in Lanczos eigensolver :
co            1 - rigid modes 0 - no rigid modes
co  qrdreuse - flag to use/write the modesym file [QRDOPT cmd]
co  qrdwrn   - warning message count
co  negFreqLim - limit for negative frequency
co  qrdTol - tolerances for QRDAMP symmetrization (methods ZERO and MIX only)
co  qrdFullModalStiff - flag to calculate the full modal stiffness matrix [QRDOPT cmd]
co  qrdCMCCout - flag to write the CMCC on file [QRDOPT cmd]
co  qrdHyst - flag for hysteretic damping

c === old rev44 keys
co  trnstr - "kay(5)" for dynamics: 0, initial vel by statics
co                    2, zero v and a output options
co  printn - overall print frequency
co  postn  - overall results file write frequency

c === spectrum keys
co  spanal - 0,single point  1,ddam    2,multipoint    3,psd
co  spnmod - number of modes to use for spectrum analyses
co  spstrs - 0,no stresses   1,calculate and use stresses
co  sgnfmx - tolerance for significant modes to expand [mxpand cmd]
co  comode - actual number of modes to be combined
co  frqrat - frequency ratio to compute band-width on modal covar. matrix
co  timedr - earthquake time duarion for shock spectrum use
co  comb_label - 0=disp, 1=velo and acel=2 [new mode combination
co               commands: srss,cqc,dsum,grp,nrlsum,psdcom]
co  nmode_redu - number of modes that have been extracted [psdcom]
co  modcmb - mode combination type key [srss/grp/psdc/etc. cmds]
co  CombineForceType - force combination, 1-static, 4-total [srss/etc. cmds]
co  kpfact - participation factor calc. key [pfact cmd]
co  sptype - single point response spectrum type [svtype cmd]
co  svinterp - sv interpolation key [svtype cmd]
co  nspfrq - number of response spectrum freqencies [svfreq cmd]
co  nSpectCombined - number of spectrum solutions combined so far

c === units
co  siconv    - internals units to si units
co  inconv    - input units to si units
co  outconv   - output units to si units
co    siconv(1) - ratio of unit length  in active system to length  in meters
co    siconv(2) - ratio of unit mass    in active system to mass    in kgrams
co    siconv(3) - ratio of unit time    in active system to time    in seconds
co    siconv(4) - ratio of degrees      in active system to degrees in kelvin
co    siconv(5) - offset of temperature in active system from absolute zero
co    siconv(6) - ratio of charge       in active system to charge  in coulomb
co    siconv(7) - ratio of permeability in active system to perm.   in henry/mtr
co    siconv(8) - spare

c === Boeing Sparse solver interface options
co  reord_opt  - 0=default, -1,1=force wavefront, -2=force metis, -3=force MMD
co               -4,force SGI/Extreme
co  mem_conf   - 0=default stay within heap available space if possible
co               1=prefer in-core run in core if possible within heap space
co               2=prefer OOC optimal try to run using OOC memory plus enough
co                 to minimize I/O - from heap space
co               3=prefer minimum memory. Run in least possible memory from
co                 available heap, else try allocation for OOC optimal anyway
co               4=prefer maximum memory. try allocation even in heap space
co                 is too small. If supplemental memory allocation fails
co                 reduce to optimal OOC then OOC if necessary
co              -1=force memory size specified by mem_set (mbytes or D.P.words)
co                 if forced size is too small try for minimum memory size
co              -2=Limit memory size specified by mem_set (mbytes or D.P.words)
co                 if forced size is too small try for minimum memory size
co  mem_set    - amount of memory for BCS solver workspace. use this value for
co               attempted memory allocation of work space. This parameter, if
co               used, is specified in units of Mbytes or D.P. words. If
co               mem_set is < 10000 it is assumed to be in Mbytes, larger values
co               are assumed to be in D.P. words.
co  io_opt     - controls whether or not the BCS solver workspace file will be written
c                (1) save workspace in file, (0) auto, (-1) do not save workspace in file
co  dump_opt   - Used to dump input sparse matrices to BCS solvers.
co                1 or BIN - Binary format,
co                2 or ASCII - ASCII format,
co               -1, -2 puts each matrix in a file numbered by the call sequence
co  BCSscl     - sparse solver matrix scaling option. 0) means do not scale the
co               input matrix, 1 means scale just the P equations in U/P
co               formulation, 2 means symetrically scale U eqns and also scale P
co               equations by a row scaling

c === distributed solution options
co  nSuperDomain  - number of superDomains created by domain decomposer
co  currDomain    - the domain being processed
co  maxCurrDomain - maximum element in the current domain
co  LevDifficult  - level of difficulty for the solver (ycl)
co                    0 -  same as 1
co                    1 -  default difficulty, easy,
co                    2 -  moderately difficult
co                    3 -  very difficult, high memory use,
co                    4 -  firing all guns, exhaust everything in order
co                         to solve it. high memory use,
co  Nprocess      - Number of MPI processors to use for distributed solvers
co                  (for DDS this may also set the number of OpenMP processors)
co  Nmaxiter      - maximum number of allowed iterations, by default
co                    Nmaxiter == number of dof in the problem
co  MPIoption     - option on how to search for MPIRUN options
co                    DDS_LOCAL  (0) == -np (command built by ANSYS)
co                    DDS_FILE   (1) == -file (command built by ANSYS)
co                    DDS_SCRIPT (2) == search for ansdds5x script
co  NoSolveKey    - 0,solve and delete erot
co                    1,no solve and keep erot
co                    2,solve and keep erot
co  autodom       - 0,automatically determine the no. of domains (DDSOPT,,AUTO)
co                    1,user-specified no. of domains (DDSOPT,,#)
co  nDomain (number of domains to use) is in ordcom
co  DomainPcg   - 1, use Charbel domain decomposer for PCG (internal option)
co                0  use pcg internal decomposer (released capability)
co  DScompare   - flag set to force domain decomposition element ordering
co                (value is the number of processes to simulate in decomp)
co  DScontact   - flag to control how Distributed ANSYS handles contact pairs
c                  =  1, group each contact pair without underlying elements into single domain
c                  =  2, group each contact pair with underlying elements into single domain
co  DScontactReq- user requested behavior for how D-ANSYS should handle contact [DDOPT]
co  DScontPairReq - user requested behavior for how D-ANSYS should group contact pairs [DDOPT]
c                  =  0, automatically determine how to group overlapping contact pairs
c                  = -1, group all contact pairs into a single domain
c                  =  1, allow contact pairs to be decomposed into separate domains
co  seSparse    - o, normal substructure file  1, full sparse matrix
co  optDecomp   - flag set to force domain decomposer to optimize CPU domains
co  DecompCompKey - flag for creating CPU domain components with D-ANSYS domain decomposer
co  CombineFiles  - key denoting whether or not combine certain ANSYS files
c                   (e.g., rst, esav, emat, etc..) after a D-ANSYS solution

c === CADOE
co  cadoe_antype    - Cadoe analysis type following the Ansys Antype
co                    it has the same meaning as antype but it signifies cadoe
co                    is on or will be used following the Ansys analysis
co  cadoe_update    - Flag to specify if we enter in update routines or not
co  cadoe_pass_input- 0, start cadoe analysis from scratch
co                    1, restart cadoe analysis by setting cadoe_pass>1
co  cadoe_intF_cal  - 1, calculate cadoe internal force by integral B^t*sigma
co                       this includes thermal strain in the calculation.
co                       this is the default
co                    2, calculate cadoe internal force by directly doing
co                       summation (Ke*U) to avoid inclusion of thermal strain
co                  In all cases calculation of external forces are not affected
co  SXcontrol       - 0, running cadoe without use of ESAVE file
co                    1, running cadoe by using ESAVE file
co                    >1, running cadoe by other future control
co  cadoe_frqswp_vt   - key to activate solve with frequency sweep VT
co  cadoe_frqswp_post - 1,launch standard solve during the post of VT sweep
co  freq_computed_vt  - 1,the solution obtained has been computed by the VT method
co  vtomeg2   - omega squared (coef of mass matrix)
co  hrmfull   - 1,FULL method required to perform the harmonic analysis
co  partialAssemb     - 1,partial assembly activate by wrfull command
co  nbAssemb  - number of assemblies done in the /solu block
co  partAssembRun     - 1,use wrfull,1,,,,RUN without the "solve" command
co  exactB            - use the exact RHS in VT Harmonic during the frequency sweeping
co  cadoe_cyc_err     - error status for a VT cyclic symmetric solve 
co  elemTableFreq     - 1 if one of the element matrices is defined using frequency table for VT Harmonic 
co  AcousCPkey        - key for one-way fsi (1 structure; 2 acoustics)
co  ASIMapKey         - key for one-way fsi mapping, 0 - no mapping, 1 - mapping
co  PiezoElKey        - key for Piezo Elements, 0 - no Piezo Elements, 1 - 223/226/227 Piezo Elements

c === rezoning
co  elmatrzk  - rezoning history,0 - no rezoning ever, 1 - had rezoning

c === GPU acceleration options
co  accOn     - key denoting whether or not GPU accelerator device is to be used
c               for this analysis
co  accSP     - key denoting whether or not to use single precision (SP) values
c               when factoring sparse solver matrix fronts on the GPU
co  accDbg    - debug key for GPU accelerator code
co  accMinSz  - threshold size of a sparse solver matrix front to be considered
c               by GPU accelerator device. Front sizes below this threshold are
c               not processed using the GPU accelerator device. Units are DP words
co  accMaxSz  - threshold size of a sparse solver matrix front to be considered
c               by GPU accelerator device. Front sizes above this threshold are
c               not processed using the GPU accelerator device. Units are DP words
co  accMinOps - threshold number of flops for factoring a sparse solver matrix
c               front on a GPU accelerator device. Fronts requiring fewer flops
c               than this threshold are not processed using the GPU accelerator

c === acoustic-structure interaction
co  asiScale  - scaling factor for pressure with FSI

c === CE processing key
co  newCeLogic - 1 call the new cnstds routine for handling constraint equations
c              - 0 calling the old cnstds routine for handling constraint equations

c === Warning and Error issued keys for contact DOF
c   Ms1DOF   - 1 message already issued for base elem DOF not on contact elem
c   Ms2DOF   - 1 message already issued for contact elem DOF not on base elem
c   NoteDF   - 1 note already issued for contact elem DOF check suppressed
c   MsgGCdof - 1 message already issued for GCGEN base elem DOF not available

c === spares
c   ispr_soptcm
c   dsopsp

