5 std::stringstream errormsg;
6 errormsg <<
"THERE SEEMS TO BE SOMETHING WRONG WITH YOUR FIELD MAP '" <<
Filename_m <<
"'.\n"
7 <<
"Could not determine the file type.\n"
8 <<
"Please check the section about field maps in the user manual.\n";
9 std::string errormsg_str =
typeset_msg(errormsg.str(),
"error");
10 *ippl::Warn << errormsg_str <<
"\n" << endl;
12 if (ippl::Comm->rank() == 0) {
13 std::ofstream omsg(
"errormsg.txt", std::ios_base::app);
14 omsg << errormsg_str << std::endl;
46 double& ,
double& ,
double& ,
double& ,
double& ,
57 static double dummy = 0.0;
ippl::Vector< T, Dim > Vector_t
void disableFieldmapWarning()
static std::string typeset_msg(const std::string &msg, const std::string &title)
virtual void getInfo(Inform *)
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
virtual void setFrequency(double freq)
FMDummy(std::string aFilename)
virtual double getFrequency() const
virtual bool getFieldDerivative(const Vector_t< double, 3 > &R, Vector_t< double, 3 > &E, Vector_t< double, 3 > &B, const DiffDirection &dir) const
virtual bool getFieldstrength(const Vector_t< double, 3 > &R, Vector_t< double, 3 > &E, Vector_t< double, 3 > &B) const