Overview
The application FileSource provides the same service
as mmProbEd,
supplying a MIF description of a micromagnetic problem
to a solver. As the MIF specification evolves,
mmProbEd lags behind. There are often new fields
in the MIF specification which mmProbEd is not
capable of editing, and which mmProbEd may not
pass on to solvers after loading them in from a file.
To make use of such fields, a MIF file may need to be edited
``by hand'' using a general purpose text editor.
FileSource may then be used to supply the MIF problem
description contained in a file to a solver without danger
of corrupting its contents.
Ideally, mmProbEd would stay current with the MIF specification, and there would be no need for FileSource. It is a crude surrender to the vagaries of development.
Launching
FileSource must be launched from the command line,
since it requires a command line argument, the name of the
file containing the MIF problem description it should
serve to client applications. The command line is
tclsh app/oommf/oommf.tcl FileSource <filename>
Although FileSource does not appear on the list of Programs which mmLaunch offers to launch, running copies do appear on the list of Threads since they do provide a service registered with the account service directory.
Inputs
FileSource takes its MIF problem description from
the file named on the command line. No checking of the
file contents against the MIF specification is performed.
The file contents are passed uncritically to any client
application requesting a problem description. Those client
applications should raise errors when presented with
invalid problem descriptions.
Outputs
Each instance of FileSource provides the contents of
exactly one file. The file name is displayed in the
FileSource window to help the user associate each
instance of FileSource with the data file it provides.
Each instance of FileSource accepts and services requests
from client applications (typically solvers) for the contents
of the file it exports.
The contents of the file are read at the time of each client's request, so if the contents of a file change between the startup of FileSource and the arrival of a request from a client, the new contents will be served to the client application.
Controls
A Quit button terminates the FileSource application.