[cantera]: adding pure fluid test
This commit is contained in:
parent
86fd453daa
commit
aa02a1a699
6 changed files with 31 additions and 3 deletions
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "kernel/PureFluidPhase.h"
|
#include "PureFluidPhase.h"
|
||||||
#include "kinetics.h"
|
#include "kinetics.h"
|
||||||
#include "kernel/stringUtils.h"
|
#include "stringUtils.h"
|
||||||
|
|
||||||
namespace Cantera {
|
namespace Cantera {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
2011-11-10 15:09 nick
|
2011-11-10 15:09 nick
|
||||||
|
|
||||||
* major overhaul of build system to use GNU autotools
|
* major overhaul of build system to use GNU autotools
|
||||||
|
* make check now supports nearly all tests
|
||||||
|
|
||||||
2008-01-07 15:02 hkmoffa
|
2008-01-07 15:02 hkmoffa
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ AC_OUTPUT(Makefile \
|
||||||
test_problems/negATest/Makefile \
|
test_problems/negATest/Makefile \
|
||||||
test_problems/NASA9poly_test/Makefile \
|
test_problems/NASA9poly_test/Makefile \
|
||||||
test_problems/printUtilUnitTest/Makefile \
|
test_problems/printUtilUnitTest/Makefile \
|
||||||
|
test_problems/pureFluidTest/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 \
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,12 @@
|
||||||
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
|
SUBDIRS += negATest printUtilUnitTest pureFluidTest
|
||||||
|
|
||||||
# skipped:
|
# skipped:
|
||||||
# ck2cti_test
|
# ck2cti_test
|
||||||
# nasa9_reader (uses ck2cti)
|
# nasa9_reader (uses ck2cti)
|
||||||
|
# python
|
||||||
|
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
|
|
||||||
|
|
|
||||||
23
test_problems/pureFluidTest/Makefile.am
Normal file
23
test_problems/pureFluidTest/Makefile.am
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
cc_sources = testPureWater.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 = testPureWater
|
||||||
|
library_includedir = $(INC)
|
||||||
|
|
||||||
|
#-----------------------
|
||||||
|
# Cantera DH graph test
|
||||||
|
#-----------------------
|
||||||
|
|
||||||
|
testPureWater_SOURCES = $(cc_sources)
|
||||||
|
|
||||||
|
TESTS_ENVIRONMENT =
|
||||||
|
TESTS = runtest
|
||||||
|
|
@ -25,9 +25,11 @@ retnStat=$?
|
||||||
if [ $retnStat = "0" ]
|
if [ $retnStat = "0" ]
|
||||||
then
|
then
|
||||||
echo "successful diff comparison on $testName test"
|
echo "successful diff comparison on $testName test"
|
||||||
|
return 0
|
||||||
else
|
else
|
||||||
echo "unsuccessful diff comparison on $testName test"
|
echo "unsuccessful diff comparison on $testName test"
|
||||||
echo "FAILED" > csvCode.txt
|
echo "FAILED" > csvCode.txt
|
||||||
temp_success="0"
|
temp_success="0"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue