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
0f2cb9d3
Commit
0f2cb9d3
authored
21 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Don't optimize 3D_Mesh.
parent
a74b6792
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Mesh/2D_Mesh_Triangle.cpp
+2
-2
2 additions, 2 deletions
Mesh/2D_Mesh_Triangle.cpp
Mesh/3D_Mesh.cpp
+2
-4
2 additions, 4 deletions
Mesh/3D_Mesh.cpp
Mesh/Makefile
+5
-1
5 additions, 1 deletion
Mesh/Makefile
Triangle/Makefile
+4
-4
4 additions, 4 deletions
Triangle/Makefile
with
13 additions
and
11 deletions
Mesh/2D_Mesh_Triangle.cpp
+
2
−
2
View file @
0f2cb9d3
// $Id: 2D_Mesh_Triangle.cpp,v 1.
3
2003-0
3
-2
1
00:
52:41
geuzaine Exp $
// $Id: 2D_Mesh_Triangle.cpp,v 1.
4
2003-0
6
-2
0
00:
07:34
geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -211,7 +211,7 @@ int Mesh_Shewchuk(Surface * s)
...
@@ -211,7 +211,7 @@ int Mesh_Shewchuk(Surface * s)
val
+=
mid
.
pointattributelist
[
k
];
val
+=
mid
.
pointattributelist
[
k
];
}
}
val
/=
mid
.
numberofcorners
;
val
/=
mid
.
numberofcorners
;
val
=
val
*
val
/
2.
;
// we generate
isotropic meshes
val
=
val
*
val
/
1.5
;
// approx (we want
isotropic meshes
)
mid
.
trianglearealist
[
i
]
=
val
;
mid
.
trianglearealist
[
i
]
=
val
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Mesh/3D_Mesh.cpp
+
2
−
4
View file @
0f2cb9d3
// $Id: 3D_Mesh.cpp,v 1.5
5
2003-06-
14 16:41:12
geuzaine Exp $
// $Id: 3D_Mesh.cpp,v 1.5
6
2003-06-
20 00:07:34
geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -60,9 +60,7 @@ int Alerte_Point_Scabreux;
...
@@ -60,9 +60,7 @@ int Alerte_Point_Scabreux;
inline
void
cgsmpl
(
Simplex
*
s
,
double
&
x
,
double
&
y
,
double
&
z
)
inline
void
cgsmpl
(
Simplex
*
s
,
double
&
x
,
double
&
y
,
double
&
z
)
{
{
//compiler sous linux avec -O2 et faire tourner bench/3d/sphere2.geo
// this inlining crashes with gcc -O2...
//->boum. Ne se produit pas si on accede a V[3] avant!
//if(!s->V[3]) Msg(GERROR, "oups");
x
=
0.25
*
(
s
->
V
[
0
]
->
Pos
.
X
+
x
=
0.25
*
(
s
->
V
[
0
]
->
Pos
.
X
+
s
->
V
[
1
]
->
Pos
.
X
+
s
->
V
[
2
]
->
Pos
.
X
+
s
->
V
[
3
]
->
Pos
.
X
);
s
->
V
[
1
]
->
Pos
.
X
+
s
->
V
[
2
]
->
Pos
.
X
+
s
->
V
[
3
]
->
Pos
.
X
);
...
...
This diff is collapsed.
Click to expand it.
Mesh/Makefile
+
5
−
1
View file @
0f2cb9d3
# $Id: Makefile,v 1.5
1
2003-0
3
-2
1
00:
52:41
geuzaine Exp $
# $Id: Makefile,v 1.5
2
2003-0
6
-2
0
00:
07:34
geuzaine Exp $
#
#
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
#
#
...
@@ -81,6 +81,10 @@ ${LIB}: ${OBJ}
...
@@ -81,6 +81,10 @@ ${LIB}: ${OBJ}
.cpp.o
:
.cpp.o
:
${
CXX
}
${
CFLAGS
}
-c
$<
${
CXX
}
${
CFLAGS
}
-c
$<
# Don't optimize 3D_Mesh: it sometimes mysteriously crashes on Linux
3D_Mesh.o
:
${
CXX
}
${
FLAGS
}
${
INCLUDE
}
-c
$<
clean
:
clean
:
rm
-f
*
.o
rm
-f
*
.o
...
...
This diff is collapsed.
Click to expand it.
Triangle/Makefile
+
4
−
4
View file @
0f2cb9d3
# $Id: Makefile,v 1.1
5
2003-0
3
-2
1
00:
52:46
geuzaine Exp $
# $Id: Makefile,v 1.1
6
2003-0
6
-2
0
00:
07:34
geuzaine Exp $
#
#
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
#
#
...
@@ -23,9 +23,9 @@ include ../variables
...
@@ -23,9 +23,9 @@ include ../variables
LIB
=
../lib/libGmshTriangle.a
LIB
=
../lib/libGmshTriangle.a
# Do
no
t optimize triangle: it crashes
badly
on Linux
# Do
n'
t optimize triangle: it crashes on Linux
OPTIM
=
-O0
# CFLAGS = ${OPTIM} ${FLAGS} -DTRILIBRARY
CFLAGS
=
${
OPTIM
}
${
FLAGS
}
-DTRILIBRARY
CFLAGS
=
${
FLAGS
}
-DTRILIBRARY
SRC
=
triangle.c
SRC
=
triangle.c
...
...
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