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
eaa25c83
Commit
eaa25c83
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Don't append the ".geo" extension anymore if the file name is not recognized.
parent
aae619d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Parser/OpenFile.cpp
+8
-2
8 additions, 2 deletions
Parser/OpenFile.cpp
tutorial/README
+1
-3
1 addition, 3 deletions
tutorial/README
tutorial/tutorial.html
+1
-3
1 addition, 3 deletions
tutorial/tutorial.html
with
10 additions
and
8 deletions
Parser/OpenFile.cpp
+
8
−
2
View file @
eaa25c83
// $Id: OpenFile.cpp,v 1.4
2
2003-03-0
1 22:36:42
geuzaine Exp $
// $Id: OpenFile.cpp,v 1.4
3
2003-03-0
7 18:28:28
geuzaine Exp $
//
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -180,17 +180,23 @@ void OpenProblem(char *name)
...
@@ -180,17 +180,23 @@ void OpenProblem(char *name)
else
{
else
{
strcpy
(
ext
,
""
);
strcpy
(
ext
,
""
);
}
}
if
(
!
strcmp
(
ext
,
".geo"
)
||
!
strcmp
(
ext
,
".GEO"
)
||
if
(
!
strcmp
(
ext
,
".geo"
)
||
!
strcmp
(
ext
,
".GEO"
)
||
!
strcmp
(
ext
,
".msh"
)
||
!
strcmp
(
ext
,
".MSH"
)
||
!
strcmp
(
ext
,
".msh"
)
||
!
strcmp
(
ext
,
".MSH"
)
||
!
strcmp
(
ext
,
".stl"
)
||
!
strcmp
(
ext
,
".STL"
)
||
!
strcmp
(
ext
,
".stl"
)
||
!
strcmp
(
ext
,
".STL"
)
||
!
strcmp
(
ext
,
".sms"
)
||
!
strcmp
(
ext
,
".SMS"
)
||
!
strcmp
(
ext
,
".sms"
)
||
!
strcmp
(
ext
,
".SMS"
)
||
!
strcmp
(
ext
,
".ppm"
)
||
!
strcmp
(
ext
,
".pnm"
)
||
!
strcmp
(
ext
,
".ppm"
)
||
!
strcmp
(
ext
,
".PPM"
)
||
!
strcmp
(
ext
,
".pnm"
)
||
!
strcmp
(
ext
,
".PNM"
)
||
!
strcmp
(
ext
,
".pos"
)
||
!
strcmp
(
ext
,
".POS"
))
{
!
strcmp
(
ext
,
".pos"
)
||
!
strcmp
(
ext
,
".POS"
))
{
CTX
.
base_filename
[
strlen
(
name
)
-
4
]
=
'\0'
;
CTX
.
base_filename
[
strlen
(
name
)
-
4
]
=
'\0'
;
}
}
/* Let's just remove this. It causes more confusion than anything
else, and entering the complete file name isn't such big a
deal.
else {
else {
strcat(CTX.filename, ".geo");
strcat(CTX.filename, ".geo");
}
}
*/
strncpy
(
THEM
->
name
,
CTX
.
base_filename
,
255
);
strncpy
(
THEM
->
name
,
CTX
.
base_filename
,
255
);
...
...
This diff is collapsed.
Click to expand it.
tutorial/README
+
1
−
3
View file @
eaa25c83
$Id: README,v 1.
19
2003-03-07
07:32:56
geuzaine Exp $
$Id: README,v 1.
20
2003-03-07
18:28:28
geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
commented (both C and C++-style comments can be used in Gmsh input
...
@@ -42,8 +42,6 @@ example with:
...
@@ -42,8 +42,6 @@ example with:
> gmsh t1.geo
> gmsh t1.geo
[NOTE: The '.geo' extension can also be omitted.]
[NOTE: Even if it is often handy to define the variables and the
[NOTE: Even if it is often handy to define the variables and the
points directly in the input files (you may use any text editor for
points directly in the input files (you may use any text editor for
this purpose, e.g. Wordpad on Windows, or Emacs on Unix), it is almost
this purpose, e.g. Wordpad on Windows, or Emacs on Unix), it is almost
...
...
This diff is collapsed.
Click to expand it.
tutorial/tutorial.html
+
1
−
3
View file @
eaa25c83
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<H1>
README 1/10
</H1>
<H1>
README 1/10
</H1>
[
<A
HREF=
"#top"
>
top
</A>
][prev][
<A
HREF=
"#file2"
>
next
</A>
]
[
<A
HREF=
"#top"
>
top
</A>
][prev][
<A
HREF=
"#file2"
>
next
</A>
]
<PRE>
<PRE>
$Id: tutorial.html,v 1.4
0
2003-03-07
07:33:1
8 geuzaine Exp $
$Id: tutorial.html,v 1.4
1
2003-03-07
18:28:2
8 geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
commented (both C and C++-style comments can be used in Gmsh input
...
@@ -67,8 +67,6 @@ example with:
...
@@ -67,8 +67,6 @@ example with:
>
gmsh t1.geo
>
gmsh t1.geo
[NOTE: The '.geo' extension can also be omitted.]
[NOTE: Even if it is often handy to define the variables and the
[NOTE: Even if it is often handy to define the variables and the
points directly in the input files (you may use any text editor for
points directly in the input files (you may use any text editor for
this purpose, e.g. Wordpad on Windows, or Emacs on Unix), it is almost
this purpose, e.g. Wordpad on Windows, or Emacs on Unix), it is almost
...
...
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