Skip to content
Snippets Groups Projects
Commit 281e8a57 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent df2349b7
No related branches found
No related tags found
No related merge requests found
...@@ -285,8 +285,7 @@ void pluginWindow::_createDialogBox(GMSH_Plugin *p, int x, int y, ...@@ -285,8 +285,7 @@ void pluginWindow::_createDialogBox(GMSH_Plugin *p, int x, int y,
(x + WB, y + top + BH + WB, width - 2 * WB, height - top - 2 * BH - 3 * WB); (x + WB, y + top + BH + WB, width - 2 * WB, height - top - 2 * BH - 3 * WB);
std::string help = p->getHelp(); std::string help = p->getHelp();
ConvertToHTML(help); ConvertToHTML(help);
help += std::string("<p><em>Author: ") + p->getAuthor() + "</em>"; help += std::string("<p><em>Author(s): ") + p->getAuthor() + "</em>";
help += std::string("<br><em>Copyright: ") + p->getCopyright() + "</em>";
o->value(help.c_str()); o->value(help.c_str());
o->textfont(FL_HELVETICA); o->textfont(FL_HELVETICA);
o->textsize(FL_NORMAL_SIZE); o->textsize(FL_NORMAL_SIZE);
......
...@@ -151,11 +151,11 @@ Field *FieldManager::get(int id) ...@@ -151,11 +151,11 @@ Field *FieldManager::get(int id)
Field *FieldManager::newField(int id, std::string type_name) Field *FieldManager::newField(int id, std::string type_name)
{ {
if(find(id) != end()) { if(find(id) != end()) {
Msg::Error("Field id %i is already defined.", id); Msg::Error("Field id %i is already defined", id);
return 0; return 0;
} }
if(map_type_name.find(type_name) == map_type_name.end()) { if(map_type_name.find(type_name) == map_type_name.end()) {
Msg::Error("Unknown field type \"%s\".", type_name.c_str()); Msg::Error("Unknown field type \"%s\"", type_name.c_str());
return 0; return 0;
} }
Field *f = (*map_type_name[type_name]) (); Field *f = (*map_type_name[type_name]) ();
...@@ -192,7 +192,7 @@ void FieldManager::deleteField(int id) ...@@ -192,7 +192,7 @@ void FieldManager::deleteField(int id)
{ {
iterator it = find(id); iterator it = find(id);
if(it == end()) { if(it == end()) {
Msg::Error("Cannot delete field id %i, it does not exist.", id); Msg::Error("Cannot delete field id %i, it does not exist", id);
return; return;
} }
delete it->second; delete it->second;
...@@ -614,8 +614,8 @@ public: ...@@ -614,8 +614,8 @@ public:
} }
virtual std::string getDescription() virtual std::string getDescription()
{ {
return "F = LCMin if Field[IField] <= DistMin, " return "F = LCMin if Field[IField] <= DistMin,\n"
"F = LCMax if Field[IField] >= DistMax, " "F = LCMax if Field[IField] >= DistMax,\n"
"F = interpolation between LcMin and LcMax if DistMin < Field[IField] < DistMax"; "F = interpolation between LcMin and LcMax if DistMin < Field[IField] < DistMax";
} }
virtual void operator() (double x, double y, double z, SMetric3 &metr, GEntity *ge=0) virtual void operator() (double x, double y, double z, SMetric3 &metr, GEntity *ge=0)
...@@ -732,7 +732,7 @@ class GradientField : public Field ...@@ -732,7 +732,7 @@ class GradientField : public Field
(*field) (x, y, z - delta / 2)) / delta; (*field) (x, y, z - delta / 2)) / delta;
return sqrt(gx * gx + gy * gy + gz * gz); return sqrt(gx * gx + gy * gy + gz * gz);
default: default:
Msg::Error("Field %i : Unknown kind (%i) of gradient.", this->id, Msg::Error("Field %i : Unknown kind (%i) of gradient", this->id,
kind); kind);
return MAX_LC; return MAX_LC;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment