Compadre  1.3.3
Functions
GMLS_Tutorial.hpp File Reference
#include <Kokkos_Core.hpp>
#include <basis/Compadre_DivergenceFreePolynomial.hpp>
#include <Compadre_GMLS.hpp>

Go to the source code of this file.

Functions

KOKKOS_INLINE_FUNCTION double device_max (double d1, double d2)
 
KOKKOS_INLINE_FUNCTION double trueSolution (double x, double y, double z, int order, int dimension)
 
KOKKOS_INLINE_FUNCTION double trueLaplacian (double x, double y, double z, int order, int dimension)
 
KOKKOS_INLINE_FUNCTION void trueGradient (double *ans, double x, double y, double z, int order, int dimension)
 
KOKKOS_INLINE_FUNCTION double trueDivergence (double x, double y, double z, int order, int dimension)
 
KOKKOS_INLINE_FUNCTION void trueHessian (double *ans, double x, double y, double z, int order, int dimension)
 
KOKKOS_INLINE_FUNCTION double divergenceTestSamples (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double divergenceTestSolution (double x, double y, double z, int dimension)
 
KOKKOS_INLINE_FUNCTION double curlTestSolution (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double divfreeTestSolution_single_polynomial (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double divfreeTestSolution_span_basis (double x, double y, double z, int component, int dimension, int exact_order)
 
KOKKOS_INLINE_FUNCTION double curldivfreeTestSolution_single_polynomial (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double curldivfreeTestSolution_span_basis (double x, double y, double z, int component, int dimension, int exact_order)
 
KOKKOS_INLINE_FUNCTION double curlcurldivfreeTestSolution_single_polynomial (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double gradientdivfreeTestSolution_single_polynomial (double x, double y, double z, int component, int dimension)
 
KOKKOS_INLINE_FUNCTION double gradientdivfreeTestSolution_span_basis (double x, double y, double z, int input_component, int output_component, int dimension, int exact_order)
 
int main (int argc, char *args[])
 Standard GMLS Example. More...
 

Function Documentation

◆ curlcurldivfreeTestSolution_single_polynomial()

KOKKOS_INLINE_FUNCTION double curlcurldivfreeTestSolution_single_polynomial ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)

Definition at line 341 of file GMLS_Tutorial.hpp.

◆ curldivfreeTestSolution_single_polynomial()

KOKKOS_INLINE_FUNCTION double curldivfreeTestSolution_single_polynomial ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)

Definition at line 285 of file GMLS_Tutorial.hpp.

◆ curldivfreeTestSolution_span_basis()

KOKKOS_INLINE_FUNCTION double curldivfreeTestSolution_span_basis ( double  x,
double  y,
double  z,
int  component,
int  dimension,
int  exact_order 
)

Definition at line 302 of file GMLS_Tutorial.hpp.

◆ curlTestSolution()

KOKKOS_INLINE_FUNCTION double curlTestSolution ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)
Examples:
GMLS Tutorial.

Definition at line 214 of file GMLS_Tutorial.hpp.

◆ device_max()

KOKKOS_INLINE_FUNCTION double device_max ( double  d1,
double  d2 
)

Definition at line 9 of file GMLS_Tutorial.hpp.

◆ divergenceTestSamples()

KOKKOS_INLINE_FUNCTION double divergenceTestSamples ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)
Examples:
GMLS Tutorial.

Definition at line 188 of file GMLS_Tutorial.hpp.

◆ divergenceTestSolution()

KOKKOS_INLINE_FUNCTION double divergenceTestSolution ( double  x,
double  y,
double  z,
int  dimension 
)

Definition at line 201 of file GMLS_Tutorial.hpp.

◆ divfreeTestSolution_single_polynomial()

KOKKOS_INLINE_FUNCTION double divfreeTestSolution_single_polynomial ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)

Definition at line 243 of file GMLS_Tutorial.hpp.

◆ divfreeTestSolution_span_basis()

KOKKOS_INLINE_FUNCTION double divfreeTestSolution_span_basis ( double  x,
double  y,
double  z,
int  component,
int  dimension,
int  exact_order 
)

Definition at line 267 of file GMLS_Tutorial.hpp.

◆ gradientdivfreeTestSolution_single_polynomial()

KOKKOS_INLINE_FUNCTION double gradientdivfreeTestSolution_single_polynomial ( double  x,
double  y,
double  z,
int  component,
int  dimension 
)

Definition at line 365 of file GMLS_Tutorial.hpp.

◆ gradientdivfreeTestSolution_span_basis()

KOKKOS_INLINE_FUNCTION double gradientdivfreeTestSolution_span_basis ( double  x,
double  y,
double  z,
int  input_component,
int  output_component,
int  dimension,
int  exact_order 
)

Definition at line 404 of file GMLS_Tutorial.hpp.

◆ main()

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

Standard GMLS Example.

Exercises GMLS operator evaluation with data over various orders and numbers of targets for targets including point evaluation, Laplacian, divergence, curl, and gradient.

Standard GMLS Example.

Manifold GMLS Example.

Standard GMLS Example.

Exercises GMLS operator evaluation with data over various orders and numbers of targets for targets including point evaluation, Laplace-Beltrami, gradient and gradient on a manifold.

Manifold GMLS Example.

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Setting Up The GMLS Object]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Setting Up The GMLS Object]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]

[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up The Point Cloud]

[Setting Up The Point Cloud]

[Creating The Data]

[Creating The Data]

[Performing Neighbor Search]

[Performing Neighbor Search]

[Setting Up The GMLS Object]

[Setting Up The GMLS Object]

[Apply GMLS Alphas To Data]

[Apply GMLS Alphas To Data]

[Check That Solutions Are Correct]

[Check That Solutions Are Correct]
[Finalize Program]

[Parse Command Line Arguments]

[Setting Up Data]

[Setting Up Data]

[Filtering And Extracting Data]

[Filtering Data]

[Checking Filtered And Extracted Data]

[Checking Filtered And Extracted Data]

[Finalize Program]

Definition at line 30 of file GMLS_Device.cpp.

◆ trueDivergence()

KOKKOS_INLINE_FUNCTION double trueDivergence ( double  x,
double  y,
double  z,
int  order,
int  dimension 
)

Definition at line 108 of file GMLS_Tutorial.hpp.

◆ trueGradient()

KOKKOS_INLINE_FUNCTION void trueGradient ( double *  ans,
double  x,
double  y,
double  z,
int  order,
int  dimension 
)
Examples:
GMLS Tutorial.

Definition at line 69 of file GMLS_Tutorial.hpp.

◆ trueHessian()

KOKKOS_INLINE_FUNCTION void trueHessian ( double *  ans,
double  x,
double  y,
double  z,
int  order,
int  dimension 
)

Definition at line 148 of file GMLS_Tutorial.hpp.

◆ trueLaplacian()

KOKKOS_INLINE_FUNCTION double trueLaplacian ( double  x,
double  y,
double  z,
int  order,
int  dimension 
)
Examples:
GMLS Tutorial.

Definition at line 29 of file GMLS_Tutorial.hpp.

◆ trueSolution()

KOKKOS_INLINE_FUNCTION double trueSolution ( double  x,
double  y,
double  z,
int  order,
int  dimension 
)
Examples:
GMLS Tutorial.

Definition at line 14 of file GMLS_Tutorial.hpp.