Environment Variables That Affect PRIMER
Environment Variables That Affect PRIMER
Environment variables are set at the both at the operating system and user levels, and can be used to influence the behaviour of Oasys LS-DYNA Environment products. Generally they are better suited to site-wide customisation in the Shell when the software is installed, but users are free to make their own local settings.
Unix/Linux systems running "C" shell (/bin/csh) or its derivatives such as /bin/tcsh:The format of the command is: setenv <parameter> <argument list> For example:
setenv DISPLAY my_machine:0
(Note that the " oasys_xx " shell is written using C shell syntax, so if it is amended the format above should be used.) |
Unix/Linux systems running "Bourne" (/bin/sh) or "Korn" (/bin/ksh) shellsThe format of the command is: <parameter> = <argument list> ; export <parameter> For example:
DISPLAY=my_machine:0; export DISPLAY
|
Windows systems
|
On Windows Vista / Windows 7:
|
|
||||||||||||||
|
On Windows XP / 2000
|
|
Then insert the relevant Variable and Value strings into the User or System settings as desired.
In this example it can be seen that user Administrator has set the DISPLAY environment variable to 170.177.1.92:0 .
Environment variables that control the behaviour of PRIMER.
| Variable name | Description | Possible Values | Default | |
|
The following variables control the graphics and attributes of the display window and menu system. |
||||
| DISPLAY |
The X11 display id on which graphics will be drawn.
If this is not defined (most systems initialise this to " :0 ") then no connection can be made to an X server, and no graphics will be drawn. |
( <machine name> ) :< server id > ( <.screen id> ) | :0 | |
|
DISPLAY_SATURATION
|
Saturation controls the colour saturation (intensity) of menus
Brightness controls the colour brightness of menus "Factor" sets the relative display scale, and can range from 0.5 (making menus larger) to 2.0 (making them smaller). It may also be set to " automatic " which derives a factor from the physical screen dimensions. |
0.0 to 1.0
0.0 to 1.0 0.5 to 2.0, or automatic |
1.0
1.0 1.0 |
|
| SM_USE_VISUAL |
Sets the X11 "visual" id to be used for screen menus. Where
a graphics display provides "overlay" planes these should normally
be used, otherwise this should be left undefined or set to "default".
Using an explicit visual id is possible, and this should be defined in
hexadecimal (eg 0xf16).
Experience has shown the on some Silicon Graphics systems using the "overlay" planes can result in very strange colours in other windows, in which case "default" should be used. Also on some W2000 and graphics board combinations problems may also arise with overlay planes and, again, "default" should be used. |
overlay
default < visual id > in hex |
overlay | |
| MENU_AUTO_CONFIRM | This variable is often used when replaying command files which, when recorded, paused and asked the user to confirm things. (For example HELP and Warning messages.) If the variable is set (true) then these will not pause and will behave as if the user had pressed "OK" - meaning that command files can play back without user intervention. | true or false | false | |
| USE_PIXMAPS | Controls whether or not the menus use "pixmaps" (off-screen memory) to produce smooth scrolling. Turning this off (false) will save memory, and may help memory problems on a display that has only limited memory available for the X server, but will give slightly jerky window scrolling. | true or false | true | |
|
PRIMER_NO_PIXMAP
PRIMER_NO_PBUFFER |
Controlling screen refresh, shows a new method that has superseded these variables.
May be used to suppress backing store redraws for the OpenGL graphics window. Should be used on OpenGL / X graphics combinations only if you receive errors starting "GLX ...", and then only after consultation with Oasys Ltd Support. |
true or false | false | |
|
PRIMER_NO_VARRAY
PRIMER_NO_SHADER PRIMER_NO_VBO PRIMER_NO_MBR |
These options turn off various aspects of graphics tuning, respectively
vertex arrays, shaders, vertex buffer objects, and buffer range extensions.
It should not normally be necessary to use these variables, and they are
really for debugging purposes.
More information about graphics tuning may be found in Accelerated Graphics |
<Any value> | <none> | |
| SAVE_UNDER |
This flag was introduced to fix a specific bug on Compaq Alpha OSF4.x
operating systems. Normally the window manager requests a redraw of windows
that have been updated, even when they are currently obscured by something
else. However the OSF4 window manager series failed to do this, leading
to "bare" patches underneath popup menus when these were unmapped.
Setting this flag to false results in more redraws on these systems since it suppresses the default "save under" property of X11 windows, but it does at least prevent windows getting bare areas. Compaq have fixed the bug in OSF5, and possibly in later releases of OSF4. |
true or false | true | |
| CP_FILE_FILTER |
Used during checkpoint file replay to override any file and
pathname stored in the checkpoint file, bringing up the file filter instead.
This allows checkpoint files to be replayed on different systems.
Though this will not work while replaying the checkpoint commands for the drag-drop of files into the PRIMER graphics area. |
true or false | false | |
|
The following two variables apply on Windows platforms only , and should only be used if the menu system is clearly obtaining the wrong display size from the system, as evidenced by fonts and menus being very much the wrong size. |
||||
| DISPLAY_HEIGHT | Set an explicit display height in millimetres | <height in mm> | <none> | |
| DISPLAY_WIDTH | Set an explicit display width in millimetres | <width in mm> | <none> | |
|
The following variables affect the functioning of the code: |
||||
| PRIMER_FILE_FORMAT |
An alternative way of controlling the format of ASCII files written on
Windows systems.
Windows has the peculiarity that, by default, it writes both <carriage return> and <line feed> characters at the end of each line, whereas Unix and Linux platforms only write a <line feed>. The presence of the <carriage return> can confuse some software on Unix/Linux, and its absence can confuse some software on Windows, so in a mixed machine environment there is - unfortunately - no single answer that is "best". PRIMER offers the following options: |
native or unix | native | |
| native | Uses the default for the machine's architecture, which adds <carriage return> on Windows. | |||
| unix | Suppresses the <carriage return> (makes no difference on Unix/Linux machines.) | |||
|
This setting has the same effect as the
ascii_file_format
preference above, and is provided for users who wish to set file output
format on a "per machine" basis rather than globally with the
oa_pref file.
If the oa_pref option is used it will supersede this setting. |
||||
| The following affect threading. The options they provide are available under , and these variables just provide a way of setting different default values. | ||||
| PRIMER_NUM_THREADS |
Sets the number of threads on which
PRIMER
is to run parallelised operations. By default this is the number of cores
in the processor, subject to a maximum of 4.
Setting this to 1 will suppress threading. Setting it to more than the number of cores on your processor will work, but it will not give any speed improvements - and in fact may slow things down. |
1 to n | <none> | |
| PRIMER_THREAD_DIAGNOSTICS |
Turns on threading diagnostics.
This may be a value in the range 0 to 4. 0 is off, and 1 to 4 give progressively more diagnostic information |
0 to 4 | 0 | |
| The following controls the display of on-line manual pages on Unix systems only. (Windows systems use the default web browser.) | ||||
| NETSTART | Command string to start Netscape on Unix/Linux hosts. This is used to fire up the Netscape browser in order to read manual pages from within PRIMER. | Any valid Unix command string. | <none> | |
|
The following variables are provided for debugging purposes only, and should not normally be used. |
||||
| DB_POINTER_CHECK | Runs a check during every internal database allocation and return operation to scan for duplicated or erroneous pointers. This will result in very much (potentially 100x) slower operation of internal memory management, and is normally only used to track down internal errors. |
false , 1 or 2 (Turned off, level #1 or level #2 checking) |
false | |
| XSYNC | Runs the X server in "synchronised" (unbuffered) mode. This will give woefully slow graphics, and is used for debugging purposes only. | true or false | false | |
| WARN_REDEFINE | Makes the menu system issue a warning if a button is redefined. Again this is normally only used for debugging purposes. | true or false | false | |
| PRIMER_NO_ERROR_HANDLER | Suppresses the trapping of crashes and the associated logic that offers to save emergency keyout files. Error trapping replaces the current call stack so when running under a debugger it destroys information about the original stack, making it impossible to trace where errors occurred. Setting this variable turns off the special error handler and gives normal (system) handling of crashes. | Any value | <none> | |