Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
92b61811
Commit
92b61811
authored
7 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[PL] RichardsComponentTransport: Save element id.
parent
079f7c96
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
ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h
+7
-7
7 additions, 7 deletions
...ichardsComponentTransport/RichardsComponentTransportFEM.h
with
7 additions
and
7 deletions
ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h
+
7
−
7
View file @
92b61811
...
@@ -103,7 +103,7 @@ public:
...
@@ -103,7 +103,7 @@ public:
bool
is_axially_symmetric
,
bool
is_axially_symmetric
,
unsigned
const
integration_order
,
unsigned
const
integration_order
,
RichardsComponentTransportProcessData
const
&
process_data
)
RichardsComponentTransportProcessData
const
&
process_data
)
:
_element
(
element
),
:
_element
_id
(
element
.
getID
()
),
_process_data
(
process_data
),
_process_data
(
process_data
),
_integration_method
(
integration_order
)
_integration_method
(
integration_order
)
{
{
...
@@ -155,7 +155,7 @@ public:
...
@@ -155,7 +155,7 @@ public:
_integration_method
.
getNumberOfPoints
();
_integration_method
.
getNumberOfPoints
();
SpatialPosition
pos
;
SpatialPosition
pos
;
pos
.
setElementID
(
_element
.
getID
()
);
pos
.
setElementID
(
_element
_id
);
auto
const
num_nodes
=
ShapeFunction
::
NPOINTS
;
auto
const
num_nodes
=
ShapeFunction
::
NPOINTS
;
auto
p_nodal_values
=
auto
p_nodal_values
=
...
@@ -307,7 +307,7 @@ public:
...
@@ -307,7 +307,7 @@ public:
unsigned
const
n_integration_points
=
unsigned
const
n_integration_points
=
_integration_method
.
getNumberOfPoints
();
_integration_method
.
getNumberOfPoints
();
auto
const
indices
=
NumLib
::
getIndices
(
_element
.
getID
()
,
dof_table
);
auto
const
indices
=
NumLib
::
getIndices
(
_element
_id
,
dof_table
);
assert
(
!
indices
.
empty
());
assert
(
!
indices
.
empty
());
auto
const
local_x
=
current_solution
.
get
(
indices
);
auto
const
local_x
=
current_solution
.
get
(
indices
);
...
@@ -317,7 +317,7 @@ public:
...
@@ -317,7 +317,7 @@ public:
cache
,
GlobalDim
,
n_integration_points
);
cache
,
GlobalDim
,
n_integration_points
);
SpatialPosition
pos
;
SpatialPosition
pos
;
pos
.
setElementID
(
_element
.
getID
()
);
pos
.
setElementID
(
_element
_id
);
MaterialLib
::
Fluid
::
FluidProperty
::
ArrayType
vars
;
MaterialLib
::
Fluid
::
FluidProperty
::
ArrayType
vars
;
...
@@ -390,12 +390,12 @@ public:
...
@@ -390,12 +390,12 @@ public:
std
::
vector
<
double
>&
cache
)
const
override
std
::
vector
<
double
>&
cache
)
const
override
{
{
SpatialPosition
pos
;
SpatialPosition
pos
;
pos
.
setElementID
(
_element
.
getID
()
);
pos
.
setElementID
(
_element
_id
);
unsigned
const
n_integration_points
=
unsigned
const
n_integration_points
=
_integration_method
.
getNumberOfPoints
();
_integration_method
.
getNumberOfPoints
();
auto
const
indices
=
NumLib
::
getIndices
(
_element
.
getID
()
,
dof_table
);
auto
const
indices
=
NumLib
::
getIndices
(
_element
_id
,
dof_table
);
assert
(
!
indices
.
empty
());
assert
(
!
indices
.
empty
());
auto
const
local_x
=
current_solution
.
get
(
indices
);
auto
const
local_x
=
current_solution
.
get
(
indices
);
...
@@ -427,7 +427,7 @@ public:
...
@@ -427,7 +427,7 @@ public:
}
}
private
:
private
:
MeshLib
::
Element
const
&
_element
;
unsigned
const
_element
_id
;
RichardsComponentTransportProcessData
const
&
_process_data
;
RichardsComponentTransportProcessData
const
&
_process_data
;
IntegrationMethod
const
_integration_method
;
IntegrationMethod
const
_integration_method
;
...
...
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