Menu

Installation

SPSens

To install, download the SPSens compressed file .tgz and unzip from the command line:

tar -zxvf SPSens\<VersionName>.tgz

Once it's unpacked, individual problems will be made by changing to the unzipped directory and using the make system.

Building problems with make

The makefile can be modified to suit your specific needs, but it can be used "as is" to build the essential programs that are needed.

Assuming that the problem is properly defined and saved as prob_\<probname>.c in the examples/ directory, all that is needed to build the executables is the following:

make \< target > PROB_NAME=*<probname>*

Here \< target > is one (or more) of the following:

  • sens : builds serial sensitivity executable
  • sim : builds serial SSA executable
  • sens_par : builds parallel sensitivity analysis executable
  • sim_par : builds parallel SSA executable
  • all : builds serial executables, equivalent to specifying sim and sens (default if \<target> is omitted)
  • par : builds parallel executables, equivalent to specifying sim_par and sens_par

If the problem file, prob_\<probname>.c, is saved in a directory besides examples, make can still be used by redefining the macro PROB_SRC. For example, if the problem is located in /home/username/path_to_problem, then one need only add the command

PROB_SRC=/home/username/path/prob_\<probname>.c

By default, make will build the executables in the directory. This can be changed by specifying

OUT_DIR=path_where_executable_will_be_built


Related

Wiki: Home

MongoDB Logo MongoDB