REPORTER 22.1

"oa_pref" Naming Convention and Locations

"oa_pref" naming convention and locations

The file is called "oa_pref"

It is looked for in the following places in the order given:

  • The site-wide admin directory ( $OA_ADMIN )
  • The site-wide " Oasys Ltd LS-DYNA Environment " directory ( $OA_INSTALL )
  • The user's home directory: $HOME (Unix/Linux) or $USERPROFILE (Windows)

The first encountered file will be used, so this file can be customised for a particular job or user at will.
Files do not have to exist in any of these locations, and if none exists the programme defaults will be used.

On Unix and Linux:

$HOME on Unix and Linux is usually the home directory specified for each user in the system password file.
The shell command " printenv " (or on some systems " setenv ") will show the value of this variable if set.
If not set then it is defined as the " ~ " directory for the user. The command " cd; pwd " will show this.

On Windows:

$USERPROFILE on Windows is usually C:\Documents and Settings\ <user id> \
Issuing the " set " command from an MS-DOS prompt will show the value of this and other variables.

Generally speaking you should put

  • Organisation-wide options in the version in $OA_INSTALL,
  • User-specific options in $HOME / $USERPROFILE