SG++-Doxygen-Documentation
Generalised Sparse Grids

This example creates a generalised grid.

The first CLI argument is the number of dimensions, the second the level and the third the parameter T. It then prints out the grid size.

#include <cstdlib>
#include <iostream>
int main(int argc, char **argv) {
if (argc != 4) return 42;
auto dimensions = std::atoi(argv[1]);
auto level = std::atoi(argv[2]);
double T = std::atof(argv[3]);
auto& generator = grid->getGenerator();
generator.regular(level, T);
std::cout << grid->getSize() << std::endl;
}