DOWNLOAD
FUNDER is available as a single compressed file
in the following formats:
Although both files can be decompressed with some Windows applications,
such as WinZip, the tarred-gzipped one is recommended for Unix systems.
Decompression and unpacking are as simple as typing in a unix shell
> gzip -d funder01.01.01.tar.gz
> tar xf funder01.01.01.tar
After decompressing, the files will be in the following directories:
COMPILATION
EXECUTABLE FILES
A Makefile
is supplied so that the basic compilation in Unix is
> make [example]
provided GNU C++ compiler g++ is
available. This generates the executable
file funder ,
the C++ library funderlib.a
and object files for all source files. The compilation directory can be
cleaned with
> make clean
An alternative compilation is
> make alt_example
This creates an alternative executable
file, funderalt ,
which, contrary to funder , doesn't generate a
file of susceptibilities,
but reads them
from suscept.dat .
Since computing the susceptibilities of the
system may be a tedious process, funderalt
is useful in obtaining responses of the system to several
excitations faster.
The file suscept.dat for
the example can be
found in the directory funder01/data , but note
that funderalt expects it to be in the
execution directory.
The complete source code is provided as a single
file, funder.cpp , in funder01/single_file .
If you are experiencing any problems with make ,
funder and funderalt
can be compiled with
funder
|
> g++ funder.cpp -o funder -lm
|
funderalt
|
> g++ funder.cpp -o funder -lm -D FD_FILE
|
For computations with noisy data, an alternative version
is provided, also as a single
file, funderns.cpp , in funder01/single_file .
The compilation line is:
funderns
|
> g++ funderns.cpp -o funderns -lm
|
You may use any other C++ compiler, such
as Visual C++, whose version 5.0 correctly
compiles funder.cpp .
LIBRARY
Compilation of the
library funderlib.a
alone is possible with
> make library
Users must use this library to compile their own programs,
implementing user-defined systems,
with the line
> g++ user1.cpp[ user2.cpp[...]] funderlib.a -o user_exe -lm
|