[cantera]: adding cxx example for regression testing
This commit is contained in:
parent
0308bf9ab6
commit
4b4fb7f3e1
5 changed files with 24 additions and 17 deletions
|
|
@ -1,18 +1,25 @@
|
|||
h_sources = example_utils.h
|
||||
|
||||
cc_sources = equil_example1.cpp examples.cpp flame1.cpp kinetics_example1.cpp \
|
||||
kinetics_example2.cpp kinetics_example3.cpp rxnpath_example1.cpp \
|
||||
transport_example1.cpp transport_example2.cpp
|
||||
cc_sources = examples.cpp kinetics_example1.cpp kinetics_example2.cpp \
|
||||
kinetics_example3.cpp equil_example1.cpp \
|
||||
transport_example1.cpp transport_example2.cpp \
|
||||
rxnpath_example1.cpp
|
||||
|
||||
INCLUDES = -I../base -I../../build/include/
|
||||
AM_CXXFLAGS = $(INCLUDES)
|
||||
LINK = -lkinetics -ltransport -lthermo -lctnumerics
|
||||
LINK += -lctbase -ltpx -lctmath -lconverters
|
||||
# -luser -lcvode -lctlapack -lctblas -lctf2c -lctcxx -luser -lstdc++
|
||||
|
||||
bin_PROGRAMS = cxx_examples
|
||||
library_includedir = $(includedir)
|
||||
LIBS = -L$(top_builddir)/build/lib/ $(LINK)
|
||||
|
||||
INCLUDES = -I../base -I$(top_builddir)/build/include/ -I$(top_builddir)/build/include/cantera
|
||||
AM_CXXFLAGS = $(INCLUDES)
|
||||
|
||||
bin_PROGRAMS = cxx_examples
|
||||
library_includedir = $(includedir)
|
||||
|
||||
#-----------------------
|
||||
# Cantera cxx examples
|
||||
#-----------------------
|
||||
|
||||
cxx_examples_LDFLAGS = $(all_libraries) -release $(GENERIC_RELEASE)
|
||||
cxx_examples_SOURCES = $(cc_sources) $(h_sources)
|
||||
cxx_examples_LDFLAGS = $(all_libraries) -release $(GENERIC_RELEASE)
|
||||
cxx_examples_SOURCES = $(cc_sources) $(h_sources)
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <Cantera.h>
|
||||
#include <time.h>
|
||||
#include "example_utils.h"
|
||||
#include <cantera/equilibrium.h>
|
||||
#include <equilibrium.h>
|
||||
|
||||
#include <cantera/IdealGasMix.h>
|
||||
#include <IdealGasMix.h>
|
||||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef CT_EXAMPLE_UTILS_H
|
||||
#define CT_EXAMPLE_UTILS_H
|
||||
|
||||
#include <cantera/kernel/Array.h>
|
||||
#include <cantera/kernel/plots.h>
|
||||
#include <kernel/Array.h>
|
||||
#include <kernel/plots.h>
|
||||
|
||||
using namespace Cantera;
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
#include <cantera/Cantera.h>
|
||||
#include <Cantera.h>
|
||||
using namespace Cantera;
|
||||
using namespace std;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "/Applications/Cantera/include/cantera/Cantera.h"
|
||||
#include "cantera/IdealGasMix.h"
|
||||
#include "cantera/transport.h"
|
||||
#include "Cantera.h"
|
||||
#include "IdealGasMix.h"
|
||||
#include "transport.h"
|
||||
|
||||
int main() {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue