-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intrepid2: added tests for HGRAD basis
- Loading branch information
Showing
65 changed files
with
5,404 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
packages/intrepid2/unit-test/Discretization/Basis/HGRAD_HEX_C1_FEM/eti/test_03_ETI.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// @HEADER | ||
// ***************************************************************************** | ||
// Intrepid2 Package | ||
// | ||
// Copyright 2007 NTESS and the Intrepid2 contributors. | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// ***************************************************************************** | ||
// @HEADER | ||
|
||
/** \file test_03.cpp | ||
\brief Unit test of Intrepid2::Basis_HGRAD_HEX_C1_FEM team-level getValues. | ||
\author Kyungjoo Kim | ||
*/ | ||
|
||
#include "Kokkos_Core.hpp" | ||
|
||
#define ETI_SACADO @ETI_SACADO@ | ||
#if (ETI_SACADO != 0) /// SACADO | ||
#include "Kokkos_ViewFactory.hpp" | ||
#include "Sacado.hpp" | ||
#endif | ||
|
||
#if (ETI_SACADO == 0) /// double double | ||
#define ConstructWithLabelOutView(obj, ...) obj(#obj, __VA_ARGS__) | ||
#define ConstructWithLabelPointView(obj, ...) obj(#obj, __VA_ARGS__) | ||
#elif (ETI_SACADO == 11 /* SFAD SFAD */ || ETI_SACADO == 33 /* DFAD DFAD */) | ||
constexpr int num_deriv = 3; | ||
#define ConstructWithLabelOutView(obj, ...) obj(#obj, __VA_ARGS__, num_deriv+1) | ||
#define ConstructWithLabelPointView(obj, ...) obj(#obj, __VA_ARGS__, num_deriv+1) | ||
#elif (ETI_SACADO == 23) | ||
constexpr int num_deriv = 3; | ||
#define ConstructWithLabelOutView(obj, ...) obj(#obj, __VA_ARGS__, num_deriv+1) | ||
#define ConstructWithLabelPointView(obj, ...) obj(#obj, __VA_ARGS__, num_deriv+1) | ||
#elif (ETI_SACADO == 20) | ||
constexpr int num_deriv = 2; | ||
#define ConstructWithLabelOutView(obj, ...) obj(#obj, __VA_ARGS__, num_deriv+1) | ||
#define ConstructWithLabelPointView(obj, ...) obj(#obj, __VA_ARGS__) | ||
#endif | ||
|
||
#include "test_03.hpp" | ||
|
||
int main(int argc, char *argv[]) { | ||
|
||
const bool verbose = (argc-1) > 0; | ||
Kokkos::initialize(); | ||
|
||
Intrepid2::Test::HGRAD_HEX_C1_FEM_Test03<@ETI_VALUETYPE@,@ETI_DEVICE@>(verbose); | ||
|
||
Kokkos::finalize(); | ||
return 0; | ||
} | ||
|
Oops, something went wrong.