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
8c5ddb69
Commit
8c5ddb69
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fixed embedded + adaptive vector
parent
4a531196
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Geo/GModel.h
+0
-6
0 additions, 6 deletions
Geo/GModel.h
Geo/MElement.cpp
+20
-15
20 additions, 15 deletions
Geo/MElement.cpp
Geo/Makefile
+4
-4
4 additions, 4 deletions
Geo/Makefile
Post/adaptiveData.cpp
+5
-4
5 additions, 4 deletions
Post/adaptiveData.cpp
utils/embed/Makefile
+1
-0
1 addition, 0 deletions
utils/embed/Makefile
with
30 additions
and
29 deletions
Geo/GModel.h
+
0
−
6
View file @
8c5ddb69
...
@@ -45,21 +45,15 @@ class GModel
...
@@ -45,21 +45,15 @@ class GModel
std
::
map
<
int
,
MVertex
*>
_vertexMapCache
;
std
::
map
<
int
,
MVertex
*>
_vertexMapCache
;
GEO_Internals
*
_geo_internals
;
GEO_Internals
*
_geo_internals
;
#if !defined(HAVE_GMSH_EMBEDDED)
void
_createGEOInternals
();
void
_createGEOInternals
();
void
_deleteGEOInternals
();
void
_deleteGEOInternals
();
#endif
OCC_Internals
*
_occ_internals
;
OCC_Internals
*
_occ_internals
;
#if !defined(HAVE_GMSH_EMBEDDED)
void
_deleteOCCInternals
();
void
_deleteOCCInternals
();
#endif
FM_Internals
*
_fm_internals
;
FM_Internals
*
_fm_internals
;
#if !defined(HAVE_GMSH_EMBEDDED)
void
_createFMInternals
();
void
_createFMInternals
();
void
_deleteFMInternals
();
void
_deleteFMInternals
();
#endif
// Characteristic Lengths fields
// Characteristic Lengths fields
FieldManager
*
_fields
;
FieldManager
*
_fields
;
...
...
This diff is collapsed.
Click to expand it.
Geo/MElement.cpp
+
20
−
15
View file @
8c5ddb69
// $Id: MElement.cpp,v 1.6
8
2008-0
5-19 18:50:32 remacl
e Exp $
// $Id: MElement.cpp,v 1.6
9
2008-0
6-01 09:14:21 geuzain
e Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
#include
"MElement.h"
#include
"MElement.h"
#include
"GEntity.h"
#include
"GEntity.h"
#include
"GFace.h"
#include
"GFace.h"
#include
"GaussLegendre1D.h"
#if defined(HAVE_GMSH_EMBEDDED)
#if defined(HAVE_GMSH_EMBEDDED)
# include "GmshEmbedded.h"
# include "GmshEmbedded.h"
#else
#else
# include "Numeric.h"
# include "Numeric.h"
# include "FunctionSpace.h"
# include "FunctionSpace.h"
# include "GaussLegendre1D.h"
# include "Message.h"
# include "Message.h"
# include "Context.h"
# include "Context.h"
# include "qualityMeasures.h"
# include "qualityMeasures.h"
...
@@ -836,7 +836,8 @@ extern IntPt *getGQHPts(int order);
...
@@ -836,7 +836,8 @@ extern IntPt *getGQHPts(int order);
IntPt
GQL
[
100
];
IntPt
GQL
[
100
];
void
MLine
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
void
MLine
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
#if !defined(HAVE_GMSH_EMBEDDED)
#if !defined(HAVE_GMSH_EMBEDDED)
double
*
t
,
*
w
;
double
*
t
,
*
w
;
int
nbP
=
pOrder
/
2
+
1
;
int
nbP
=
pOrder
/
2
+
1
;
...
@@ -851,6 +852,7 @@ void MLine:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) const{
...
@@ -851,6 +852,7 @@ void MLine:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) const{
*
pts
=
GQL
;
*
pts
=
GQL
;
#endif
#endif
}
}
void
MTriangle
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
void
MTriangle
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
{
#if !defined(HAVE_GMSH_EMBEDDED)
#if !defined(HAVE_GMSH_EMBEDDED)
...
@@ -858,6 +860,7 @@ void MTriangle:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) con
...
@@ -858,6 +860,7 @@ void MTriangle:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) con
*
pts
=
getGQTPts
(
pOrder
);
*
pts
=
getGQTPts
(
pOrder
);
#endif
#endif
}
}
void
MTetrahedron
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
void
MTetrahedron
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
{
#if !defined(HAVE_GMSH_EMBEDDED)
#if !defined(HAVE_GMSH_EMBEDDED)
...
@@ -865,6 +868,7 @@ void MTetrahedron:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts)
...
@@ -865,6 +868,7 @@ void MTetrahedron:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts)
*
pts
=
getGQTetPts
(
pOrder
);
*
pts
=
getGQTetPts
(
pOrder
);
#endif
#endif
}
}
void
MHexahedron
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
void
MHexahedron
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
{
#if !defined(HAVE_GMSH_EMBEDDED)
#if !defined(HAVE_GMSH_EMBEDDED)
...
@@ -872,6 +876,7 @@ void MHexahedron:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) c
...
@@ -872,6 +876,7 @@ void MHexahedron:: getIntegrationPoints ( int pOrder , int *npts, IntPt **pts) c
*
pts
=
getGQHPts
(
pOrder
);
*
pts
=
getGQHPts
(
pOrder
);
#endif
#endif
}
}
void
MQuadrangle
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
void
MQuadrangle
::
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
)
const
{
{
#if !defined(HAVE_GMSH_EMBEDDED)
#if !defined(HAVE_GMSH_EMBEDDED)
...
...
This diff is collapsed.
Click to expand it.
Geo/Makefile
+
4
−
4
View file @
8c5ddb69
# $Id: Makefile,v 1.20
9
2008-0
5-20 19:25:33
geuzaine Exp $
# $Id: Makefile,v 1.2
1
0 2008-0
6-01 09:14:21
geuzaine Exp $
#
#
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
#
#
...
@@ -283,7 +283,7 @@ MFace.o: MFace.cpp MFace.h MVertex.h SPoint3.h SVector3.h \
...
@@ -283,7 +283,7 @@ MFace.o: MFace.cpp MFace.h MVertex.h SPoint3.h SVector3.h \
MElement.o
:
MElement.cpp MElement.h ../Common/GmshDefines.h MVertex.h
\
MElement.o
:
MElement.cpp MElement.h ../Common/GmshDefines.h MVertex.h
\
SPoint3.h MEdge.h SVector3.h MFace.h GEntity.h Range.h SBoundingBox3d.h
\
SPoint3.h MEdge.h SVector3.h MFace.h GEntity.h Range.h SBoundingBox3d.h
\
GFace.h GPoint.h GEdgeLoop.h GEdge.h GVertex.h SPoint2.h Pair.h
\
GFace.h GPoint.h GEdgeLoop.h GEdge.h GVertex.h SPoint2.h Pair.h
\
../Numeric/
GaussLegendre1D
.h ../Numeric/Numeric.h
\
../Numeric/
Numeric
.h ../Numeric/Numeric
Embedded
.h
\
../Numeric/
NumericEmbedded.h ../Numeric/FunctionSpace
.h
\
../Numeric/
FunctionSpace.h ../Common/GmshMatrix
.h
\
../
Common/GmshMatrix
.h ../Common/Message.h ../Common/Context.h
\
../
Numeric/GaussLegendre1D
.h ../Common/Message.h ../Common/Context.h
\
../Mesh/qualityMeasures.h
../Mesh/qualityMeasures.h
This diff is collapsed.
Click to expand it.
Post/adaptiveData.cpp
+
5
−
4
View file @
8c5ddb69
...
@@ -840,11 +840,11 @@ void adaptiveElements<T>::initWithLowResolution(PViewData *data, int step)
...
@@ -840,11 +840,11 @@ void adaptiveElements<T>::initWithLowResolution(PViewData *data, int step)
_posX
=
new
Double_Matrix
(
numEle
,
numNodes
);
_posX
=
new
Double_Matrix
(
numEle
,
numNodes
);
_posY
=
new
Double_Matrix
(
numEle
,
numNodes
);
_posY
=
new
Double_Matrix
(
numEle
,
numNodes
);
_posZ
=
new
Double_Matrix
(
numEle
,
numNodes
);
_posZ
=
new
Double_Matrix
(
numEle
,
numNodes
);
_val
=
new
Double_Matrix
(
numEle
,
numVal
/
numComp
);
_val
=
new
Double_Matrix
(
numEle
,
numVal
);
if
(
numComp
==
3
){
if
(
numComp
==
3
){
_valX
=
new
Double_Matrix
(
numEle
,
numVal
/
numComp
);
_valX
=
new
Double_Matrix
(
numEle
,
numVal
);
_valY
=
new
Double_Matrix
(
numEle
,
numVal
/
numComp
);
_valY
=
new
Double_Matrix
(
numEle
,
numVal
);
_valZ
=
new
Double_Matrix
(
numEle
,
numVal
/
numComp
);
_valZ
=
new
Double_Matrix
(
numEle
,
numVal
);
}
}
// store non-interpolated data
// store non-interpolated data
...
@@ -1065,6 +1065,7 @@ adaptiveData::adaptiveData(PViewData *data)
...
@@ -1065,6 +1065,7 @@ adaptiveData::adaptiveData(PViewData *data)
_outData
=
new
PViewDataList
(
true
);
_outData
=
new
PViewDataList
(
true
);
int
numComp
=
_inData
->
getNumComponents
(
0
,
0
,
0
);
int
numComp
=
_inData
->
getNumComponents
(
0
,
0
,
0
);
std
::
vector
<
List_T
*>
p
;
std
::
vector
<
List_T
*>
p
;
if
(
_inData
->
getNumLines
()
&&
_inData
->
getInterpolationScheme
(
1
,
p
)
>=
2
)
if
(
_inData
->
getNumLines
()
&&
_inData
->
getInterpolationScheme
(
1
,
p
)
>=
2
)
_lines
=
new
adaptiveElements
<
adaptiveLine
>
_lines
=
new
adaptiveElements
<
adaptiveLine
>
...
...
This diff is collapsed.
Click to expand it.
utils/embed/Makefile
+
1
−
0
View file @
8c5ddb69
...
@@ -10,6 +10,7 @@ SRC = GModel.cpp\
...
@@ -10,6 +10,7 @@ SRC = GModel.cpp\
GModelIO_Mesh.cpp
\
GModelIO_Mesh.cpp
\
GEntity.cpp
\
GEntity.cpp
\
GVertex.cpp GEdge.cpp GEdgeLoop.cpp GFace.cpp GRegion.cpp
\
GVertex.cpp GEdge.cpp GEdgeLoop.cpp GFace.cpp GRegion.cpp
\
discreteEdge.cpp discreteFace.cpp discreteRegion.cpp
\
MElement.cpp
\
MElement.cpp
\
MFace.cpp MVertex.cpp
\
MFace.cpp MVertex.cpp
\
NumericEmbedded.cpp
\
NumericEmbedded.cpp
\
...
...
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