Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
7d67c856
Commit
7d67c856
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
More methods added
[[Imported from SVN: r1057]]
parent
1c5a325f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/uggrid/ugfunctions.hh
+25
-3
25 additions, 3 deletions
grid/uggrid/ugfunctions.hh
with
25 additions
and
3 deletions
grid/uggrid/ugfunctions.hh
+
25
−
3
View file @
7d67c856
...
...
@@ -73,11 +73,30 @@ namespace Dune {
return
CORNERS_OF_ELEM
(
theElement
);
}
static
int
Corners_Of_Side
(
const
typename
TargetType
<
0
,
dim
>::
T
*
theElement
,
int
side
)
{
#ifdef _2
using
UG2d
::
element_descriptors
;
#else
using
UG3d
::
element_descriptors
;
#endif
CORNERS_OF_SIDE
(
theElement
,
side
);
}
static
int
Corner_Of_Side
(
const
typename
TargetType
<
0
,
dim
>::
T
*
theElement
,
int
side
,
int
corner
)
{
#ifdef _2
using
UG2d
::
element_descriptors
;
#else
using
UG3d
::
element_descriptors
;
#endif
CORNER_OF_SIDE
(
theElement
,
side
,
corner
);
}
//! Encapsulates the TAG macro
static
unsigned
int
Tag
(
const
typename
TargetType
<
0
,
dim
>::
T
*
theElement
)
{
return
TAG
(
theElement
);
}
static
void
Local_To_Global
(
int
n
,
DOUBLE
**
y
,
const
FieldVector
<
double
,
dim
>&
local
,
FieldVector
<
double
,
dim
>&
global
)
{
...
...
@@ -89,12 +108,15 @@ namespace Dune {
* \param x Coordinates of the corners of the element
* \param local Local evaluation point
*
* \return The return type is int because the macro INVERSE_TRANSFORMATION
* return 1 on failure.
*/
static
void
Transformation
(
int
n
,
double
**
x
,
const
FieldVector
<
double
,
dim
>&
local
,
Mat
<
dim
,
dim
,
double
>&
mat
)
{
static
int
Transformation
(
int
n
,
double
**
x
,
const
FieldVector
<
double
,
dim
>&
local
,
Mat
<
dim
,
dim
,
double
>&
mat
)
{
typedef
DOUBLE
DOUBLE_VECTOR
[
dim
];
double
det
;
INVERSE_TRANSFORMATION
(
n
,
x
,
local
,
mat
,
det
);
INVERSE_TRANSFORMATION
(
n
,
x
,
local
,
mat
,
det
)
}
//! Returns the i-th corner of a UG element
...
...
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