[cantera]: adding all cantera tests in surfSolverTest
This commit is contained in:
parent
da16edb98b
commit
71e9c26375
7 changed files with 41 additions and 10 deletions
|
|
@ -108,6 +108,7 @@ AC_OUTPUT(Makefile \
|
|||
test_problems/silane_equil/Makefile \
|
||||
test_problems/spectroscopy/Makefile \
|
||||
test_problems/surfkin/Makefile \
|
||||
test_problems/surfSolverTest/Makefile \
|
||||
test_problems/cathermo/Makefile \
|
||||
test_problems/cathermo/DH_graph_1/Makefile \
|
||||
test_problems/cathermo/DH_graph_acommon/Makefile \
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
|
||||
#SUBDIRS = VPsilance_test \
|
||||
diamondSurf_dupl surfSolverTest
|
||||
#SUBDIRS = VPsilance_test VCSnonideal
|
||||
|
||||
SUBDIRS = cathermo mixGasTransport ChemEquil_gri_matrix ChemEquil_gri_pairs
|
||||
SUBDIRS += ChemEquil_ionizedGas ChemEquil_red1 CpJump cxx_ex diamondSurf
|
||||
SUBDIRS += diamondSurf_dupl fracCoeff multiGasTransport NASA9poly_test
|
||||
SUBDIRS += negATest printUtilUnitTest pureFluidTest silane_equil
|
||||
SUBDIRS += spectroscopy surfkin
|
||||
SUBDIRS += spectroscopy surfkin surfSolverTest
|
||||
|
||||
|
||||
# skipped:
|
||||
# skipped (uses ck2cti or python):
|
||||
# ck2cti_test
|
||||
# nasa9_reader (uses ck2cti)
|
||||
# python
|
||||
|
|
|
|||
25
test_problems/surfSolverTest/Makefile.am
Normal file
25
test_problems/surfSolverTest/Makefile.am
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
cc_sources = surfaceSolver.cpp
|
||||
cc2_sources = surfaceSolver2.cpp
|
||||
|
||||
INC = -I. -I$(top_builddir)/build/include/
|
||||
AM_CPPFLAGS = $(INC)
|
||||
AM_CXXFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
LINK = -luser -loneD -lzeroD -lequil -lkinetics -ltransport -lthermo
|
||||
LINK += -lctnumerics -lctmath -ltpx -lctspectra -lconverters -lctbase -lcvode
|
||||
LINK += -lctlapack -lctblas -lctf2c -lctcxx -lm -lctf2c -lstdc++
|
||||
AM_LDFLAGS = -L$(top_builddir)/build/lib/
|
||||
LIBS = $(LINK)
|
||||
|
||||
bin_PROGRAMS = surfaceSolver surfaceSolver2
|
||||
library_includedir = $(INC)
|
||||
|
||||
#-----------------------
|
||||
# Cantera DH graph test
|
||||
#-----------------------
|
||||
|
||||
surfaceSolver_SOURCES = $(cc_sources)
|
||||
surfaceSolver2_SOURCES = $(cc2_sources)
|
||||
|
||||
TESTS_ENVIRONMENT =
|
||||
TESTS = runtest runtest2
|
||||
|
|
@ -31,19 +31,22 @@ then
|
|||
if [ $retnStat_txt != "0" ]
|
||||
then
|
||||
echo " But, text output files have differences. See diff_out.txt"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
echo "Unsuccessful test comparison on "`pwd` " test"
|
||||
if test $retnStat_csv != "0"
|
||||
then
|
||||
echo " results files are different - see diff_csv.txt"
|
||||
return 1
|
||||
fi
|
||||
if test $retnStat_txt != "0"
|
||||
then
|
||||
echo " And, text output files have differences. See diff_out.txt"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,17 +31,21 @@ then
|
|||
if [ $retnStat_txt != "0" ]
|
||||
then
|
||||
echo " But, text output files have differences. See diff_2out.txt"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
echo "Unsuccessful test comparison on "`pwd` " test"
|
||||
if test $retnStat_csv != "0"
|
||||
then
|
||||
echo " results files are different - see diff_2csv.txt"
|
||||
return 1
|
||||
fi
|
||||
if test $retnStat_txt != "0"
|
||||
then
|
||||
echo " And, text output files have differences. See diff_2out.txt"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ static void printUsage()
|
|||
#include "Interface.h"
|
||||
|
||||
#include "kinetics.h"
|
||||
#include "kernel/ImplicitSurfChem.h"
|
||||
#include "kernel/solveSP.h"
|
||||
#include "ImplicitSurfChem.h"
|
||||
#include "solveSP.h"
|
||||
|
||||
using namespace Cantera;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ static void printUsage()
|
|||
#include "Interface.h"
|
||||
|
||||
#include "kinetics.h"
|
||||
#include "kernel/ImplicitSurfChem.h"
|
||||
#include "kernel/solveSP.h"
|
||||
#include "ImplicitSurfChem.h"
|
||||
#include "solveSP.h"
|
||||
|
||||
using namespace Cantera;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue