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
Özgür Ozan Sen
ogs
Commits
a6493e7b
Commit
a6493e7b
authored
10 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[AsmL] Add number of global unknowns to DOF table.
parent
4a5e5e15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AssemblerLib/LocalToGlobalIndexMap.h
+6
-0
6 additions, 0 deletions
AssemblerLib/LocalToGlobalIndexMap.h
AssemblerLib/MeshComponentMap.h
+9
-0
9 additions, 0 deletions
AssemblerLib/MeshComponentMap.h
with
15 additions
and
0 deletions
AssemblerLib/LocalToGlobalIndexMap.h
+
6
−
0
View file @
a6493e7b
...
@@ -71,6 +71,12 @@ public:
...
@@ -71,6 +71,12 @@ public:
/// Returns total number of degrees of freedom.
/// Returns total number of degrees of freedom.
std
::
size_t
dofSize
()
const
;
std
::
size_t
dofSize
()
const
;
/// Returns total number of global degrees of freedom for DDC.
std
::
size_t
dofSizeGlobal
()
const
{
return
_mesh_component_map
.
getNGlobalUnknowns
();
}
std
::
size_t
size
()
const
;
std
::
size_t
size
()
const
;
RowColumnIndices
operator
[](
std
::
size_t
const
mesh_item_id
)
const
;
RowColumnIndices
operator
[](
std
::
size_t
const
mesh_item_id
)
const
;
...
...
This diff is collapsed.
Click to expand it.
AssemblerLib/MeshComponentMap.h
+
9
−
0
View file @
a6493e7b
...
@@ -115,6 +115,12 @@ public:
...
@@ -115,6 +115,12 @@ public:
std
::
vector
<
GlobalIndexType
>
getGlobalIndicesByComponent
(
std
::
vector
<
GlobalIndexType
>
getGlobalIndicesByComponent
(
const
std
::
vector
<
Location
>&
ls
)
const
;
const
std
::
vector
<
Location
>&
ls
)
const
;
/// Get the number of global unknowns.
std
::
size_t
getNGlobalUnknowns
()
const
{
return
_num_global_dof
;
}
/// A value returned if no global index was found for the requested
/// A value returned if no global index was found for the requested
/// location/component. The value is implementation dependent.
/// location/component. The value is implementation dependent.
static
GlobalIndexType
const
nop
;
static
GlobalIndexType
const
nop
;
...
@@ -150,6 +156,9 @@ private:
...
@@ -150,6 +156,9 @@ private:
private
:
private
:
detail
::
ComponentGlobalIndexDict
_dict
;
detail
::
ComponentGlobalIndexDict
_dict
;
/// Number of global unknowns.
std
::
size_t
_num_global_dof
=
0
;
};
};
}
// namespace AssemblerLib
}
// namespace AssemblerLib
...
...
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