| 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 muntt (nelblk0, nelblk, nvarel, itt0, itt, istat) |
| 9 |
C======================================================================= |
| 10 |
C -- ISTAT - IN - the status of each block: |
| 11 |
C -- 0 = same |
| 12 |
C -- - = delete |
| 13 |
C -- n = combine with block n |
| 14 |
|
| 15 |
implicit none |
| 16 |
integer nelblk0, nelblk, nvarel |
| 17 |
integer istat(*) |
| 18 |
logical itt0 (nelblk0, nvarel) |
| 19 |
logical itt (nelblk, nvarel) |
| 20 |
|
| 21 |
integer ielb, ielb0, ivar |
| 22 |
|
| 23 |
ielb = 0 |
| 24 |
do 10 ielb0 = 1, nelblk0 |
| 25 |
if (istat(ielb0) .eq. 0) then |
| 26 |
ielb = ielb + 1 |
| 27 |
do 20 ivar = 1, nvarel |
| 28 |
itt(ielb,ivar) = itt0(ielb0, ivar) |
| 29 |
C write (*,*) ielb0, ivar,itt0(ielb0, ivar) |
| 30 |
20 continue |
| 31 |
else if (istat(ielb0) .lt. 0) then |
| 32 |
C ... Zero out the original truth table since we don't need to |
| 33 |
C read those variables off of the input database... |
| 34 |
do 30 ivar = 1, nvarel |
| 35 |
itt0(ielb0,ivar) = .false. |
| 36 |
30 continue |
| 37 |
|
| 38 |
else |
| 39 |
call prterr('PROGRAM', |
| 40 |
* 'Element block combination does not work if' |
| 41 |
* //' there are element variables on the database.') |
| 42 |
stop |
| 43 |
end if |
| 44 |
10 continue |
| 45 |
if (ielb .ne. nelblk) then |
| 46 |
call prterr('PROGRAM', 'Problem in muntt') |
| 47 |
stop |
| 48 |
end if |
| 49 |
return |
| 50 |
end |