The following sections provide instructions for some additional installation options.
To delete the intermediate files created when building the OOMMF software from source code, use pimake to build the target objclean in root directory of the OOMMF distribution.
tclsh app/pimake/pimake.tcl objclean
The pimake target clean will also remove the OOMMF executables. The pimake target distclean will remove all files created by the compile and link steps, leaving the OOMMF files as they were distributed, except for your configuration edits.
OOMMF software supports local customization of some of its features. All OOMMF programs load the file config/options.tcl, which contains customization commands as well as editing instructions. As it is distributed, config/options.tcl directs those programs which load it to also load the file config/local/options.tcl, if it exists. Because future OOMMF releases may overwrite the file config/options.tcl, permanent customizations should be made by copying config/options.tcl to config/local/options.tcl and editing the copy.
Notable available customizations include the choice of which network port the host service directory application uses, and the choice of what program is used for the display of HTML files. If Microsoft's Internet Explorer is selected for HTML display, further customization is needed for OOMMF to generate URLs in the non-standard format Internet Explorer insists on. See the instructions in the file config/options.tcl for details.
OOMMF software classifies computing platforms into different types using the scripts in the directory config/names relative to the root directory of the OOMMF distribution. Each type of computing platform is assigned a unique name. These names are used as directory names and in index and configuration files so that a single OOMMF installation may contain platform-dependent sections for many different types of computing platforms.
To learn what name OOMMF software uses to refer to your computing platform, run the Tcl script platform.tcl in the OOMMF root directory.
To change the name OOMMF software uses to describe your platform from foo to bar, simply rename the file
config/names/foo.tcl to config/names/bar.tcland
config/cache/foo.tcl to config/cache/bar.tcl.After renaming your platform type, you must recompile your executables.
If the script platform.tcl reports the platform name unknown, then none of the scripts in config/names/ recognizes your platform type. To add the platform name foo to OOMMF's vocabulary of platform names, create the file config/names/foo.tcl. The simplest way to proceed is to copy an existing file in the directory config/names and edit it to recognize your platform.
The files in config/names include Tcl code like this:
Oc_Config New _ [file rootname [file tail [info script]]] { # In this block place the body of a Tcl proc which returns 1 # if the machine on which the proc is executed is of the # platform type identified by this file, and which returns 0 # otherwise. # # The usual Tcl language mechanism for discovering details # about the machine on which the proc is running is to # consult the global Tcl variable 'tcl_platform'. See the # existing files for examples, or contact the OOMMF developers # for further assistance. }
After creating the new platform name file config/names/foo.tcl, you also need to create a new platform cache file config/cache/foo.tcl. A reasonable starting point is to copy the file config/cache/unknown.tcl for editing. Contact the OOMMF developers for assistance.
Please consider contributing your new platform recognition and configuration files to the OOMMF developers for inclusion in future releases of OOMMF software.
If the script platform.tcl reports ``Multiple platform names are compatible with your computer'', then there are multiple files in the directory config/names/ that return 1 when run on your computer. For each compatible platform name reported, edit the corresponding file in config/names/, so that only one of them returns 1 on your computer. Experimenting using tclsh to probe the Tcl variable tcl_platform should assist you in this task. If that fails, you can explicitly assign a platform type corresponding to your computing platform by matching its hostname. For example, if your machine's host name is foo.bar.net:
Oc_Config New _ [file rootname [file tail [info script]]] { if {[string match foo.bar.net [info hostname]]} { return 1 } # Continue with other tests... }
Contact the OOMMF developers if you need further assistance.
This section lists the installation options for Microsoft Windows only.
Right mouse click on the desktop to bring up the configuration dialog, and select New |Shortcut. Enter the command line necessary to bring up OOMMF, e.g.,
tclsh80 c:\oommf\app\oommf\oommf.tcl
Click Next > and enter OOMMF for the shortcut name. Select Finish.
At this point the shortcut will appear on your desktop with either the tclsh or wish icons. Right mouse click on the icon and select Properties. Select the ShortCut tab, and bring up Change Icon.... Under File Name: enter the OOMMF icon file, e.g.,
C:\oommf\app\oommf\oommf.ico
Click OK. Back on the Shortcut tab, change the Run: selection to Minimized. Click OK to exit the Properties dialog box. Double clicking on the OOMMF icon should now bring up the OOMMF application mmLaunch.
If you encounter difficulties during OOMMF start up, you may need to set the environment variable TCL_LIBRARY.
Bring up the Control Panel (for example, by selecting Settings |Control Panel off the Start menu), and select System. Go to the Environment tab, and enter TCL_LIBRARY as the Variable, and the name of the directory containing init.tcl for the Value, e.g.,
%SystemDrive%\Program Files\Tcl\lib\tcl8.0
Click Set and OK to finish.
Edit the file autoexec.bat. Add a line such as the following:
set TCL_LIBRARY=C:\Program Files\Tcl\lib\tcl8.0