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
2938548f
Commit
2938548f
authored
15 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
dg : implicit 3d benchmark + order 6 to 10 tet polynomial basis
parent
d02633e9
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Common/GmshDefines.h
+6
-1
6 additions, 1 deletion
Common/GmshDefines.h
Geo/MTetrahedron.cpp
+5
-0
5 additions, 0 deletions
Geo/MTetrahedron.cpp
Numeric/polynomialBasis.cpp
+30
-0
30 additions, 0 deletions
Numeric/polynomialBasis.cpp
Solver/linearSystemPETSc.cpp
+1
-1
1 addition, 1 deletion
Solver/linearSystemPETSc.cpp
with
42 additions
and
2 deletions
Common/GmshDefines.h
+
6
−
1
View file @
2938548f
...
...
@@ -126,8 +126,13 @@
#define MSH_TRI_B 68
#define MSH_POLYG_B 69
#define MSH_LIN_C 70
#define MSH_TET_84 71
#define MSH_TET_120 72
#define MSH_TET_165 73
#define MSH_TET_220 74
#define MSH_TET_286 75
#define MSH_NUM_TYPE 7
0
#define MSH_NUM_TYPE 7
1
// Geometric entities
#define ENT_NONE 0
...
...
This diff is collapsed.
Click to expand it.
Geo/MTetrahedron.cpp
+
5
−
0
View file @
2938548f
...
...
@@ -126,6 +126,11 @@ const polynomialBasis* MTetrahedron::getFunctionSpace(int o) const
case
3
:
return
&
polynomialBases
::
find
(
MSH_TET_20
);
case
4
:
return
&
polynomialBases
::
find
(
MSH_TET_35
);
case
5
:
return
&
polynomialBases
::
find
(
MSH_TET_56
);
case
6
:
return
&
polynomialBases
::
find
(
MSH_TET_84
);
case
7
:
return
&
polynomialBases
::
find
(
MSH_TET_120
);
case
8
:
return
&
polynomialBases
::
find
(
MSH_TET_165
);
case
9
:
return
&
polynomialBases
::
find
(
MSH_TET_220
);
case
10
:
return
&
polynomialBases
::
find
(
MSH_TET_286
);
default:
Msg
::
Error
(
"Order %d tetrahedron function space not implemented"
,
order
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Numeric/polynomialBasis.cpp
+
30
−
0
View file @
2938548f
...
...
@@ -1114,6 +1114,36 @@ const polynomialBasis &polynomialBases::find(int tag)
F
.
points
=
gmshGeneratePointsTetrahedron
(
5
,
false
);
generate3dFaceClosure
(
F
.
closures
,
5
);
break
;
case
MSH_TET_84
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalTetrahedron
(
6
);
F
.
points
=
gmshGeneratePointsTetrahedron
(
6
,
false
);
generate3dFaceClosure
(
F
.
closures
,
6
);
break
;
case
MSH_TET_120
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalTetrahedron
(
7
);
F
.
points
=
gmshGeneratePointsTetrahedron
(
7
,
false
);
generate3dFaceClosure
(
F
.
closures
,
7
);
break
;
case
MSH_TET_165
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalTetrahedron
(
8
);
F
.
points
=
gmshGeneratePointsTetrahedron
(
8
,
false
);
generate3dFaceClosure
(
F
.
closures
,
8
);
break
;
case
MSH_TET_220
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalTetrahedron
(
9
);
F
.
points
=
gmshGeneratePointsTetrahedron
(
9
,
false
);
generate3dFaceClosure
(
F
.
closures
,
9
);
break
;
case
MSH_TET_286
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalTetrahedron
(
10
);
F
.
points
=
gmshGeneratePointsTetrahedron
(
10
,
false
);
generate3dFaceClosure
(
F
.
closures
,
10
);
break
;
case
MSH_QUA_4
:
F
.
numFaces
=
4
;
F
.
monomials
=
generatePascalQuad
(
1
);
...
...
This diff is collapsed.
Click to expand it.
Solver/linearSystemPETSc.cpp
+
1
−
1
View file @
2938548f
...
...
@@ -83,7 +83,7 @@ void linearSystemPETSc<fullMatrix<PetscScalar> >::allocate(int nbRows)
// override the default options with the ones from the option
// database (if any)
_try
(
MatSetFromOptions
(
_a
));
_try
(
MatSeqBAIJSetPreallocation
(
_a
,
_blockSize
,
4
,
NULL
));
//todo preAllocate off-diagonal part
_try
(
MatSeqBAIJSetPreallocation
(
_a
,
_blockSize
,
5
,
NULL
));
//todo preAllocate off-diagonal part
//_try(MatMPIBAIJSetPreallocation(_a, _blockSize, 4, NULL, 0, NULL)); //todo preAllocate off-diagonal part
_try
(
VecCreate
(
PETSC_COMM_WORLD
,
&
_x
));
_try
(
VecSetSizes
(
_x
,
PETSC_DECIDE
,
nbRows
*
_blockSize
));
...
...
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