WHOAMI Name
WHOAMI Purpose
Returns to the calling routine its directory and name.
Category
Calling Sequence
whoami, dir, file Inputs
Keyword Parameters
Keywords
LINE=n Line number just after where whoami was called.
Outputs
dir = Source directory of calling routine. out
file = name of calling routine. out
Common Blocks
Notes
Notes: It can be useful for a routine to know
what directory it is located in. This allows
it to reference auxiliary files in the same
directory without needed any special environmental
variables defined. The file name returned here is
less important since it could always be hardwired
into the calling routine itself, but this technique
allows this to be avoided for more reusable code.
Modification History
R. Sterner, 1995 May 11
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 1995, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.