*comdeck,lsdynacom                                                 cwa/mrl
c
c         *** Copyright ANSYS.  All Rights Reserved.
c         *** ansys, inc.
c
c --- syspar.inc now needed with this common since LENFNM is here (lao)
c
c *** mpg lsdynacom.inc < sfform slvstr slvrun sbctrn slvdfs: LSDYNA data
c
c --- define the size of the common block
      integer NLSDVAR,NLSIVAR
      parameter (NLSDVAR=50,NLSIVAR=90)

      integer
     x  lsdyna_key, concpu, conener, conhgls, conshel, conbvis,
     x  concont, hglsene, stnwene, slidene, raylene, shellnu, shelltc,
     x  warpbt, shellpl, initcsp, shellco, penstif, sheltcg, orient,
     x  control_key, conterm, edrst_key, lssolve_key, shell_int,
     x  beam_int, penchk, subcycl_key, itrst, dyna_restart,dyna_fsize,
     x  dyna_memory, dyna_opts, nstep_rst, nstep_his, relax_opt,
     x  relax_iter,relax_auto, edht_key, ncpu, numrhs, accu, phase_def,
     x  hiscount,outcount, hist_key, eos_type, partnum, curveid, loadid,
     x  adapt_opt, adapt_mxl, nstep_dum, edct_key, edda_key, edou_key, 
     x  edcu_key, eddr_key, geom_key, eddu_key, node_set, elem_set,
     x  twod_key, para_key, cons_key, dbl_key, lsdrop_added,
     x  adapt_lc, adapt_pass, adapt_flag, adapt_maxel

      double precision
     x  cputime, hglscoef, quadcoef, lincoef, warpang, slidinp, rigwpen,
     x  conspck, contime, dt_rst, dt2ms, dt_his, lsdtm1bk, histm1bk,
     x  relax_tol, relax_fac, relax_term, relax_scal, relax_atol,tssfac,
     x  contime1bk, valdamp, stabilization_factor, spring_factor,
     x  max_spring_factor, adapt_time, adapt_tol, adapt_btm, adapt_dtm,
     x  dt_dum, adapt_size, adapt_pene, adapt_path, ale_key, afac, bfac, 
     x  cfac, dfac, efac, ale_start, ale_end, aafac, nadv, ale_meth, 
     x  vfact, ebc, dct, lsdyna_dspar
c
      character*(LENFNM)  dyna_dfname, dyna_dfnamenn

      common /lsdyncom/  
c --- dp vars
     x  cputime, hglscoef, quadcoef, lincoef, warpang, slidinp, rigwpen,
     x  conspck, contime, dt_rst, dt2ms, dt_his, lsdtm1bk, histm1bk,
     x  relax_tol, relax_fac, relax_term, relax_scal, relax_atol,tssfac,
     x  contime1bk, valdamp,stabilization_factor,
     x  max_spring_factor, spring_factor, adapt_time, adapt_tol, 
     x  adapt_btm, adapt_dtm, dt_dum, adapt_size, adapt_pene,
     x  adapt_path, ale_key, afac, bfac, cfac, dfac, efac, ale_start,
     x  ale_end, aafac, nadv, ale_meth, vfact, ebc, dct,
     x  lsdyna_dspar(3),
c
c --- integer vars
     x  lsdyna_key, concpu, conener, conhgls, conshel, conbvis,
     x  concont, hglsene, stnwene, slidene, raylene, shellnu, shelltc,
     x  warpbt, shellpl, initcsp, shellco, penstif, sheltcg, orient,
     x  control_key, conterm, edrst_key, lssolve_key, shell_int,
     x  beam_int, penchk, subcycl_key, itrst, dyna_restart, dyna_fsize,
     x  dyna_memory, dyna_opts(20), nstep_rst, nstep_his, relax_opt, 
     x  relax_iter, relax_auto, edht_key, ncpu, numrhs, accu, 
     x  phase_def, hiscount, outcount, hist_key, eos_type, partnum,
     x  curveid, loadid, adapt_opt, adapt_mxl, nstep_dum,
     x  edct_key, edda_key, edou_key, edcu_key, eddr_key, geom_key,
     x  eddu_key, node_set, elem_set, twod_key, para_key, cons_key,
     x  dbl_key, lsdrop_added, adapt_lc, adapt_pass, adapt_flag,
     x  adapt_maxel

      common /lsdyncomc/ dyna_dfname, dyna_dfnamenn


c --- this common is initialized to "zero" by subroutine LsdynaInit.F
c --- which is called from subroutine begin.F


