-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff99bf7
commit 6317d50
Showing
6 changed files
with
209 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2023 Lawrence Livermore National Security, LLC. See the top-level LICENSE file for details. | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
#include<gtest/gtest.h> | ||
#include "mms_suite.hpp" | ||
|
||
using namespace std; | ||
using namespace mfem; | ||
using namespace mms::unsteady_ns; | ||
|
||
/** | ||
* Simple smoke test to make sure Google Test is properly linked | ||
*/ | ||
TEST(GoogleTestFramework, GoogleTestFrameworkFound) { | ||
SUCCEED(); | ||
} | ||
|
||
TEST(DDSerialTest, Test_convergence) | ||
{ | ||
config = InputParser("inputs/dd_mms.yml"); | ||
config.dict_["navier-stokes"]["operator-type"] = "lf"; | ||
config.dict_["discretization"]["order"] = 1; | ||
config.dict_["manufactured_solution"]["number_of_refinement"] = 3; | ||
config.dict_["navier-stokes"]["timestep_size"] = 0.01; | ||
config.dict_["navier-stokes"]["number_of_timesteps"] = 50; | ||
CheckConvergence(); | ||
|
||
return; | ||
} | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
MPI_Init(&argc, &argv); | ||
::testing::InitGoogleTest(&argc, argv); | ||
int result = RUN_ALL_TESTS(); | ||
MPI_Finalize(); | ||
return result; | ||
} |