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
Analyze
Contributor 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
gmsh
gmsh
Commits
bc935e9c
"DiffractionGratings/grating3D_data_skewed_lattice.geo" did not exist on "21e42054d1f59e3dc317ac043e052a8a0c20f7c6"
Commit
bc935e9c
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fixes for vc++
parent
0a596faf
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Common/GmshUI.h
+2
-2
2 additions, 2 deletions
Common/GmshUI.h
Fltk/GmshServer.h
+1
-1
1 addition, 1 deletion
Fltk/GmshServer.h
Fltk/Makefile
+2
-2
2 additions, 2 deletions
Fltk/Makefile
Graphics/Makefile
+2
-2
2 additions, 2 deletions
Graphics/Makefile
Graphics/Mesh.cpp
+4
-3
4 additions, 3 deletions
Graphics/Mesh.cpp
with
11 additions
and
10 deletions
Common/GmshUI.h
+
2
−
2
View file @
bc935e9c
...
@@ -41,8 +41,8 @@
...
@@ -41,8 +41,8 @@
# define GMSH_WINDOW_BOX FL_FLAT_BOX
# define GMSH_WINDOW_BOX FL_FLAT_BOX
#endif
#endif
//
recent Cygwin release
s define min/max macros!
//
some Windows version
s define min/max macros!
#if defined(
__CYG
WIN
__
)
#if defined(WIN
32
)
#undef min
#undef min
#undef max
#undef max
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Fltk/GmshServer.h
+
1
−
1
View file @
bc935e9c
...
@@ -97,7 +97,7 @@ class GmshServer {
...
@@ -97,7 +97,7 @@ class GmshServer {
int
sofar
=
0
;
int
sofar
=
0
;
int
remaining
=
bytes
;
int
remaining
=
bytes
;
do
{
do
{
ssize_
t
len
=
recv
(
_sock
,
buf
+
sofar
,
remaining
,
0
);
in
t
len
=
recv
(
_sock
,
buf
+
sofar
,
remaining
,
0
);
if
(
len
<=
0
)
if
(
len
<=
0
)
return
0
;
return
0
;
sofar
+=
len
;
sofar
+=
len
;
...
...
This diff is collapsed.
Click to expand it.
Fltk/Makefile
+
2
−
2
View file @
bc935e9c
# $Id: Makefile,v 1.18
8
2008-06-
07 17:20:45
geuzaine Exp $
# $Id: Makefile,v 1.18
9
2008-06-
12 11:52:00
geuzaine Exp $
#
#
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
#
#
...
@@ -52,7 +52,7 @@ ${LIB}: ${OBJ}
...
@@ -52,7 +52,7 @@ ${LIB}: ${OBJ}
cpobj
:
${OBJ}
cpobj
:
${OBJ}
cp
-f
${
OBJ
}
../lib/
cp
-f
${
OBJ
}
../lib/
.cpp
.o
:
.cpp
${OBJEXT}
:
${
CXX
}
${
CFLAGS
}
${
DASH
}
c
$<
${
CXX
}
${
CFLAGS
}
${
DASH
}
c
$<
res
:
res
:
...
...
This diff is collapsed.
Click to expand it.
Graphics/Makefile
+
2
−
2
View file @
bc935e9c
# $Id: Makefile,v 1.15
5
2008-06-
07 17:20:47
geuzaine Exp $
# $Id: Makefile,v 1.15
6
2008-06-
12 11:52:00
geuzaine Exp $
#
#
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
#
#
...
@@ -58,7 +58,7 @@ ${LIB}: ${OBJ}
...
@@ -58,7 +58,7 @@ ${LIB}: ${OBJ}
cpobj
:
${OBJ}
cpobj
:
${OBJ}
cp
-f
${
OBJ
}
../lib/
cp
-f
${
OBJ
}
../lib/
.cpp
.o
:
.cpp
${OBJEXT}
:
${
CXX
}
${
CFLAGS
}
${
DASH
}
c
$<
${
CXX
}
${
CFLAGS
}
${
DASH
}
c
$<
clean
:
clean
:
...
...
This diff is collapsed.
Click to expand it.
Graphics/Mesh.cpp
+
4
−
3
View file @
bc935e9c
// $Id: Mesh.cpp,v 1.22
1
2008-0
5-04 08:31:14
geuzaine Exp $
// $Id: Mesh.cpp,v 1.22
2
2008-0
6-12 11:52:00
geuzaine Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
//
//
// Please report all bugs and problems to <gmsh@geuz.org>.
// Please report all bugs and problems to <gmsh@geuz.org>.
#include
<math.h>
#include
"Message.h"
#include
"Message.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
#include
"GModel.h"
#include
"GModel.h"
...
@@ -713,7 +714,7 @@ class initMeshGRegion {
...
@@ -713,7 +714,7 @@ class initMeshGRegion {
num
+=
(
12
*
r
->
tetrahedra
.
size
()
+
24
*
r
->
hexahedra
.
size
()
+
num
+=
(
12
*
r
->
tetrahedra
.
size
()
+
24
*
r
->
hexahedra
.
size
()
+
18
*
r
->
prisms
.
size
()
+
16
*
r
->
pyramids
.
size
())
/
4
;
18
*
r
->
prisms
.
size
()
+
16
*
r
->
pyramids
.
size
())
/
4
;
if
(
CTX
.
mesh
.
use_cut_plane
&&
CTX
.
mesh
.
cut_plane_draw_intersect
)
if
(
CTX
.
mesh
.
use_cut_plane
&&
CTX
.
mesh
.
cut_plane_draw_intersect
)
num
=
(
int
)
sqrt
(
num
);
num
=
(
int
)
sqrt
(
(
double
)
num
);
if
(
CTX
.
mesh
.
explode
!=
1.
)
num
*=
4
;
if
(
CTX
.
mesh
.
explode
!=
1.
)
num
*=
4
;
if
(
_curved
)
num
*=
2
;
if
(
_curved
)
num
*=
2
;
}
}
...
@@ -726,7 +727,7 @@ class initMeshGRegion {
...
@@ -726,7 +727,7 @@ class initMeshGRegion {
num
+=
(
4
*
r
->
tetrahedra
.
size
()
+
12
*
r
->
hexahedra
.
size
()
+
num
+=
(
4
*
r
->
tetrahedra
.
size
()
+
12
*
r
->
hexahedra
.
size
()
+
8
*
r
->
prisms
.
size
()
+
6
*
r
->
pyramids
.
size
())
/
2
;
8
*
r
->
prisms
.
size
()
+
6
*
r
->
pyramids
.
size
())
/
2
;
if
(
CTX
.
mesh
.
use_cut_plane
&&
CTX
.
mesh
.
cut_plane_draw_intersect
)
if
(
CTX
.
mesh
.
use_cut_plane
&&
CTX
.
mesh
.
cut_plane_draw_intersect
)
num
=
(
int
)
sqrt
(
num
);
num
=
(
int
)
sqrt
(
(
double
)
num
);
if
(
CTX
.
mesh
.
explode
!=
1.
)
num
*=
2
;
if
(
CTX
.
mesh
.
explode
!=
1.
)
num
*=
2
;
if
(
_curved
)
num
*=
4
;
if
(
_curved
)
num
*=
4
;
}
}
...
...
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