Please have a look at the general remarks on program structure and prerequisites first. Then proceed as follows:
metric_unix.zip (UNIX, Linux) or
metric_dos.zip (MS-DOS, Windows).
unzip metric_unix.zip (UNIX, Linux).
zip on
a PC running Linux. This should create a directory Metric containing
the
C++ mode solver library files, a makefile,
and a folder
Apps with some
examples for application programs,
C++ main()-files.
INSTALL, copy the entire folder Eigen (found one level below) incl. all sub-folders
into the Metric directory.
Apps, copy it to the Metric directory, edit it for your own
needs, and save it by the name newapp.cpp. Only the file
metric.h must be included into the main program;
it summarizes the header files which are
necessary to access the library routines.
makefile according to the
requirements of your compiler. The makefile as included should work appropriately
for the GNU C++ compiler.
P in the folder Metric.
s, which is to be produced
by compiling s.cpp. Hence the commands
cp newapp.cpp s.cpp
make
cp s newapp
newapp. Additionally,
the new application must be transferred to folder P, and a copy
of the source newapp.cpp may also be useful in P. This
is what the script files mo or mo.bat do. Type
./mo newapp
Metric to compile your application program (maybe a
chmod +x mo or the like is required).
P:
cd P
./newapp.
./newapp 2>res.
Good luck !