next up previous contents index
Next: J.1.2 System independent file Up: J.1 Some present problems Previous: J.1 Some present problems   Contents   Index

J.1.1 Graphics

Yapp can only be linked in once, there's no dispatcher yet, and different versions of the program exist for different graphics output (printers also) devices.

It would be nice to have more general dispatcher, which fully utilizes the yapp= system keyword, may be used such that only one compiled version of the program is needed.

E.g. on the SUN we could use:

yapp_core: generic yapp using suntools (deprecated)
yapp_cg: extended suntools version with color support (deprecated)
yapp_ps: output to a postscript file, for Postscript device. (color not yet implemented)
yapp_mongo: interface which connects to mongo-87. (deprecated)
yapp_pgplot: interface which connects to pgplot package. This implementation also has the great advantage of being able to handle a variety of terminals and printers fairly transparent. This is the one we use mostly.
yapp_plplot: interface which connects to plplot package.

We use the environment variable YAPPLIB in Makefile's. This environment variable is also set by your local NEMO guru in NEMORC.local file (normally initialized by reading it by a users .cshrc file) or you have to add them specifically to your .cshrc file. This makes it easier to install a new version of NEMO where a different graphics package will been used.

In some older versions of NEMO some of the Makefile's may have not been modified to have these flexible setups, or the variable.

Sometimes, the need occurs for a specific YAPP interface, besides default one. Programs which specifically address a graphics device have the base name (e.g. snapplot, appended with an underscore and the device ID, e.g. snapplot_ps or snapplot_cg. Best is to check the $NEMOBIN directory.

The installer should carefully read the Makefile and/or README file in the directory $NEMO/src/kernel/yapp for instructions regarding specific installations of yapp interfaces.

Programs would have to be recompiled manually, as in the following example, because most Makefile's have hardwired graphics library names in them:

    % make snapplot YAPPLIB="$YAPP_PS"
    % mv snapplot $NEMOBIN/snapplot_ps


next up previous contents index
Next: J.1.2 System independent file Up: J.1 Some present problems Previous: J.1 Some present problems   Contents   Index
(c) Peter Teuben