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
53bafe07
Commit
53bafe07
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Better error msg
parent
00adce3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/Solvers.cpp
+3
-3
3 additions, 3 deletions
Fltk/Solvers.cpp
Parser/OpenFile.cpp
+4
-4
4 additions, 4 deletions
Parser/OpenFile.cpp
with
7 additions
and
7 deletions
Fltk/Solvers.cpp
+
3
−
3
View file @
53bafe07
// $Id: Solvers.cpp,v 1.1
6
2003-01-25
00:05:49
geuzaine Exp $
// $Id: Solvers.cpp,v 1.1
7
2003-01-25
22:33:38
geuzaine Exp $
//
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -65,8 +65,8 @@ int Solver(int num, char *args){
...
@@ -65,8 +65,8 @@ int Solver(int num, char *args){
case
-
1
:
Msg
(
GERROR
,
"Couldn't create socket '%s'"
,
socket_name
);
break
;
case
-
1
:
Msg
(
GERROR
,
"Couldn't create socket '%s'"
,
socket_name
);
break
;
case
-
2
:
Msg
(
GERROR
,
"Couldn't bin socket to name '%s'"
,
socket_name
);
break
;
case
-
2
:
Msg
(
GERROR
,
"Couldn't bin socket to name '%s'"
,
socket_name
);
break
;
case
-
3
:
Msg
(
GERROR
,
"Socket listen failed on '%s'"
,
socket_name
);
break
;
case
-
3
:
Msg
(
GERROR
,
"Socket listen failed on '%s'"
,
socket_name
);
break
;
case
-
4
:
Msg
(
GERROR
,
"Solver
'%s'
not responding
on socket '%s'
"
,
case
-
4
:
Msg
(
GERROR
,
"Solver
is
not responding
(is '%s' correctly installed/in your path?)
"
,
SINFO
[
num
].
name
,
socket
_name
);
break
;
SINFO
[
num
].
executable
_name
);
break
;
case
-
5
:
Msg
(
GERROR
,
"Socket accept failed on '%s'"
,
socket_name
);
break
;
case
-
5
:
Msg
(
GERROR
,
"Socket accept failed on '%s'"
,
socket_name
);
break
;
}
}
for
(
i
=
0
;
i
<
SINFO
[
num
].
nboptions
;
i
++
)
for
(
i
=
0
;
i
<
SINFO
[
num
].
nboptions
;
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Parser/OpenFile.cpp
+
4
−
4
View file @
53bafe07
// $Id: OpenFile.cpp,v 1.3
5
2003-01-2
4
2
3:1
3:3
6
geuzaine Exp $
// $Id: OpenFile.cpp,v 1.3
6
2003-01-2
5
2
2:3
3:3
8
geuzaine Exp $
//
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -192,7 +192,7 @@ void OpenProblem(char *name){
...
@@ -192,7 +192,7 @@ void OpenProblem(char *name){
// replace "/cygwin/x/" with "x:/"
// replace "/cygwin/x/" with "x:/"
void
decygwin
(
char
*
in
,
char
*
out
){
void
decygwin
(
char
*
in
,
char
*
out
){
int
i
=
0
,
j
=
0
;
unsigned
int
i
=
0
,
j
=
0
;
while
(
i
<
strlen
(
in
)){
while
(
i
<
strlen
(
in
)){
if
(
!
strncmp
(
in
+
i
,
"/cygdrive/"
,
10
)){
if
(
!
strncmp
(
in
+
i
,
"/cygdrive/"
,
10
)){
...
@@ -218,7 +218,7 @@ void SystemCall(char *command){
...
@@ -218,7 +218,7 @@ void SystemCall(char *command){
char
copy
[
strlen
(
command
)
+
1
];
char
copy
[
strlen
(
command
)
+
1
];
decygwin
(
command
,
copy
);
decygwin
(
command
,
copy
);
Msg
(
INFO
,
"Calling
\"
%s
\"
"
,
copy
);
Msg
(
INFO
,
"Calling
'%s'
"
,
copy
);
CreateProcess
(
NULL
,
copy
,
NULL
,
NULL
,
FALSE
,
CreateProcess
(
NULL
,
copy
,
NULL
,
NULL
,
FALSE
,
NORMAL_PRIORITY_CLASS
,
NULL
,
NULL
,
&
suInfo
,
&
prInfo
);
NORMAL_PRIORITY_CLASS
,
NULL
,
NULL
,
&
suInfo
,
&
prInfo
);
...
@@ -227,7 +227,7 @@ void SystemCall(char *command){
...
@@ -227,7 +227,7 @@ void SystemCall(char *command){
Msg
(
GERROR
,
"Could not find /bin/sh: aborting system call"
);
Msg
(
GERROR
,
"Could not find /bin/sh: aborting system call"
);
return
;
return
;
}
}
Msg
(
INFO
,
"Calling
\"
%s
\"
"
,
command
);
Msg
(
INFO
,
"Calling
'%s'
"
,
command
);
system
(
command
);
system
(
command
);
#endif
#endif
}
}
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