wmm_unix.zip (UNIX /
Linux) or
wmm_dos.zip (MS-DOS).
The files differ with respect to the end-of-line characters only.
Uncompress the archive:
unzip wmm_unix.zip (UNIX / Linux) or
pkzip -extr -dir wmm_dos.zip (MS-DOS, Windows...)
will do (The files have been compressed using the utility
zip on
a PC running Linux). This should create a directory Wmm containing
the
C++ mode solver library files, makefiles,
a short README file, and a folder
Apps with some
examples for application programs,
C++ main()-files.
For a first mode analysis run, choose one of the example files from
Apps, copy it to the Wmm directory, edit it for your own
needs, and save it by the name newapp.c. Only the file
wmminc.h must be included into the main program;
it summarizes the header files which are
necessary to access the library routines.
Choose a makefile appropriate for your system and rename it makefile,
or edit the first lines of the supplied makefile according to
your compiler. The files included are
makefile.gcc for the GNU C++ compiler,
makefile.CC for the Hewlett-Packard C++ compiler,
and
makefile.xlC for the C++ compiler on an IBM AIX, IBM
SP system.
Since the application programs will most likely produce some output files
which are not to be mixed with the WMM source files, they should be executed
in a separate 'production' directory. Therefore create a directory
P in the folder Wmm.
The makefiles have a primary target w, which is to be produced
by compiling w.c. Hence the commands
cp newapp.c w.c make cp w newapp or equivalents produce the executable newapp. Additionally,
the new application must be transferred to folder P, and a copy
of the source newapp.c may also be useful in P. This
is what the script files mo or mo.bat do. Type
mo newapp in folder Wmm to compile your application program (maybe a
chmod +x mo is required).
Start the application in folder P:
cd P newapp.
The stderr output channel receives log information: analysis parameters,
structure definition, mode solver progress, propagation constant values
and file input/output notes. Therefore you might wish to collect this information:
newapp 2>res.