*comdeck,mesh_tol                                                   avm
c
c *** Copyright ANSYS.  All Rights Reserved.
c *** ansys, inc.
c
c *** NOTE: Changes to this routine need to also be made in pr7ini.F AND
c ***       mesh_setting.F -- and probably ansres.F as well!
      integer num_int_mesh,num_dp_mesh
      parameter (num_int_mesh=64)
      parameter (num_dp_mesh=64)
      integer int_mesh(num_int_mesh)
      double precision dp_mesh(num_dp_mesh)
      common /mesh_tol/ int_mesh,dp_mesh
c *** (ESEX or EXPN) element size expansion
c     dp_mesh(1) = 1.d0
c *** (SHRI) background shrink
c     dp_mesh(2) = .05d0
c *** (STOL) smoothing tolerance convergence factor
c     dp_mesh(3) = .05d0
c *** (PDSP) parametric distortion parameter
c     dp_mesh(4) = .1d-6
c *** (PDFP) parametric difference parameter
c     dp_mesh(5) = .1d0
c *** (PSFP) meshing safety factor
c     dp_mesh(6) = 1.01d0
c *** (PMXE or TRAN) meshing maximum element side
c     dp_mesh(7) = 2.d0
c *** (PMNE) meshing minimum element side
c     dp_mesh(8) = .55d0
c *** (PRSF) meshing radius shrink
c     dp_mesh(9) = .8d0
c *** (TES1) triangle boundary edge split 1
c     dp_mesh(10) = 180.123456789d0/180.d0*DPPI
c *** (TES2) triangle boundary edge split 2
c     dp_mesh(11) = 270.123456789d0/180.d0*DPPI
c *** (QES1) quad boundary edge split 1
c     dp_mesh(12) = 134.9876543210/180.d0*DPPI
c *** (QES2) quad boundary edge split 2
c     dp_mesh(13) = 224.987654321d0/180.d0*DPPI
c *** maximum angle for 1, 2 and 3 divisions (linear) in cln
c     (LQA1) dp_mesh(14) = 139.987654321D0/180.D0*DPPI
c     (LQA2) dp_mesh(15) = 229.987654321D0/180.D0*DPPI
c     (LQA3) dp_mesh(16) = 319.987654321D0/180.D0*DPPI
c     (SDER) dp_mesh(17) = 3.0123456789d0
c *** (MXLA) max angle linear quad can have at a vertex (Also used in cleanup)
c     dp_mesh(18) = 151.123456789d0/180.d0*DPPI
c *** (MXQA) max angle quad quad can have at a vertex
c     dp_mesh(19) = 151.123456789d0/180.d0*DPPI
c *** (MXPA) max angle P quad can have at a vertex
c     dp_mesh(20) = 170.987654321d0/180.d0*DPPI
c *** (MNBA) Min allowable element beta value.  Used in smoother and quad_split.
c     dp_mesh(21) = 0.05d0
c *** (QFAC) Quad scale factor used in Smart Sizing.  This is computed as:
c ---    quad_scal_factor = 1.0 / 1.519671371 = (3^0.25) / 2 -- that is,
c ---                     = (side length of equilateral quad of unit area)
c ---                       ----------------------------------------------
c ---                       (side length of equilateral tri of unit area)
c ---    The reasoning is basically that we want about the same number of
c ---    elements for a given surface, regardless of element type.
c ---
c ---    ACTUALLY, EXPERIENCE HAS SHOWN THAT 0.71 DOES A BETTER JOB OF GIVING
c ---    SIMILAR NUMBER OF QUADS AND TRIS FOR A GIVEN AREA.  (sac 5/2/96)
c
CXXc     dp_mesh(22) = 0.65803701
c     dp_mesh(22) = 0.7071                   ! This is currently used
c *** (LCCR) SmartSize Lage Curvature Coarsening Ratio
c     dp_mesh(23) = 10.0d0
c *** (IESZ) flat element constant size
c     dp_mesh(24) = .0d0
c *** (ODDA) On odd-numbered boundaries, angle below which a triangle will
c ***        be placed.
c     dp_mesh(25) = 69.987654321D0/180.D0*DPPI
c *** (LFAC) Coefficient FAC for Lo's mesher (NOT CURRENTLY USED)
c     dp_mesh(26) = 4.0d0
c *** (LTOR) Coefficient TOR for Lo's mesher (NOT CURRENTLY USED)
c     dp_mesh(27) = 0.20d0
c *** (MXAN) Set the absolute maximum span angle for smart sizing.  That is
c ***        when small hole coarsening (formerly referred to as pseudo-small
c ***        feature suppression) is active, what is the largest angle that we
c ***        will allow, so as to make larger element sizes around tiny holes.
c     dp_mesh(28) = 45.d0
c *** (TRAT) When small hole coarsening is on (formerly refered to as
c ***        pseudo-small hole coarsening), what is the size ratio threshold
c ***        at which we need to start increasing sizes by increasing the
c ***        allowable spanned angle.
c     dp_mesh(29) = 5.d0
c *** (MXRT) When small hole coarsening is on (formerly refered to as
c ***        pseudo-small hole coarsening), what is the size ratio threshold
c ***        at which we set the size to the maximum allowable spanned angle.
c     dp_mesh(30) = 35.d0
c *** (SFAC) This value is a factor used to compute an element size for
c ***        SmartSizing when no default size is specified.
c     dp_mesh(31) = 0.2d0
c *** (MNSZ) This value is a factor used to compute a minimum element size
c ***        for smart sizing when no minimum global size is specified.
c     dp_mesh(32) = 0.06666667d0
c *** (TETE) tet element size expansion
c     dp_mesh(33) = 1.d0
c *** (MAP1) submapping end angle threshold
c     dp_mesh(34) = 135.d0
c *** (MAP2) submapping side angle threshold
c     dp_mesh(35) = 225.d0
c *** (MAP3) submapping corner angle threshold
c     dp_mesh(36) = 315.d0
c
c
c *** (DIRC) directional meshing (0 is off; 1 is on)
c     int_mesh(1) = 0
c *** (NSMP) number of smoothing parametric space
c     int_mesh(2) = 3
c *** (NSMO) number of smoothing global space
c     int_mesh(3) = 3
c *** (NPDV) number of division for parametric mapping
c     int_mesh(4) = 10
c *** (NCIT) Maximum number of cleanup iterations
c ***        Used in cleanup.
c     int_mesh(5) = 25
c *** (TCLN) Toggle cleanup (0 is off; 1 is on)
c     int_mesh(6) = 1
c *** (TSMO) Toggle smoothing (0 is off; 1 is on)
c     int_mesh(7) = 1
c *** (SPLIT) Toggle splitting of poor quads into tris (0 = off; 1 = error/on, 2 = warning)
c     int_mesh(8) = 1
c *** (DVER) Data model verification (0 is off; 1 is on)
c     int_mesh(9) = 1
c *** (DBUG) Print debug messages (0 is off; 1 is on)
c     int_mesh(10) = 0
c *** (AMESH) Revision 5.1 or 5.2 quad dominant surface mesher (2-CMDB,1-5.1,0-5.2)
c     int_mesh(11) = 0
c *** (BGME) Background mesh sizing (0=FORTRAN, 1=C "natural neighbor")
c     int_mesh(12) = 1
c *** (PYRA) Automatic Hex to Tet Pyramid Transition elements (0 = off; 1 = on)
c     int_mesh(13) = 1
c *** turn on/off transitional mapped meshing (0-OFF,1-ON)
c     int_mesh(14) = 1
c *** (VMESH) Specify which tet mesher to use
c ***    1 - 5.1 (Stan's--rm'd from code); 0 - 5.2 (S.H. Lo); 2 - (P.L. George);
c ***    3 - DEFAULT -- Program chooses
c     int_mesh(15) = 3
c *** (TIMP) Set "timp" tet improvement level in tet meshers
c ***        0 -- off; 1 -- on (use PLG's timp for PLG mesher,
c ***                           equivalent to 3 for Lo mesher); 
c ***        2-5 -- on (use BJ's timp with imp_level 0-3, resp.)
c ***        6   -- on (use BJ's timp with imp_level 3 AND do quadratic cln)
c     int_mesh(16) = 1
c *** (PCHE) Toggle tri-facets pre-checking for the new Tet mesher
c ***        (0 is off; 1 is on)
c     int_mesh(17) = 1
c *** (SMTH) Toggle smoother revision option (0 is RV52; 1 is RV53)
c     int_mesh(18) = 1
c *** (TCUR) Toggle curvature checking in SmartSizing  (0 is off; 1 is on)
c     int_mesh(19) = 1
c *** (TPRX) Toggle proximity checking in SmartSizing (0 is off; 1 is on)
c     int_mesh(20) = 1
c *** (TRMN) Toggle node removal cleanup for SmartSizing (0 is off; 1 is on)
c     int_mesh(21) = 1
c *** (TSPX) Toggle surface proximity checking for SmartSizing
c ***        (0 is off; 1 is on)
c     int_mesh(22) = 0
c *** (TSHC) Toggle small hole coarsening (formerly referred to as pseudo-small
c ***        feature suppression (0 is off; 1 is on)
c     int_mesh(23) = 1
c *** Use new 3D tri mesher:
c ***    0 is off;
c ***    1 on degenerate surface (def)
c ***    2 is for all surfaces
c     int_mesh(24) = 1
c *** (TSAC) Toggle small angle coarsening (0 is off; 1 is on)
c     int_mesh(25) = 1
c *** (LSMO) Toggle line smoothing (0 is off; 1 is on)
c     int_mesh(26) = 0
c *** (TSCU) Toggle surface curvature refinement (0 is off; 1 is on)
c     int_mesh(27) = 1
c *** (CLEAR) Toggle clearing option (0 is off(old); 1 is on(new/default))
c     int_mesh(28) = 1
c *** (TBCL) Toggle surface boundary cleanup; (0 is off; 1 is on)
c     int_mesh(29) = 0
c *** (TDEL) Toggle surface delaunay improvement; (0 is off; 1 is on)
c     int_mesh(30) = 1
c *** (TSTR) Toggle element stretching in surface curvature refinement
c ***        1 = refine only in direction of curvature
c ***        0 = refine uniformly in all directions based on curvature
c     int_mesh(31) = 0   NOT USED
c *** (TLCC) Toggle smart size large curvature coarsening; (0 is off; 1 is on)
c     (int_mesh(32) = 1
c *** (ASTA) turn on/off output of area mesh metric statistics to file mesh.stat
c     int_mesh(33) = 0
c *** (HEXR) turn on/off hex refinement
c     int_mesh(34) = 0
c *** (CSWAP) turn on/off element swapping based on curvature
c     int_mesh(35) = 1
c *** (VLSMO) turn on/off volume line smoothing
c     int_mesh(36) = 0
c *** (WARP) turn on/off rev 5.5 warped parameter space for surface meshing
c     int_mesh(37) = 0
c *** (QMESH) set the current quad mesher  (0 = default, 1 = main, 2 = alternate)
c     int_mesh(38) = 0
c *** (PARM) surface paramaterizationi/evaluation method for xox models
c            0 = xox only; 1+ = use sjo's parameterization/evaluation
c     int_mesh(39) = 1
c *** (VSWEEP) Volume sweeping interpolation method
c ***          0 - computer decides (default)
c ***          1 - background mesh
c ***          2 - linear
c     int_mesh(40) = 0
c *** (VSWEEP) Volume sweeping target area smoothing
c ***          0 - no smoothing on target area.
c ***          1 - smoothing on target area (default)
c     int_mesh(41) = 1
c *** (MAPM) Which map mesher should be used.
c     int_mesh(42) = 0
c ***          0 - try new sweeping map mesher first and old Fortran map
c ***              mesher if it fails (unless XOX, then try old FORTRAN
c ***              first, then new sweeping map mesher)
c ***          1 - Always use the new sweeping (or main) map mesher
c ***          2 - Always use the old Fortran (or alternate) map mesher
c *** (REPORT) Mesher(s) used report.
c     int_mesh(43) = 0
c ***          1 - report what meshers are used (even if /nopr)
c     int_mesh(44) = 0
c ***          0 - do not order areas by size for meshing
c ***          1 - order areas by size for meshing
c     int_mesh(45) = 0
c ***          0 - print asum info normally
c ***          1 - do not print asum info to screen (we are in aorder call to pr7asu from volms2)
