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
383acfc6
Commit
383acfc6
authored
13 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
dgDataCacheMap : compute normals in POINT_MODE on interfaces
parent
5bd0d6b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Numeric/polynomialBasis.h
+16
-3
16 additions, 3 deletions
Numeric/polynomialBasis.h
with
16 additions
and
3 deletions
Numeric/polynomialBasis.h
+
16
−
3
View file @
383acfc6
...
@@ -125,9 +125,7 @@ class polynomialBasis
...
@@ -125,9 +125,7 @@ class polynomialBasis
}
}
}
}
}
}
// I would favour this interface that allows optimizations (not
inline
void
f
(
fullMatrix
<
double
>
&
coord
,
fullMatrix
<
double
>
&
sf
)
const
// implemented) and is easier to bind
inline
void
f
(
fullMatrix
<
double
>
&
coord
,
fullMatrix
<
double
>
&
sf
)
{
{
double
p
[
1256
];
double
p
[
1256
];
sf
.
resize
(
coord
.
size1
(),
coefficients
.
size1
());
sf
.
resize
(
coord
.
size1
(),
coefficients
.
size1
());
...
@@ -138,6 +136,21 @@ class polynomialBasis
...
@@ -138,6 +136,21 @@ class polynomialBasis
sf
(
iPoint
,
i
)
+=
coefficients
(
i
,
j
)
*
p
[
j
];
sf
(
iPoint
,
i
)
+=
coefficients
(
i
,
j
)
*
p
[
j
];
}
}
}
}
inline
void
df
(
fullMatrix
<
double
>
&
coord
,
fullMatrix
<
double
>
&
dfm
)
const
{
double
dfv
[
1256
][
3
];
dfm
.
resize
(
coefficients
.
size1
(),
coord
.
size1
()
*
3
,
false
);
int
ii
=
0
;
for
(
int
iPoint
=
0
;
iPoint
<
coord
.
size1
();
iPoint
++
)
{
df
(
coord
(
iPoint
,
0
),
coord
(
iPoint
,
1
),
coord
(
iPoint
,
2
),
dfv
);
for
(
int
i
=
0
;
i
<
coefficients
.
size1
();
i
++
)
{
dfm
(
i
,
iPoint
*
3
+
0
)
=
dfv
[
i
][
0
];
dfm
(
i
,
iPoint
*
3
+
1
)
=
dfv
[
i
][
1
];
dfm
(
i
,
iPoint
*
3
+
2
)
=
dfv
[
i
][
2
];
++
ii
;
}
}
}
inline
void
df
(
double
u
,
double
v
,
double
w
,
double
grads
[][
3
])
const
inline
void
df
(
double
u
,
double
v
,
double
w
,
double
grads
[][
3
])
const
{
{
switch
(
monomials
.
size2
())
{
switch
(
monomials
.
size2
())
{
...
...
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