Debian Codegraph @

packages/seacas/libraries/plt/pltini.f

raw
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 PLTINI(MIN,MAX,START,REND,INTER,EXP,NMIN)
9 REAL MIN,MAX,INTER
10 INTEGER EXP
11
12 DELTA = MAX - MIN
13 IF (DELTA.LT.0.) THEN
14 CALL PLTFLU
15 CALL SIORPT('PLTINI',
16 * 'Maximum value must be greater than minimum value.'
17 * ,2)
18 RETURN
19
20 END IF
21
22 CALL PLTINO(MIN,MAX,START,REND,INTER,EXP,NMIN)
23 TENEXP = 10.**EXP
24 IEXP = NINT(LOG10(ABS(INTER))) - 2
25 SMALL = 10.**IEXP
26 IF (ABS(START-MIN/TENEXP).GT.SMALL) THEN
27 START = START + INTER
28 END IF
29
30 IF (ABS(REND-MAX/TENEXP).GT.SMALL) THEN
31 REND = REND - INTER
32 END IF
33
34 RETURN
35
36 END