Skip to content

Commit 8c69bb3

Browse files
committed
Add test: GRM SMA LWE 2D vs 1D reference test
1 parent 3741ce8 commit 8c69bb3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/ColumnModel2D.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,16 +418,18 @@ TEST_CASE("Column_2D as GRM numerical reference test for a three zone linear bin
418418
cadet::test::column::testReferenceBenchmark(modelFilePath, refFilePath, "000", absTol, relTol, disc, false, simDataStride);
419419
}
420420

421-
TEST_CASE("Column_2D as GRM without radial variation SMA LWE numerical 1D reference test", "[GRM2D],[DG],[DG2D],[Simulation],[Reference],[Analytical],[testCI]")
421+
TEST_CASE("Column_2D as GRM without radial variation SMA LWE numerical 1D reference test", "[GRM2D],[DG],[DG2D],[Simulation],[Reference],[Analytical],[CI]")
422422
{
423423
const std::string& modelFilePath = std::string("/data/model_COL2D_GRM2Zone_noRadVar_SMA_LWE.json");
424424
const std::string refFilePath = std::string("/data/ref_GRM_reqSMA_4comp_sensbenchmark1_exIntDG_P3Z8_GSM_parP3parZ1.h5");
425-
const std::vector<double> absTol = { 1E-10 };
426-
const std::vector<double> relTol = { 1E-6 };
425+
const std::vector<double> absTol = { 5E-6 };
426+
const std::vector<double> relTol = { 5E-2 };
427427

428428
cadet::test::column::DGParamsNewIF disc(1, 3, 8, 3, 1, 3, 2); // (int exact, int polyDeg, int elem, int parPolyDeg, int parNelem, int radPolyDeg, int radNelem)
429-
const int simDataStride = 12; // number of radial ports
430-
cadet::test::column::testReferenceBenchmark(modelFilePath, refFilePath, "000", absTol, relTol, disc, false, simDataStride);
429+
const int simDataStride = 8; // number of radial ports
430+
const int outletDataStride = 4; // number of components
431+
const int outletDataOffset = 1; // offset to component to be compared
432+
cadet::test::column::testReferenceBenchmark(modelFilePath, refFilePath, "000", absTol, relTol, disc, false, simDataStride, outletDataStride, outletDataOffset);
431433
}
432434

433435
TEST_CASE("Column_2D as GRM sensitivity Jacobians", "[Column_2D],[UnitOp],[Sensitivity],[CI]")

0 commit comments

Comments
 (0)