c   *** integer definitions ***
c   analysis options
co  lsdyna_key - key to turn on lsdyna3d program
co             - 1=on, 0=off
c
c   *CONTROL_OPTION variables
co  control_key - key to check if control command has been issued
co  concpu   - cpu control key: 1=specified, 2=not specified
co  conener  - energy control key: 1=specified, 2=not specified
co  hglsene  - hourglass energy control variable
co  stnwene  - stonewall energy control variable
co  slidene  - sliding interface energy control variable
co  raylene  - rayliegh energy control variable
co  conhgls  - hourglass control key: 1=specified, 2=not specified
co  conshel  - shell control key: 1=specified, 2=not specified
co  shellnu  - shell element normal update variable
co  shelltc  - shell element thickness change variable
co  warpbt   - shell element Belytschko-Wong-Chiang warping stiffness
co  shellpl  - shell element plasticity option variable
co  conbvis  - bulk control viscosity key: 1=specified, 2=not specified
co  concont  - contact control key: 1=specified, 2=not specified
co  initcsp  - initial contact surface penetration check variable
co  shellco  - shell thickness contact option variable
co  penstif  - penalty stiffness option variable
co  sheltcg  - shell thickness change consideration
co  orient   - automatic contact segment reorientation variable
co  conterm  - control termination time key
co  penchk   - small penetration contact search option key
co  subcycl_key - key to check if time step subcycling has been issued
co  itrst   - shell sorting option for triangular shells
c
co Adaptive Meshing
co adapt_time - time interval for remeshing
co adapt_tol - adaptive error tolerance in degrees
co adapt_mxl - maximum number of refinement levels
co adapt_opt - angle adaptivity option
co adapt_btm - birth time for starting adaptive meshing
co adapt_dtm - death time for ending adaptive meshing
c
co dyna_restart - LS-DYNA restart key:
co            0 = new run: not a restart
co            1 = simple restart: continue running the same probelm
co                using the LS-DYNA dump file dyna_dfnamenn
co            2 = small restart: continue running the same probelm with
co                a larger TIME value specified on the jobname.r file
co                and using the LS-DYNA dump file dyna_dfnamenn
co            3 = full restart: use /filename, resume, modify input and
co                run a new analysis to create new .k, .db and .rst files
co                using the LS-DYNA dump file dyna_dfnamenn
co  dyna_fsize - LS-DYNA file size, defaults to 7
co  dyna_memory - Memory allocation for LS-DYNA
co  dyna_opts   - options from the EDOPT command
c
c   These "relax" variables are from the "eddrelax" command
co  relax_opt   - dynamic relaxation key 
co                (0=off, 1=ANSYS, 2=DYNA, 3=output to D3THDT)
co  relax_iter  - number dynamic relaxation iterations (default=250)
co  relax_auto  - dynamic relaxation auto control
co  relax_tol   - dynamic relaxation convergence tolerence (default=.001)
co  relax_fac   - dynamic relaxation factor (default=.995)
co  relax_term  - dynamic relaxation termination time (default=FUGE)
co  relax_scal  - dynamic relaxation scale factor
co  relax_atol  - dynamic relaxation automatic control tolerence
c
co  phase_def   - analysis phase default depending on setting of relax_opt 
co                for (EDLOAD and EDCURVE)
c
co  tssfac      - scale factor for computed time step (edcts command)
c
c   *DATABASE_OPTION variables
co  edrst_key    - key to check if EDRST command has been issued
co  edht_key     - key to check if EDHT command has been issued
co  eddu_key     - key to check if EDDU command has been issued
co  lssolve_key  - key to check if solve command has been previously
co                 issued - activates header for results file if not
co  lsdyna_ispar - integer spares
co  dyna_dfname - dump file name for LS-DYNA
co  dyna_dfnamenn - actual dump file name for restart, dyna_dfname01, dyna_dfname02, etc,,,
c
c   *CONTROL_PARALLEL variables
co  ncpu     - number of cpus used
co  numrhs   - number of right hand sides written
co  accu     - accuracy flag for parallel process
c
c   *** double precision definitions ***
c   *CONTROL_OPTION variables
co  cputime  - cpu time limit for LSDYNA solution
co  hglscoef - hourglass control coefficient
co  quadcoef - quadratic bulk viscosity coefficient
co  lincoef  - linear bulk viscosity coefficient
co  warpang  - shell element warping angle variable
co  slidinp  - scale factor for sliding interface penalties
co  rigwpen  - scale factor for rigidwall penalties
co  conspck  - contact surface penetration check
co  contime  - control termination time
co  dt2ms    - time step size for mass scaling
c
c   *DATABASE_OPTION variables
c   dt_rst    - time interval between outputs to results file
co  lsdyna_dspar - double precision spares
co  dt_his    - time interval between outputs to history file
Co  dt_dum   - time interval between outputs to LSDYNA restart file
co  hiscount  - key to see if history file component specified 
co              0 - no, 1 - yes
co  outcount  - key to determine if EDOUT command has been specified
co                0 - no, 1 - yes
co  hist_key  - key to tell if history file internally specified
co  geom_key - key to tell if REXPORT,RIMPORT is issued
co  node_set    - node set number
co  elem_set    - elem set number
co  histm1bk  - previous time interval specified for history output
c
c *** EDCSC variables (lao)
c   partnum   - Part ID number
c   curveid   - Load curve ID
c   valdamp   - Damping value
c
c *** EDLDPLOT variable (lao)
co  loadid    - id number of load name in load list
c
co  stabilization_factor    - used in springback analysis
co  max_spring_factor       - maximum spring stiffness accepted
co  spring_factor           - current stabilization spring stiffness

C para_key                  - LSDYNA parallel mode (SMP, MPP), = 0: serial processing
C cons_key                  - Consistency key in SMP version,  = 0: no 
C dbl_key                   - LSDYNA single/double precision,  = 0: single precision
c lsdrop_added              - lsdropcom is saved to the db file
c 
c *** ALE Options
c ale_key     - Global ALE key
c afac        - ale smoothing key
c bfac        - ale smoothing key
c cfac        - ale smoothing key
c dfac        - ale smoothing key
c efac        - ale smoothing key
c ale_start   - ale start time
c ale_end     - ale end time 
c aafac       - ALE advection factor
c nadv        - number of cycles
c meth        - advection method
c vfact       - volume fraction limit
c ebc         - eulerian boundary condition
c dct         - default continuum type
