Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

2 years ago
C Copyright(C) 1999-2020 National Technology & Engineering Solutions
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C See packages/seacas/LICENSE for details
C=======================================================================
SUBROUTINE CPYMSH (INEW, IOLD, ISSNPS, ISSESS)
C=======================================================================
C --*** CPYMSH *** (MESH) Copy mesh display parameters from another view
C -- Written by Amy Gilkey - revised 04/11/88
C --
C --CPYMSH copies the mesh display options from one view to another
C --view or sets the view to undefined.
C --
C --Parameters:
C -- INEW - IN - the view to be set
C -- IOLD - IN - the view to be copied; <=0 to set to undefined
C -- ISSNPS - IN/OUT - the indices of the selected node sets
C -- ISSESS - IN/OUT - the indices of the selected side sets
C --
C --Common Variables:
C -- Uses NUMNPS, NUMESS of /DBNUMG/
C -- Sets MSHDEF, MSHNUM, MSHLIN, MLNTYP, NNPSET, NESSET of /MSHOPT/
C -- Uses MODDET, MODTYP of /DETOPT/
PARAMETER (MSHNON=0, MSHBOR=1, MSHDIV=2, MSHSEL=3, MSHALL=4)
include 'dbnumgq.blk'
include 'mshopt.blk'
include 'detopt.blk'
INTEGER ISSNPS(NUMNPS,4)
INTEGER ISSESS(NUMESS,4)
CHARACTER CDUM
IF (IOLD .GE. 1) THEN
CALL SETMSH (INEW,
& MSHDEF(IOLD), MSHNUM(IOLD), MSHLIN(IOLD), MLNTYP(-1,IOLD),
& NNPSET(IOLD), ISSNPS(1,IOLD), NESSET(IOLD), ISSESS(1,IOLD),
& MODDET(IOLD), MODTYP(IOLD), ISSNPS, ISSESS)
ELSE
CALL SETMSH (INEW,
& 'NONE', CDUM, IDUM, IDUM,
& IDUM, IDUM, IDUM, IDUM,
& 'NONE', CDUM, ISSNPS, ISSESS)
END IF
RETURN
END