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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
898108b7
Commit
898108b7
authored
11 years ago
by
Thomas Toulorge
Browse files
Options
Downloads
Patches
Plain Diff
Changed fast Jacobian estimation
parent
011ec862
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Numeric/JacobianBasis.cpp
+5
-9
5 additions, 9 deletions
Numeric/JacobianBasis.cpp
Numeric/JacobianBasis.h
+1
-1
1 addition, 1 deletion
Numeric/JacobianBasis.h
with
6 additions
and
10 deletions
Numeric/JacobianBasis.cpp
+
5
−
9
View file @
898108b7
...
...
@@ -124,16 +124,12 @@ JacobianBasis::JacobianBasis(int tag)
delete
[]
barDPsi
;
// Compute "fast" Jacobian evaluation matrices (at 1st order nodes + barycenter)
// numJacNodesFast = numPrimMapNodes+1;
// fullMatrix<double> lagPointsFast(numJacNodesFast,3); // Sampling points
// lagPointsFast.copy(primMapBasis->points,0,numPrimMapNodes,0,3,0,0); // 1st order nodes
// lagPointsFast(numPrimMapNodes,0) = barycenter[0]; // Last point = barycenter
// lagPointsFast(numPrimMapNodes,1) = barycenter[1];
// lagPointsFast(numPrimMapNodes,2) = barycenter[2];
numJacNodesFast
=
numPrimMapNodes
+
1
;
fullMatrix
<
double
>
lagPointsFast
(
numJacNodesFast
,
3
);
// Sampling points
lagPointsFast
(
0
,
0
)
=
barycenter
[
0
];
// Last point = barycenter
lagPointsFast
(
0
,
1
)
=
barycenter
[
1
];
lagPointsFast
(
0
,
2
)
=
barycenter
[
2
];
lagPointsFast
.
copy
(
primMapBasis
->
points
,
0
,
numPrimMapNodes
,
0
,
3
,
0
,
0
);
// 1st order nodes
lagPointsFast
(
numPrimMapNodes
,
0
)
=
barycenter
[
0
];
// Last point = barycenter
lagPointsFast
(
numPrimMapNodes
,
1
)
=
barycenter
[
1
];
lagPointsFast
(
numPrimMapNodes
,
2
)
=
barycenter
[
2
];
fullMatrix
<
double
>
allDPsiFast
;
mapBasis
->
df
(
lagPointsFast
,
allDPsiFast
);
...
...
This diff is collapsed.
Click to expand it.
Numeric/JacobianBasis.h
+
1
−
1
View file @
898108b7
...
...
@@ -23,7 +23,7 @@ class JacobianBasis {
int
numJacNodes
,
numPrimJacNodes
;
int
numMapNodes
,
numPrimMapNodes
;
static
const
int
numJacNodesFast
=
1
;
int
numJacNodesFast
;
void
getSignedJacobianGeneral
(
int
nJacNodes
,
const
fullMatrix
<
double
>
&
gSMatX
,
const
fullMatrix
<
double
>
&
gSMatY
,
const
fullMatrix
<
double
>
&
gSMatZ
,
...
...
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