| 1 |
IF (TrilinosCouplings_ENABLE_Tpetra) |
| 2 |
|
| 3 |
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) |
| 4 |
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) |
| 5 |
|
| 6 |
TRIBITS_ADD_LIBRARY( |
| 7 |
fenl |
| 8 |
HEADERS HexElement.hpp |
| 9 |
BoxElemFixture.hpp |
| 10 |
BoxElemPart.hpp |
| 11 |
fenl.hpp |
| 12 |
fenl_impl.hpp |
| 13 |
fenl_utils.hpp |
| 14 |
fenl_functors.hpp |
| 15 |
CGSolve.hpp |
| 16 |
BelosSolve.hpp |
| 17 |
SOURCES BoxElemPart.cpp |
| 18 |
fenl_utils.cpp |
| 19 |
TESTONLY |
| 20 |
) |
| 21 |
|
| 22 |
TRIBITS_ADD_EXECUTABLE( |
| 23 |
fenl |
| 24 |
SOURCES main.cpp |
| 25 |
COMM serial mpi |
| 26 |
TESTONLYLIBS fenl |
| 27 |
) |
| 28 |
|
| 29 |
TRIBITS_COPY_FILES_TO_BINARY_DIR(copyFenlFiles |
| 30 |
DEST_FILES fenl.xml |
| 31 |
) |
| 32 |
|
| 33 |
IF( TrilinosCouplings_ENABLE_Stokhos AND |
| 34 |
Stokhos_ENABLE_Sacado AND |
| 35 |
Stokhos_ENABLE_KokkosKernels AND |
| 36 |
Stokhos_ENABLE_Tpetra ) |
| 37 |
|
| 38 |
# The ensemble version requires the PCE scalar type too since it builds |
| 39 |
# a PCE through ensembles. |
| 40 |
IF(Stokhos_ENABLE_Ensemble_Scalar_Type AND |
| 41 |
Stokhos_ENABLE_PCE_Scalar_Type) |
| 42 |
TRIBITS_ADD_EXECUTABLE( |
| 43 |
fenl_ensemble |
| 44 |
SOURCES fenl_ensemble.hpp SampleGrouping.hpp main_ensemble.cpp |
| 45 |
VPS.hpp VPS.cpp VPS_ensemble.hpp VPS_ensemble.cpp |
| 46 |
COMM serial mpi |
| 47 |
TESTONLYLIBS fenl |
| 48 |
) |
| 49 |
|
| 50 |
IF(TrilinosCouplings_ENABLE_Belos AND TrilinosCouplings_ENABLE_MueLu) |
| 51 |
TRIBITS_ADD_TEST( |
| 52 |
fenl_ensemble |
| 53 |
NAME "fenl_ensemble_8x8x8_belos_muelu" |
| 54 |
COMM serial mpi |
| 55 |
#NUM_MPI_PROCS 4 |
| 56 |
ARGS "--fixture=8x8x8 --belos --muelu --ensemble=${Stokhos_ETI_Default_Ensemble_Size} --print-its --unit-test --test-mean=2.0599472 --test-std-dev=8.9771555e-3" |
| 57 |
PASS_REGULAR_EXPRESSION "Test Passed" |
| 58 |
) |
| 59 |
ENDIF() |
| 60 |
|
| 61 |
ENDIF() |
| 62 |
|
| 63 |
IF(Stokhos_ENABLE_PCE_Scalar_Type) |
| 64 |
TRIBITS_ADD_EXECUTABLE( |
| 65 |
fenl_pce |
| 66 |
SOURCES fenl_functors_pce.hpp fenl_pce.hpp main_pce.cpp |
| 67 |
COMM serial mpi |
| 68 |
TESTONLYLIBS fenl |
| 69 |
) |
| 70 |
|
| 71 |
IF(TrilinosCouplings_ENABLE_Belos AND TrilinosCouplings_ENABLE_MueLu) |
| 72 |
TRIBITS_ADD_TEST( |
| 73 |
fenl_pce |
| 74 |
NAME "fenl_pce_8x8x8_belos_muelu_mean_based" |
| 75 |
COMM serial mpi |
| 76 |
#NUM_MPI_PROCS 4 |
| 77 |
ARGS "--fixture=8x8x8 --belos --muelu --mean-based --print-its --unit-test --test-mean=2.0599472 --test-std-dev=8.9771555e-3" |
| 78 |
PASS_REGULAR_EXPRESSION "Test Passed" |
| 79 |
) |
| 80 |
ENDIF() |
| 81 |
ENDIF() |
| 82 |
|
| 83 |
ENDIF() |
| 84 |
|
| 85 |
ENDIF () |