Index of Functions: A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 
Index Page
touchl

Table of contents
Procedure
Abstract
Required_Reading
Keywords
Declarations
Brief_I/O
Detailed_Input
Detailed_Output
Parameters
Exceptions
Files
Particulars
Examples
Restrictions
Literature_References
Author_and_Institution
Version

Procedure

     TOUCHL ( Touch a variable )

     LOGICAL FUNCTION TOUCHL ( LOG )

Abstract

     Return the value of the input logical

Required_Reading

     None.

Keywords

     UTILITY

Declarations

     IMPLICIT NONE

     LOGICAL               LOG

Brief_I/O

     VARIABLE  I/O  DESCRIPTION
     --------  ---  --------------------------------------------------
     LOG        I   any logical

      The function returns the value of LOG.

Detailed_Input

     LOG      is any logical

Detailed_Output

     The function returns the input logical

Parameters

     None.

Exceptions

     Error free.

Files

     None.

Particulars

     This is a utility routine so that formal arguments to a routine
     that are never used can be given the appearance of being used
     to a compiler. In this way it is possible to leave "hooks" in
     a calling sequence even if those variables are for the moment
     unused. Similarly, variables declared for future use can be left
     in place so that they don't need to be commented out

Examples

     Suppose that a routine takes as an argument a
     fortran structure implemented as a set of parallel arrays.
     But that one of the arrays is not needed for the purposes of
     the routine. This routine allows you to touch that array
     without changing it.


        SUBROUTINE INCPTR ( N, PTR, VALUES )

        This routine increments the current pointer into a circular
        array of logicals.

        INTEGER               N
        INTEGER               PTR
        LOGICAL               VALUES ( * )

        Even though we don't need to do anything with the values
        array, it's passed for the sake of uniformity in calling
        sequences. Touch the VALUES array so that the compiler
        will think it's been used.

        VALUES(1) = TOUCHL ( VALUES(1) )

        PTR = PTR + 1

        IF ( PTR .GT. N ) THEN
           PTR = 1
        END IF
        RETURN

Restrictions

     1)  If you use this routine, it would be a very good idea to
         write down why you are using it in the calling routine.

Literature_References

     None.

Author_and_Institution

     J. Diaz del Rio    (ODC Space)
     W.L. Taber         (JPL)

Version

    SPICELIB Version 1.0.1, 16-AUG-2021 (JDR)

        Edited the header to comply with NAIF standard.

    SPICELIB Version 1.0.0, 06-MAY-1994 (WLT)
Fri Dec 31 18:37:02 2021