UQTk: Uncertainty Quantification Toolkit 3.1.5
generate_quad.cpp File Reference

Command-line utility to generate quadrature points. More...

#include <unistd.h>
#include "quad.h"
#include "tools.h"
#include "arrayio.h"

Macros

#define PARAM   3
 default value of parameter (level for sparse quadrature, or number of grid points for full quadrature)
 
#define DIM   2
 default data dimensionality
 
#define FSTYPE   "sparse"
 default sparseness type (full or sparse)
 
#define QUADTYPE   "CC"
 default quadrature type
 
#define ALPHA   0.0
 default alpha parameter for chaos
 
#define BETA   1.0
 default beta parameter for chaos
 
#define DOMAIN_FILE   "param_domain.dat"
 default domain file
 
#define VERBOSITY   1
 default verbosity
 

Functions

int usage ()
 Displays information about this program.
 
int main (int argc, char *argv[])
 Main program: Generates various kinds of quadrature points and weights.
 

Detailed Description

Command-line utility to generate quadrature points.

Author
K. Sargsyan 2013 -

Macro Definition Documentation

◆ ALPHA

#define ALPHA   0.0

default alpha parameter for chaos

◆ BETA

#define BETA   1.0

default beta parameter for chaos

◆ DIM

#define DIM   2

default data dimensionality

◆ DOMAIN_FILE

#define DOMAIN_FILE   "param_domain.dat"

default domain file

◆ FSTYPE

#define FSTYPE   "sparse"

default sparseness type (full or sparse)

◆ PARAM

#define PARAM   3

default value of parameter (level for sparse quadrature, or number of grid points for full quadrature)

◆ QUADTYPE

#define QUADTYPE   "CC"

default quadrature type

◆ VERBOSITY

#define VERBOSITY   1

default verbosity

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Main program: Generates various kinds of quadrature points and weights.

Set the default values

Read the user input

Print the input information on screen

Parameter sanity checks

Declare the quadrature rule object

Extract the properties of the rule

Write-out to files

Scale if domain is provided

Set the domain

Write-out to files

◆ usage()

int usage ( )

Displays information about this program.