Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
281e8a57
Commit
281e8a57
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
df2349b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/pluginWindow.cpp
+1
-2
1 addition, 2 deletions
Fltk/pluginWindow.cpp
Mesh/Field.cpp
+6
-6
6 additions, 6 deletions
Mesh/Field.cpp
with
7 additions
and
8 deletions
Fltk/pluginWindow.cpp
+
1
−
2
View file @
281e8a57
...
...
@@ -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
);
std
::
string
help
=
p
->
getHelp
();
ConvertToHTML
(
help
);
help
+=
std
::
string
(
"<p><em>Author: "
)
+
p
->
getAuthor
()
+
"</em>"
;
help
+=
std
::
string
(
"<br><em>Copyright: "
)
+
p
->
getCopyright
()
+
"</em>"
;
help
+=
std
::
string
(
"<p><em>Author(s): "
)
+
p
->
getAuthor
()
+
"</em>"
;
o
->
value
(
help
.
c_str
());
o
->
textfont
(
FL_HELVETICA
);
o
->
textsize
(
FL_NORMAL_SIZE
);
...
...
This diff is collapsed.
Click to expand it.
Mesh/Field.cpp
+
6
−
6
View file @
281e8a57
...
...
@@ -151,11 +151,11 @@ Field *FieldManager::get(int id)
Field
*
FieldManager
::
newField
(
int
id
,
std
::
string
type_name
)
{
if
(
find
(
id
)
!=
end
())
{
Msg
::
Error
(
"Field id %i is already defined
.
"
,
id
);
Msg
::
Error
(
"Field id %i is already defined"
,
id
);
return
0
;
}
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
;
}
Field
*
f
=
(
*
map_type_name
[
type_name
])
();
...
...
@@ -192,7 +192,7 @@ void FieldManager::deleteField(int id)
{
iterator
it
=
find
(
id
);
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
;
}
delete
it
->
second
;
...
...
@@ -614,8 +614,8 @@ public:
}
virtual
std
::
string
getDescription
()
{
return
"F = LCMin if Field[IField] <= DistMin,
"
"F = LCMax if Field[IField] >= DistMax,
"
return
"F = LCMin if Field[IField] <= DistMin,
\n
"
"F = LCMax if Field[IField] >= DistMax,
\n
"
"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
)
...
...
@@ -732,7 +732,7 @@ class GradientField : public Field
(
*
field
)
(
x
,
y
,
z
-
delta
/
2
))
/
delta
;
return
sqrt
(
gx
*
gx
+
gy
*
gy
+
gz
*
gz
);
default:
Msg
::
Error
(
"Field %i : Unknown kind (%i) of gradient
.
"
,
this
->
id
,
Msg
::
Error
(
"Field %i : Unknown kind (%i) of gradient"
,
this
->
id
,
kind
);
return
MAX_LC
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment