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
1ad90e45
Commit
1ad90e45
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
441490f4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/OpenFile.cpp
+3
-1
3 additions, 1 deletion
Common/OpenFile.cpp
Geo/GEdge.cpp
+6
-10
6 additions, 10 deletions
Geo/GEdge.cpp
Geo/GEdge.h
+5
-3
5 additions, 3 deletions
Geo/GEdge.h
with
14 additions
and
14 deletions
Common/OpenFile.cpp
+
3
−
1
View file @
1ad90e45
...
@@ -348,7 +348,9 @@ int MergeFile(std::string fileName, bool warnIfMissing)
...
@@ -348,7 +348,9 @@ int MergeFile(std::string fileName, bool warnIfMissing)
if
(
status
>
1
)
status
=
PView
::
readMSH
(
fileName
);
if
(
status
>
1
)
status
=
PView
::
readMSH
(
fileName
);
#endif
#endif
if
(
CTX
::
instance
()
->
mesh
.
order
>
1
)
if
(
CTX
::
instance
()
->
mesh
.
order
>
1
)
SetOrderN
(
GModel
::
current
(),
CTX
::
instance
()
->
mesh
.
order
,
false
,
false
);
SetOrderN
(
GModel
::
current
(),
CTX
::
instance
()
->
mesh
.
order
,
CTX
::
instance
()
->
mesh
.
secondOrderLinear
,
CTX
::
instance
()
->
mesh
.
secondOrderIncomplete
);
}
}
#if !defined(HAVE_NO_POST)
#if !defined(HAVE_NO_POST)
else
if
(
!
strncmp
(
header
,
"$PostFormat"
,
11
)
||
else
if
(
!
strncmp
(
header
,
"$PostFormat"
,
11
)
||
...
...
This diff is collapsed.
Click to expand it.
Geo/GEdge.cpp
+
6
−
10
View file @
1ad90e45
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
#include
<sstream>
#include
<sstream>
#include
<algorithm>
#include
<algorithm>
#include
<limits>
#include
"GmshConfig.h"
#include
"GmshConfig.h"
#include
"GmshDefines.h"
#include
"GmshDefines.h"
...
@@ -199,22 +198,19 @@ GPoint GEdge::closestPoint(const SPoint3 & q,double& t) const
...
@@ -199,22 +198,19 @@ GPoint GEdge::closestPoint(const SPoint3 & q,double& t) const
Range
<
double
>
interval
=
parBounds
(
0
);
Range
<
double
>
interval
=
parBounds
(
0
);
double
tMin
=
std
::
min
(
interval
.
high
(),
interval
.
low
());
double
tMin
=
std
::
min
(
interval
.
high
(),
interval
.
low
());
double
tMax
=
std
::
max
(
interval
.
high
(),
interval
.
low
());
double
tMax
=
std
::
max
(
interval
.
high
(),
interval
.
low
());
double
relax
=
1.
;
double
relax
=
1.
;
double
dt
,
dt0
,
t0
;
double
dt
,
dt0
,
t0
;
int
nb
=
10
;
int
nb
=
10
;
t
=
(
tMin
+
tMax
)
*
0.5
;
t
=
(
tMin
+
tMax
)
*
0.5
;
while
(
relax
>
0.1
)
{
while
(
relax
>
0.1
)
{
int
i
=
0
;
int
i
=
0
;
t
=
0.5
*
(
tMin
+
tMax
);
t
=
0.5
*
(
tMin
+
tMax
);
dt0
=
tMax
-
tMin
;
dt0
=
tMax
-
tMin
;
dt
=
dt0
;
dt
=
dt0
;
while
(
dt
>
tolerance
*
dt0
&&
i
++
<
nb
)
{
while
(
dt
>
tolerance
*
dt0
&&
i
++
<
nb
)
{
t0
=
t
;
t0
=
t
;
dt0
=
dt
;
dt0
=
dt
;
...
...
This diff is collapsed.
Click to expand it.
Geo/GEdge.h
+
5
−
3
View file @
1ad90e45
...
@@ -67,9 +67,10 @@ class GEdge : public GEntity {
...
@@ -67,9 +67,10 @@ class GEdge : public GEntity {
virtual
bool
containsParam
(
double
pt
)
const
;
virtual
bool
containsParam
(
double
pt
)
const
;
// get the position for the given parameter location
// get the position for the given parameter location
virtual
SVector3
position
(
double
p
)
const
{
virtual
SVector3
position
(
double
p
)
const
{
GPoint
gp
=
point
(
p
);
GPoint
gp
=
point
(
p
);
return
SVector3
(
gp
.
x
(),
gp
.
y
(),
gp
.
z
());
return
SVector3
(
gp
.
x
(),
gp
.
y
(),
gp
.
z
());
}
}
// get first derivative of edge at the given parameter
// get first derivative of edge at the given parameter
...
@@ -130,7 +131,8 @@ class GEdge : public GEntity {
...
@@ -130,7 +131,8 @@ class GEdge : public GEntity {
virtual
bool
periodic
(
int
dim
)
const
{
return
v0
==
v1
;
}
virtual
bool
periodic
(
int
dim
)
const
{
return
v0
==
v1
;
}
// true if edge is used in hyperbolic layer on face gf
// true if edge is used in hyperbolic layer on face gf
virtual
bool
inHyperbolicLayer
(
GFace
*
gf
)
{
virtual
bool
inHyperbolicLayer
(
GFace
*
gf
)
{
return
bl_faces
.
find
(
gf
)
!=
bl_faces
.
end
();
return
bl_faces
.
find
(
gf
)
!=
bl_faces
.
end
();
}
}
...
...
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