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
tclsh oommf.tcl +platformin the OOMMF root directory.
tclsh oommf.tcl pimake distcleanThen, 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/platforms/foo.tcl to config/platforms/bar.tcl.After renaming your platform type, you should recompile your executables using the new platform name.
The files in config/names include Tcl code like this:
Oc_Config New _ \ [string tolower [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 file config/platforms/foo.tcl. A reasonable starting point is to copy the file config/platforms/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.
Oc_Config New _ \ [string tolower [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.