antioch-0.4.0
Functions
kinetics_theory_viscosity_vec_unit.C File Reference
#include "antioch_config.h"
#include <valarray>
#include "Eigen/Dense"
#include "metaphysicl/numberarray.h"
#include "vexcl/vexcl.hpp"
#include "antioch/eigen_utils_decl.h"
#include "antioch/metaphysicl_utils_decl.h"
#include "antioch/valarray_utils_decl.h"
#include "antioch/vexcl_utils_decl.h"
#include "antioch/vector_utils_decl.h"
#include "antioch/kinetics_theory_viscosity.h"
#include "antioch/gsl_spliner.h"
#include "antioch/eigen_utils.h"
#include "antioch/metaphysicl_utils.h"
#include "antioch/valarray_utils.h"
#include "antioch/vexcl_utils.h"
#include "antioch/vector_utils.h"
#include "antioch/physical_constants.h"
#include <cmath>
#include <limits>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 148 of file kinetics_theory_viscosity_vec_unit.C.

References vectester().

149 {
150  int returnval = 0;
151 
152 #ifdef ANTIOCH_HAVE_GSL
153 
154  returnval = returnval ||
155  vectester (std::valarray<float>(2*ANTIOCH_N_TUPLES), "valarray<float>");
156  returnval = returnval ||
157  vectester (std::valarray<double>(2*ANTIOCH_N_TUPLES), "valarray<double>");
158  returnval = returnval ||
159  vectester (std::valarray<long double>(2*ANTIOCH_N_TUPLES), "valarray<ld>");
160 #ifdef ANTIOCH_HAVE_EIGEN
161  returnval = returnval ||
162  vectester (Eigen::Array<float, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXf");
163  returnval = returnval ||
164  vectester (Eigen::Array<double, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXd");
165  returnval = returnval ||
166  vectester (Eigen::Array<long double, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXld");
167 #endif
168 #ifdef ANTIOCH_HAVE_METAPHYSICL
169  returnval = returnval ||
170  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, float> (0), "NumberArray<float>");
171  returnval = returnval ||
172  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, double> (0), "NumberArray<double>");
173  returnval = returnval ||
174  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, long double> (0), "NumberArray<ld>");
175 #endif
176 #ifdef ANTIOCH_HAVE_VEXCL
177  vex::Context ctx_f (vex::Filter::All);
178  if (!ctx_f.empty())
179  returnval = returnval ||
180  vectester (vex::vector<float> (ctx_f, 2*ANTIOCH_N_TUPLES), "vex::vector<float>");
181 
182  vex::Context ctx_d (vex::Filter::DoublePrecision);
183  if (!ctx_d.empty())
184  returnval = returnval ||
185  vectester (vex::vector<double> (ctx_d, 2*ANTIOCH_N_TUPLES), "vex::vector<double>");
186 #endif
187 
188 #ifdef ANTIOCH_HAVE_GRVY
189  gt.Finalize();
190  gt.Summarize();
191 #endif
192 
193 #else // ANTIOCH_HAVE_GSL
194  // 77 return code tells Automake we skipped this.
195  returnval = 77;
196 #endif
197 
198  return returnval;
199 }
int vectester(const PairScalars &example, const std::string &testname)

Generated on Thu Jul 7 2016 11:09:47 for antioch-0.4.0 by  doxygen 1.8.8