/** * \file utils.hpp * \author Dhairya Malhotra, dhairya.malhotra@gmail.com * \date 1-1-2011 */ #ifndef _UTILS_ #define _UTILS_ #include #include #include #include template void CheckFMMOutput(pvfmm::FMM_Tree* mytree, const pvfmm::Kernel* mykernel); template struct TestFn{ typedef void (*Fn_t)(Real_t* c, int n, Real_t* out); }; template void CheckChebOutput(FMMTree_t* mytree, typename TestFn::Fn_t fn_poten, int fn_dof, std::string t_name=""); enum DistribType{ UnifGrid, RandUnif, RandGaus, RandElps, RandSphr }; template std::vector point_distrib(DistribType, size_t N, MPI_Comm comm); void commandline_option_start(int argc, char** argv, const char* help_text=NULL); const char* commandline_option(int argc, char** argv, const char* opt, const char* def_val, bool required, const char* err_msg); void commandline_option_end(int argc, char** argv); #include #endif