antioch-0.4.0
Functions
molecular_binary_diffusion_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/molecular_binary_diffusion.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 <cmath>
#include <limits>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 209 of file molecular_binary_diffusion_vec_unit.C.

References vectester().

210 {
211  int returnval = 0;
212 
213 #ifdef ANTIOCH_HAVE_GSL
214 
215  returnval = returnval ||
216  vectester (std::valarray<float>(2*ANTIOCH_N_TUPLES), "valarray<float>");
217  returnval = returnval ||
218  vectester (std::valarray<double>(2*ANTIOCH_N_TUPLES), "valarray<double>");
219  returnval = returnval ||
220  vectester (std::valarray<long double>(2*ANTIOCH_N_TUPLES), "valarray<ld>");
221 #ifdef ANTIOCH_HAVE_EIGEN
222  returnval = returnval ||
223  vectester (Eigen::Array<float, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXf");
224  returnval = returnval ||
225  vectester (Eigen::Array<double, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXd");
226  returnval = returnval ||
227  vectester (Eigen::Array<long double, 2*ANTIOCH_N_TUPLES, 1>(), "Eigen::ArrayXld");
228 #endif
229 #ifdef ANTIOCH_HAVE_METAPHYSICL
230  returnval = returnval ||
231  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, float> (0), "NumberArray<float>");
232  returnval = returnval ||
233  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, double> (0), "NumberArray<double>");
234  returnval = returnval ||
235  vectester (MetaPhysicL::NumberArray<2*ANTIOCH_N_TUPLES, long double> (0), "NumberArray<ld>");
236 #endif
237 #ifdef ANTIOCH_HAVE_VEXCL
238  vex::Context ctx_f (vex::Filter::All);
239  if (!ctx_f.empty())
240  returnval = returnval ||
241  vectester (vex::vector<float> (ctx_f, 2*ANTIOCH_N_TUPLES), "vex::vector<float>");
242 
243  vex::Context ctx_d (vex::Filter::DoublePrecision);
244  if (!ctx_d.empty())
245  returnval = returnval ||
246  vectester (vex::vector<double> (ctx_d, 2*ANTIOCH_N_TUPLES), "vex::vector<double>");
247 #endif
248 
249 #ifdef ANTIOCH_HAVE_GRVY
250  gt.Finalize();
251  gt.Summarize();
252 #endif
253 
254 #else // ANTIOCH_HAVE_GSL
255  // 77 return code tells Automake we skipped this.
256  returnval = 77;
257 #endif
258 
259  return returnval;
260 }
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