| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
C======================================================================= |
| 8 |
SUBROUTINE CPYMSH (INEW, IOLD, ISSNPS, ISSESS) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** CPYMSH *** (MESH) Copy mesh display parameters from another view |
| 12 |
C -- Written by Amy Gilkey - revised 04/11/88 |
| 13 |
C -- |
| 14 |
C --CPYMSH copies the mesh display options from one view to another |
| 15 |
C --view or sets the view to undefined. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- INEW - IN - the view to be set |
| 19 |
C -- IOLD - IN - the view to be copied; <=0 to set to undefined |
| 20 |
C -- ISSNPS - IN/OUT - the indices of the selected node sets |
| 21 |
C -- ISSESS - IN/OUT - the indices of the selected side sets |
| 22 |
C -- |
| 23 |
C --Common Variables: |
| 24 |
C -- Uses NUMNPS, NUMESS of /DBNUMG/ |
| 25 |
C -- Sets MSHDEF, MSHNUM, MSHLIN, MLNTYP, NNPSET, NESSET of /MSHOPT/ |
| 26 |
C -- Uses MODDET, MODTYP of /DETOPT/ |
| 27 |
|
| 28 |
PARAMETER (MSHNON=0, MSHBOR=1, MSHDIV=2, MSHSEL=3, MSHALL=4) |
| 29 |
|
| 30 |
include 'dbnumgq.blk' |
| 31 |
include 'mshopt.blk' |
| 32 |
include 'detopt.blk' |
| 33 |
|
| 34 |
INTEGER ISSNPS(NUMNPS,4) |
| 35 |
INTEGER ISSESS(NUMESS,4) |
| 36 |
|
| 37 |
CHARACTER CDUM |
| 38 |
|
| 39 |
IF (IOLD .GE. 1) THEN |
| 40 |
CALL SETMSH (INEW, |
| 41 |
& MSHDEF(IOLD), MSHNUM(IOLD), MSHLIN(IOLD), MLNTYP(-1,IOLD), |
| 42 |
& NNPSET(IOLD), ISSNPS(1,IOLD), NESSET(IOLD), ISSESS(1,IOLD), |
| 43 |
& MODDET(IOLD), MODTYP(IOLD), ISSNPS, ISSESS) |
| 44 |
|
| 45 |
ELSE |
| 46 |
CALL SETMSH (INEW, |
| 47 |
& 'NONE', CDUM, IDUM, IDUM, |
| 48 |
& IDUM, IDUM, IDUM, IDUM, |
| 49 |
& 'NONE', CDUM, ISSNPS, ISSESS) |
| 50 |
END IF |
| 51 |
|
| 52 |
RETURN |
| 53 |
END |