Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
MostafaMollaali
dynamic
Commits
89a67805
Commit
89a67805
authored
6 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[NL] DOF; Test only base nodes for matching domain
parent
b9712c9b
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
NumLib/DOF/MeshComponentMap.cpp
+17
-12
17 additions, 12 deletions
NumLib/DOF/MeshComponentMap.cpp
with
17 additions
and
12 deletions
NumLib/DOF/MeshComponentMap.cpp
+
17
−
12
View file @
89a67805
...
...
@@ -159,6 +159,7 @@ MeshComponentMap MeshComponentMap::getSubset(
for
(
auto
*
const
node
:
new_mesh_subset
.
getNodes
())
{
auto
const
node_id
=
node
->
getID
();
bool
const
is_base_node
=
isBaseNode
(
*
node
);
MeshLib
::
Location
const
new_location
{
new_mesh_id
,
MeshLib
::
MeshItemType
::
Node
,
node_id
};
...
...
@@ -174,18 +175,22 @@ MeshComponentMap MeshComponentMap::getSubset(
getGlobalIndex
(
bulk_location
,
component_id
);
if
(
global_index
==
nop
)
{
OGS_FATAL
(
"Could not find a global index for global component %d for "
"the mesh '%s', node %d, in the corresponding bulk mesh "
"'%s' and node %d. This happens because the boundary mesh "
"is larger then the definition region of the bulk "
"component, usually because the geometry for the boundary "
"condition is too large."
,
component_id
,
new_mesh_subset
.
getMesh
().
getName
().
c_str
(),
node_id
,
bulk_mesh_subsets
.
front
().
getMesh
().
getName
().
c_str
(),
bulk_node_ids_map
[
node_id
]);
if
(
is_base_node
)
{
OGS_FATAL
(
"Could not find a global index for global component %d "
"for the mesh '%s', node %d, in the corresponding bulk "
"mesh '%s' and node %d. This happens because the "
"boundary mesh is larger then the definition region of "
"the bulk component, usually because the geometry for "
"the boundary condition is too large."
,
component_id
,
new_mesh_subset
.
getMesh
().
getName
().
c_str
(),
node_id
,
bulk_mesh_subsets
.
front
().
getMesh
().
getName
().
c_str
(),
bulk_node_ids_map
[
node_id
]);
}
continue
;
}
subset_dict
.
insert
({
new_location
,
component_id
,
global_index
});
}
...
...
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