*comdeck,fdm000                                                         afb

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


c     **********  description of modal displacement file for restart  **********
c               Header and time information are similar to RDSP file.
c              Some variables are not needed but kept for further dvlpt
c                 for which a more complete MXXX file may be needed.
c

      character*8  M000NM 
      parameter  (M000NM='m000    ')
      
      LONGINT         m000fpL, m000fp
      integer         m000bk,  m000ut
      common /fdm000x/ m000fpL, m000bk, m000ut
      equivalence  (m000fp,m000fpL)

c  write:  lnfRestartWrite
c  read:   restartexist2, lnfRestartRead, restartscan, slvrst

c   ********** common variable descriptions ***********
co  m000fpL      file position on file m000
co  m000bk       block number for file m000
co  m000ut       file unit for file m000

c   See fddesc for documentation of how binary files are stored.
c  
c     **********  file format  **********

c        recid tells the identifier for this record.  Not all records will have
c             identifiers -- they are only indicated for those records whose 
c             record pointers are stored in the second file header.

c        type tells what kind of information is stored in this record:
c             i - integer
c             dp - double precision
c             cmp - complex

c        nrec tells how many records of this description are found here

c        lrec tells how long the records are (how many items are stored)

c recid    type    nrec    lrec     contents

c  ---      i       1      100      standard ANSYS file header (see binhed for 
c                                   details of header contents)

c  ---      i       1       40    .RDSP FILE HEADER
c                                     
c                                  fun29,  nmrow, nmatrx,  nmode, numdof,
c                                      0,  wfmax,      0,  ngaps, ncumit,
c                                    kan,   nres, ldstep, sbstep, numdeflvs,
c                                  ndval,      0,      0,      0,      0,  
c                                 ptrDOF, ptrDNC, ptrSTF, ptrMAS, ptrDMP,
c                                 ptrFRQ, ptrGAP,ptrSTFh,ptrMASh,ptrDMPh,
c                                ptrFRQh,ptrGAPh, ptrDVA,ptrDVAh,      0,
c                                      0,      0,      0,      0,      0

c                                each item in header is described below:

c                                 fun29  - unit number (mXXX file is 29)
c                                 nmrow  - number of rows/columns in matrices (not used)
c                                 nmatrx - number of reduced matrices on the 
c                                          file (not used)
c                                 nmode  - number of modes extracted during 
c                                          modal analysis (or nmrow if reduced 
c                                          method) (not used)
c                                 numdof - number of dofs per node (not used)
c                                 0      - position not used
c                                 wfmax  - maximum wavefront (not used)
c                                 0      - position not used
c                                 ngaps  - number of gaps (not used)
c                                 ncumit - cumulative number of iteration
c                                 kan    - analysis type 
c                                          = 5 for reduced transient analysis
c                                 nres   - number of residual vector used
c                                 ldstep - load step number
c                                 nlvsc  - number of lvscal vector
c                                 ndval  - number of dval 
c                                 sbstep - substep number
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 ptrDOF - pointer to degree of freedom set (not used)
c                                 ptrDNC - pointer to nodal constraints (not used)
c                                 ptrSTF - pointer to the reduced stiffness (not used)
c                                 ptrMAS - pointer to the reduced mass matrix (not used)
c                                 ptrDMP - pointer to the reduced damping
c                                          matrix or mode shapes (not used)
c                                 ptrFRQ - pointer to the frequencies (not used)
c                                 ptrGAP - pointer to gap forces (not used)
c                                 ptrSTFh- High part of reduced stiffness ptr (not used)
c                                 ptrMASh- High part of reduced mass ptr (not used)
c                                 ptrDMPh- High part of reduced damping ptr (not used)
c                                 ptrFRQh- High part of frequency ptr (not used)
c                                 ptrGAPh- High part of gap ptr (not used)
c                                 ptrDVA - pointer to modal disp, velo and acc
c                                 ptrDVAh- High part of modal disp, velo and acc
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used
c                                 0      - position not used

c  ---      dp      1       10    Time information:
c                                  dtime,  time,  scale,  timsav, oldfsc,
c                                    0.0,    0.0,    0.0, timbeg, timend

c                                each item is described below:
c 
c                                  dtime  - the time increment
c                                  time   - the time
c                                  scale  - the scale factor
c                                  timsav - the time of the end of previous load step
c                                  oldfsc - the scale factor of previous load step
c                                  0.0    - position not used
c                                  0.0    - position not used
c                                  0.0    - position not used
c                                  0.0    - position not used
c                                  timend - the final time of the analysis

c ---       i       1  numdeflvs (ilvscID(i),i=1,numdeflvs)
c ---       dp      1  numdeflvs (dlvscVal(i),i=1,numdeflvs)
c ---       dp      1  numdeflvs (dlvscOld(i),i=1,numdeflvs)

c ---       i       1  ndefdval (idvalID(i),i=1,ndefdval)
c ---       i       1  ndefdval (iavalID(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dRdvalue(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dRavalue(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dRdvalueOld(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dRavalueOld(i),i=1,ndefdval)

c  DVA      dp      1     nmode  Calculated modal displacements 
c                                      (dm(i),i=1,nmode+nres)

c  ---      dp      1     nmode    Calculated modal velocities 
c                                      (vm(i),i=1,nmode+nres)

c  ---      dp      1     nmode    Calculated modal accelerations 
c                                      (am(i),i=1,nmode+nres)
c ---       dp      1  ndefdval (dIdvalueOld(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dIdvalueID(i),i=1,ndefdval)
c ---       dp      1  ndefdval (dIavalueOld(i),i=1,ndefdval)


