| 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 |
integer function argument_count() |
| 8 |
integer*4 arg_count4 |
| 9 |
arg_count4 = iargc() |
| 10 |
argument_count = arg_count4 |
| 11 |
return |
| 12 |
end |
| 13 |
|
| 14 |
subroutine get_argument(which, optvalue, length) |
| 15 |
integer which |
| 16 |
character*(*) optvalue |
| 17 |
integer length |
| 18 |
#if defined(__XLF__) || defined(__INTEL_COMPILER) |
| 19 |
integer*4 which4 |
| 20 |
which4 = which |
| 21 |
call getarg(which4, optvalue) |
| 22 |
#else |
| 23 |
call getarg(which, optvalue) |
| 24 |
#endif |
| 25 |
length = lenstr(optvalue) |
| 26 |
return |
| 27 |
end |