Welcome to the tutorial on the fundamentals of the Nektar++ framework where we will look at how to perform 1D and 2D Gaussian Quadrature using the Nektar++ LibUtilities library. If you have not already downloaded and installed Nektar++, please do so by visiting http://www.nektar.info, where you can also find the User-Guide with the instructions on how to install the library.
This tutorial requires:
Nektar++ compiled libraries and include files compiled from source so additional code can be compiled with the framework libraries
After completing this tutorial, you should be familiar with:
The concept of Gaussian integration using classical Gauss and Gauss-Lobatto rules in a standard interval ξ ∈ [-1,1];
Using  the  Nektar++ programming  concepts  of  an  Array,  PointsKey and  the
     PointsManager to generate Gaussian quadrature weights;
     
Integrating in the standard segment (ξ ∈ [-1,1]) and quadrilateral region (ξ ∈ [-1,1] × [-1,1]);
The mathematical concept of mapping a general quadrilateral region to the standard region, evaluating the jacobian of this mapping and using this to evaluate an integral in a general straight sided quadrilateral region.
Installed and tested Nektar++ v5.8.0 compiled from source. We will refer to the
     directory where you installed Nektar++ as $NEKDIST for the remainder of the
     tutorial.
     
The tutorial folder also contains:
CMakeList.txt
LocIntegration2D.cpp
StdIntegration1D.cpp
StdIntegration2D.cpp
Make a directory of your chosing, for example tutorial, and download the tutorial files
     from fundamentals-integration.tar.gz into this directory.
     
Unpack the tutorial files by using
tar -xzvf fundamentals-integration.tar.gz
     
to produce a directory fundamentals-integration with subdirectories called tutorial
     and complete.
     
Change to the
fundamentals-integration/tutorial
     
directory and configure the tutorial examples for compilation by typing the command
cmake -DCMAKE_PREFIX_PATH=$NEKDIST/build .
     
You should now see a file called Makefile in this directory.
     
Change to the
$NEKDIST/tutorial/fundamentals-integration/complete
     
directory and configure the completed version of the tutorial examples for compilation by again typing the command
cmake -DCMAKE_PREFIX_PATH=$NEKDIST/build
     
You should now see a file called Makefile in this directory.