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
8d27813b
Commit
8d27813b
authored
13 years ago
by
Francois Henrotte
Browse files
Options
Downloads
Patches
Plain Diff
modifs pour les metamodeles ONELAB
parent
1560132f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/onelabWindow.cpp
+41
-6
41 additions, 6 deletions
Fltk/onelabWindow.cpp
with
41 additions
and
6 deletions
Fltk/onelabWindow.cpp
+
41
−
6
View file @
8d27813b
...
...
@@ -186,6 +186,7 @@ bool onelab::localNetworkClient::run(const std::string &what)
break
;
case
GmshSocket
::
GMSH_PARAMETER_QUERY
:
{
std
::
cout
<<
"FHF Message="
<<
message
<<
std
::
endl
;
std
::
string
version
,
type
,
name
,
reply
;
onelab
::
parameter
::
getInfoFromChar
(
message
,
version
,
type
,
name
);
if
(
type
==
"number"
){
...
...
@@ -209,6 +210,33 @@ bool onelab::localNetworkClient::run(const std::string &what)
}
}
break
;
case
GmshSocket
::
GMSH_PARAM_QUERY_ALL
:
{
std
::
string
version
,
type
,
name
,
reply
;
onelab
::
parameter
::
getInfoFromChar
(
message
,
version
,
type
,
name
);
if
(
type
==
"number"
){
std
::
vector
<
onelab
::
number
>
numbers
;
get
(
numbers
,
""
);
for
(
std
::
vector
<
onelab
::
number
>::
iterator
it
=
numbers
.
begin
();
it
!=
numbers
.
end
();
it
++
){
reply
=
(
*
it
).
toChar
();
server
->
SendMessage
(
GmshSocket
::
GMSH_PARAM_QUERY_ALL
,
reply
.
size
(),
&
reply
[
0
]);
}
server
->
SendMessage
(
GmshSocket
::
GMSH_PARAM_QUERY_END
,
reply
.
size
(),
&
reply
[
0
]);
}
else
if
(
type
==
"string"
){
std
::
vector
<
onelab
::
string
>
strings
;
get
(
strings
,
""
);
for
(
std
::
vector
<
onelab
::
string
>::
iterator
it
=
strings
.
begin
();
it
!=
strings
.
end
();
it
++
){
reply
=
(
*
it
).
toChar
();
server
->
SendMessage
(
GmshSocket
::
GMSH_PARAM_QUERY_ALL
,
reply
.
size
(),
&
reply
[
0
]);
}
reply
=
"ONELAB: Downloaded strings."
;
server
->
SendMessage
(
GmshSocket
::
GMSH_PARAM_QUERY_END
,
reply
.
size
(),
&
reply
[
0
]);
}
else
Msg
::
Fatal
(
"FIXME query not done for this parameter type: %s"
,
message
.
c_str
());
}
break
;
case
GmshSocket
::
GMSH_PROGRESS
:
Msg
::
StatusBar
(
2
,
false
,
"%s %s"
,
_name
.
c_str
(),
message
.
c_str
());
break
;
...
...
@@ -626,14 +654,21 @@ void onelab_cb(Fl_Widget *w, void *data)
continue
;
std
::
string
what
=
getModelName
(
c
);
if
(
action
==
"check"
){
c
->
run
(
what
);
if
(
c
->
getName
()
==
"GetDP"
)
c
->
run
(
what
);
else
c
->
run
(
what
+
" -a "
);
// option -a pour 'analyse only'
}
else
if
(
action
==
"compute"
){
// get command line from the server
std
::
vector
<
onelab
::
string
>
ps
;
onelab
::
server
::
instance
()
->
get
(
ps
,
c
->
getName
()
+
"/9Compute"
);
if
(
ps
.
size
())
what
+=
" "
+
ps
[
0
].
getValue
();
c
->
run
(
what
);
if
(
c
->
getName
()
==
"GetDP"
){
// get command line from the server
std
::
vector
<
onelab
::
string
>
ps
;
onelab
::
server
::
instance
()
->
get
(
ps
,
c
->
getName
()
+
"/9Compute"
);
if
(
ps
.
size
())
what
+=
" "
+
ps
[
0
].
getValue
();
c
->
run
(
what
);
}
else
c
->
run
(
what
);
}
if
(
action
==
"compute"
)
...
...
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