[cantera]: adding all cantera tests in surfSolverTest

This commit is contained in:
Nicholas Malaya 2012-02-07 17:58:44 +00:00
parent da16edb98b
commit 71e9c26375
7 changed files with 41 additions and 10 deletions

View file

@ -108,6 +108,7 @@ AC_OUTPUT(Makefile \
test_problems/silane_equil/Makefile \ test_problems/silane_equil/Makefile \
test_problems/spectroscopy/Makefile \ test_problems/spectroscopy/Makefile \
test_problems/surfkin/Makefile \ test_problems/surfkin/Makefile \
test_problems/surfSolverTest/Makefile \
test_problems/cathermo/Makefile \ test_problems/cathermo/Makefile \
test_problems/cathermo/DH_graph_1/Makefile \ test_problems/cathermo/DH_graph_1/Makefile \
test_problems/cathermo/DH_graph_acommon/Makefile \ test_problems/cathermo/DH_graph_acommon/Makefile \

View file

@ -1,15 +1,13 @@
#SUBDIRS = VPsilance_test \ #SUBDIRS = VPsilance_test VCSnonideal
diamondSurf_dupl surfSolverTest
SUBDIRS = cathermo mixGasTransport ChemEquil_gri_matrix ChemEquil_gri_pairs SUBDIRS = cathermo mixGasTransport ChemEquil_gri_matrix ChemEquil_gri_pairs
SUBDIRS += ChemEquil_ionizedGas ChemEquil_red1 CpJump cxx_ex diamondSurf SUBDIRS += ChemEquil_ionizedGas ChemEquil_red1 CpJump cxx_ex diamondSurf
SUBDIRS += diamondSurf_dupl fracCoeff multiGasTransport NASA9poly_test SUBDIRS += diamondSurf_dupl fracCoeff multiGasTransport NASA9poly_test
SUBDIRS += negATest printUtilUnitTest pureFluidTest silane_equil SUBDIRS += negATest printUtilUnitTest pureFluidTest silane_equil
SUBDIRS += spectroscopy surfkin SUBDIRS += spectroscopy surfkin surfSolverTest
# skipped (uses ck2cti or python):
# skipped:
# ck2cti_test # ck2cti_test
# nasa9_reader (uses ck2cti) # nasa9_reader (uses ck2cti)
# python # python

View 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

View file

@ -31,19 +31,22 @@ then
if [ $retnStat_txt != "0" ] if [ $retnStat_txt != "0" ]
then then
echo " But, text output files have differences. See diff_out.txt" echo " But, text output files have differences. See diff_out.txt"
return 1
fi fi
else else
echo "Unsuccessful test comparison on "`pwd` " test" echo "Unsuccessful test comparison on "`pwd` " test"
if test $retnStat_csv != "0" if test $retnStat_csv != "0"
then then
echo " results files are different - see diff_csv.txt" echo " results files are different - see diff_csv.txt"
return 1
fi fi
if test $retnStat_txt != "0" if test $retnStat_txt != "0"
then then
echo " And, text output files have differences. See diff_out.txt" echo " And, text output files have differences. See diff_out.txt"
return 1
fi fi
fi fi
return 0

View file

@ -31,17 +31,21 @@ then
if [ $retnStat_txt != "0" ] if [ $retnStat_txt != "0" ]
then then
echo " But, text output files have differences. See diff_2out.txt" echo " But, text output files have differences. See diff_2out.txt"
return 1
fi fi
else else
echo "Unsuccessful test comparison on "`pwd` " test" echo "Unsuccessful test comparison on "`pwd` " test"
if test $retnStat_csv != "0" if test $retnStat_csv != "0"
then then
echo " results files are different - see diff_2csv.txt" echo " results files are different - see diff_2csv.txt"
return 1
fi fi
if test $retnStat_txt != "0" if test $retnStat_txt != "0"
then then
echo " And, text output files have differences. See diff_2out.txt" echo " And, text output files have differences. See diff_2out.txt"
return 1
fi fi
fi fi
return 0

View file

@ -38,8 +38,8 @@ static void printUsage()
#include "Interface.h" #include "Interface.h"
#include "kinetics.h" #include "kinetics.h"
#include "kernel/ImplicitSurfChem.h" #include "ImplicitSurfChem.h"
#include "kernel/solveSP.h" #include "solveSP.h"
using namespace Cantera; using namespace Cantera;

View file

@ -37,8 +37,8 @@ static void printUsage()
#include "Interface.h" #include "Interface.h"
#include "kinetics.h" #include "kinetics.h"
#include "kernel/ImplicitSurfChem.h" #include "ImplicitSurfChem.h"
#include "kernel/solveSP.h" #include "solveSP.h"
using namespace Cantera; using namespace Cantera;