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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
7f703173
Commit
7f703173
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
clients of gmshLocalNetworkClient should also be gmshLocalNetworkClients
parent
b5d18bb0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/gmshLocalNetworkClient.h
+5
-5
5 additions, 5 deletions
Fltk/gmshLocalNetworkClient.h
Fltk/onelabGroup.cpp
+3
-3
3 additions, 3 deletions
Fltk/onelabGroup.cpp
with
8 additions
and
8 deletions
Fltk/gmshLocalNetworkClient.h
+
5
−
5
View file @
7f703173
...
...
@@ -12,7 +12,7 @@
class
gmshLocalNetworkClient
:
public
onelab
::
localNetworkClient
{
private:
std
::
vector
<
onelab
::
l
ocalNetworkClient
*>
_clients
;
std
::
vector
<
gmshL
ocalNetworkClient
*>
_clients
;
public:
gmshLocalNetworkClient
(
const
std
::
string
&
name
,
const
std
::
string
&
executable
,
const
std
::
string
&
remoteLogin
=
""
)
...
...
@@ -20,18 +20,18 @@ class gmshLocalNetworkClient : public onelab::localNetworkClient{
{
addClient
(
this
);
}
void
addClient
(
onelab
::
l
ocalNetworkClient
*
client
)
void
addClient
(
gmshL
ocalNetworkClient
*
client
)
{
_clients
.
push_back
(
client
);
}
void
removeClient
(
onelab
::
l
ocalNetworkClient
*
client
)
void
removeClient
(
gmshL
ocalNetworkClient
*
client
)
{
std
::
vector
<
onelab
::
l
ocalNetworkClient
*>::
iterator
it
;
std
::
vector
<
gmshL
ocalNetworkClient
*>::
iterator
it
;
it
=
std
::
find
(
_clients
.
begin
(),
_clients
.
end
(),
client
);
if
(
it
!=
_clients
.
end
())
_clients
.
erase
(
it
);
}
int
getNumClients
(){
return
_clients
.
size
();
}
onelab
::
l
ocalNetworkClient
*
getClient
(
int
i
)
gmshL
ocalNetworkClient
*
getClient
(
int
i
)
{
if
(
i
>=
0
&&
i
<
getNumClients
())
return
_clients
[
i
];
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Fltk/onelabGroup.cpp
+
3
−
3
View file @
7f703173
...
...
@@ -401,7 +401,7 @@ bool gmshLocalNetworkClient::run()
// subclients; in that case we might want to start from the one after the
// one we read from last, for better load balancing)
bool
stop
=
false
,
haveData
=
false
;
onelab
::
l
ocalNetworkClient
*
c
=
0
;
gmshL
ocalNetworkClient
*
c
=
0
;
for
(
int
i
=
0
;
i
<
getNumClients
();
i
++
){
if
(
getExecutable
().
empty
()
&&
!
CTX
::
instance
()
->
solver
.
listen
){
// we stopped listening to the special "Listen" client
...
...
@@ -435,7 +435,7 @@ bool gmshLocalNetworkClient::run()
}
}
if
(
stop
)
break
;
if
(
haveData
&&
!
receiveMessage
())
break
;
if
(
haveData
&&
!
c
->
receiveMessage
())
break
;
if
(
c
==
this
&&
c
->
getPid
()
<
0
)
break
;
}
...
...
@@ -443,7 +443,7 @@ bool gmshLocalNetworkClient::run()
// subclients, if any. We do not delete the servers when we disconnect to make
// sure we always delete them, even when we disconnect "uncleanly"
for
(
int
i
=
0
;
i
<
getNumClients
();
i
++
){
onelab
::
l
ocalNetworkClient
*
c
=
getClient
(
i
);
gmshL
ocalNetworkClient
*
c
=
getClient
(
i
);
GmshServer
*
s
=
c
->
getGmshServer
();
c
->
setGmshServer
(
0
);
if
(
s
){
...
...
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