Skip to content

Commit

Permalink
reinstate tabel_test and update radDecay ref soln
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed Oct 15, 2024
1 parent 5f781a4 commit 0af912b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ test_grad_LDADD += $(HDF5_LIBS)
test_grad_LDADD += $(GRVY_LIBS)

#check_PROGRAMS += test_table
#test_table_SOURCES = test_table.cpp
#test_table_LDADD = ../src/libtps.la
#test_table_LDADD += $(HDF5_LIBS)
#test_table_LDADD += $(GRVY_LIBS)
test_table_SOURCES = test_table.cpp
test_table_LDADD = ../src/libtps.la
test_table_LDADD += $(HDF5_LIBS)
test_table_LDADD += $(GRVY_LIBS)

check_PROGRAMS += test_lte_mixture
test_lte_mixture_SOURCES = test_lte_mixture.cpp
Expand Down
Binary file modified test/ref_solns/radDecay/restart_output.sol.h5
Binary file not shown.
3 changes: 2 additions & 1 deletion test/test_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ void testTableInterpolator1D(TPS::Tps &tps, int rank) {
double xtest = refValues(k, 0);
double fref = refValues(k, 1);
double ftest[gpudata::MAXREACTIONS];
chem->computeForwardRateCoeffs(xtest, xtest, k, ftest);
double ndummy[gpudata::MAXREACTIONS];
chem->computeForwardRateCoeffs(ndummy, xtest, xtest, k, ftest);
double error = abs((fref - ftest[0]) / fref);
if (error >= scalarErrorThreshold) {
grvy_printf(GRVY_ERROR, "Rank %d - %.5E: %.5E\n", rank, xtest, abs((fref - ftest[0]) / fref));
Expand Down

0 comments on commit 0af912b

Please sign in to comment.