next up previous contents
Next: Quit Up: The File menu Previous: Convert ASCII to NetCDF   Contents


Preferences

The Preferences option allows to set the nMOLDYN preferences using the ConfigParser Python-module mechanism [46]. In nMOLDYN the preferences are classified in the three following sections: Pressing the Preferences menubutton will pop up the dialog shown in figure 4.16.
Figure 4.16: The dialog used to set up nMOLDYN preferences.
\includegraphics[width=10cm]{Figures/preferences_file_handling.eps}

By default, the dialog for File handling section is displayed. Clicking on the File handling, External programs or Miscellaneous radiobutton will display the dialog corresponding to the selected section (see Figure 4.17).

Figure 4.17: The three preferences sections dialogs available in nMOLDYN. On the left, the file handling section, on the middle the external programs section and on the right, the miscellaneous section.
\includegraphics[width=5.2cm]{Figures/preferences_file_handling.eps} \includegraphics[width=5.2cm]{Figures/preferences_external_programs.eps} \includegraphics[width=5.2cm]{Figures/preferences_miscellaneous.eps}
Each preference section dialog contains an entry for each of its associated preferences variable initialized with a default value. Here is the list of the nMOLDYN preferences variables:

The Actions frame contains four buttons which are respectively:

Pressing the Cancel button will cancel the preferences settings and close the preferences dialog leaving the preferences in the state they were when opening the Preferences dialog. Pressing the Save button will pop up a file browser from which you will select a location to save the preferences. By default, the preferences file name is:

$USERPROFILE\Application Data\nMOLDYN\nMOLDYN.ini on Windows,

$HOME/.nMOLDYN on Unix and,

$HOME/Library/Preferences/nMOLDYN.pref on MacOS

If those paths does not exist, they will be created. These default paths will be the ones that will be searched when nMOLDYN is started. Pressing the Load button will load a preferences file through a dialog. OK will use the settings for the running session of nMOLDYN but will not save them.

The figure 4.18 shows an example of a nMOLDYN preferences file built under a linux workstation. Please note the format that must be strictly respected.

Figure 4.18: Example of a nMOLDYN preferences file.
\includegraphics[width=10cm]{Figures/preferences_config_file_example.eps}

As can be seen from that figure, the file must start with the line '[nmoldyn]' followed by th declaration of each preferences variables. For the vairables that may be missing in that file or with an empty value (e.g. ncdump_path in figure 4.18), the default value will be used.


next up previous contents
Next: Quit Up: The File menu Previous: Convert ASCII to NetCDF   Contents
pellegrini eric 2009-10-06