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
34efbc71
Commit
34efbc71
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
30655922
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Box/Box.cpp
+16
-22
16 additions, 22 deletions
Box/Box.cpp
Fltk/Main.cpp
+24
-28
24 additions, 28 deletions
Fltk/Main.cpp
with
40 additions
and
50 deletions
Box/Box.cpp
+
16
−
22
View file @
34efbc71
// $Id: Box.cpp,v 1.5
0
2008-0
3-23 21:4
2:5
6
geuzaine Exp $
// $Id: Box.cpp,v 1.5
1
2008-0
4-13 18:5
2:5
1
geuzaine Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -80,31 +80,25 @@ int GMSHBOX(int argc, char *argv[])
...
@@ -80,31 +80,25 @@ int GMSHBOX(int argc, char *argv[])
new
GModel
;
new
GModel
;
OpenProject
(
CTX
.
filename
);
OpenProject
(
CTX
.
filename
);
if
(
gmsh_yyerrorstate
)
for
(
unsigned
int
i
=
1
;
i
<
CTX
.
files
.
size
();
i
++
)
ParUtil
::
Instance
()
->
Abort
();
MergeFile
(
CTX
.
files
[
i
].
c_str
());
else
{
if
(
CTX
.
bgm_filename
)
{
for
(
unsigned
int
i
=
1
;
i
<
CTX
.
files
.
size
();
i
++
)
MergeFile
(
CTX
.
bgm_filename
);
MergeFile
(
CTX
.
files
[
i
].
c_str
());
if
(
PView
::
list
.
size
())
if
(
CTX
.
bgm_filename
)
{
GModel
::
current
()
->
getFields
()
->
set_background_mesh
(
PView
::
list
.
size
()
-
1
);
MergeFile
(
CTX
.
bgm_filename
);
else
if
(
PView
::
list
.
size
())
fprintf
(
stderr
,
ERROR_STR
"Invalid background mesh (no view)
\n
"
);
GModel
::
current
()
->
getFields
()
->
set_background_mesh
(
PView
::
list
.
size
()
-
1
);
else
fprintf
(
stderr
,
ERROR_STR
"Invalid background mesh (no view)
\n
"
);
}
if
(
CTX
.
batch
>
0
)
{
GModel
::
current
()
->
mesh
(
CTX
.
batch
);
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
==
-
1
)
CreateOutputFile
(
CTX
.
output_filename
,
FORMAT_GEO
);
ParUtil
::
Instance
()
->
Barrier
(
__LINE__
,
__FILE__
);
return
1
;
}
}
if
(
CTX
.
batch
>
0
)
{
GModel
::
current
()
->
mesh
(
CTX
.
batch
);
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
==
-
1
)
CreateOutputFile
(
CTX
.
output_filename
,
FORMAT_GEO
);
ParUtil
::
Instance
()
->
Barrier
(
__LINE__
,
__FILE__
);
ParUtil
::
Instance
()
->
Barrier
(
__LINE__
,
__FILE__
);
GmshFinalize
();
GmshFinalize
();
return
1
;
return
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Fltk/Main.cpp
+
24
−
28
View file @
34efbc71
// $Id: Main.cpp,v 1.12
6
2008-0
3-23 21:4
2:5
7
geuzaine Exp $
// $Id: Main.cpp,v 1.12
7
2008-0
4-13 18:5
2:5
1
geuzaine Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -78,34 +78,30 @@ int main(int argc, char *argv[])
...
@@ -78,34 +78,30 @@ int main(int argc, char *argv[])
if
(
CTX
.
batch
)
{
if
(
CTX
.
batch
)
{
Msg
(
INFO
,
"'%s' started on %s"
,
cmdline
.
c_str
(),
currtime
.
c_str
());
Msg
(
INFO
,
"'%s' started on %s"
,
cmdline
.
c_str
(),
currtime
.
c_str
());
OpenProject
(
CTX
.
filename
);
OpenProject
(
CTX
.
filename
);
if
(
gmsh_yyerrorstate
)
for
(
unsigned
int
i
=
1
;
i
<
CTX
.
files
.
size
();
i
++
)
exit
(
1
);
MergeFile
(
CTX
.
files
[
i
].
c_str
());
else
{
if
(
CTX
.
post
.
combine_time
)
for
(
unsigned
int
i
=
1
;
i
<
CTX
.
files
.
size
();
i
++
)
PView
::
combine
(
true
,
2
,
CTX
.
post
.
combine_remove_orig
);
MergeFile
(
CTX
.
files
[
i
].
c_str
());
if
(
CTX
.
bgm_filename
)
{
if
(
CTX
.
post
.
combine_time
)
MergeFile
(
CTX
.
bgm_filename
);
PView
::
combine
(
true
,
2
,
CTX
.
post
.
combine_remove_orig
);
if
(
PView
::
list
.
size
())
if
(
CTX
.
bgm_filename
)
{
GModel
::
current
()
->
getFields
()
->
set_background_mesh
(
PView
::
list
.
size
()
-
1
);
MergeFile
(
CTX
.
bgm_filename
);
else
if
(
PView
::
list
.
size
())
Msg
(
GERROR
,
"Invalid background mesh (no view)"
);
GModel
::
current
()
->
getFields
()
->
set_background_mesh
(
PView
::
list
.
size
()
-
1
);
else
Msg
(
GERROR
,
"Invalid background mesh (no view)"
);
}
if
(
CTX
.
batch
==
4
)
{
AdaptMesh
(
GModel
::
current
());
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
>
0
)
{
GModel
::
current
()
->
mesh
(
CTX
.
batch
);
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
==
-
1
)
CreateOutputFile
(
CTX
.
output_filename
,
FORMAT_GEO
);
else
if
(
CTX
.
batch
==
-
2
)
GModel
::
current
()
->
checkMeshCoherence
();
exit
(
0
);
}
}
if
(
CTX
.
batch
==
4
)
{
AdaptMesh
(
GModel
::
current
());
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
>
0
)
{
GModel
::
current
()
->
mesh
(
CTX
.
batch
);
CreateOutputFile
(
CTX
.
output_filename
,
CTX
.
mesh
.
format
);
}
else
if
(
CTX
.
batch
==
-
1
)
CreateOutputFile
(
CTX
.
output_filename
,
FORMAT_GEO
);
else
if
(
CTX
.
batch
==
-
2
)
GModel
::
current
()
->
checkMeshCoherence
();
exit
(
0
);
}
}
// Interactive Gmsh
// Interactive Gmsh
...
...
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