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
13d5b7a1
Commit
13d5b7a1
authored
4 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[PL/DS] Fix spelling of class name.
parent
5cc7b455
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/DeactivatedSubdomain.cpp
+5
-5
5 additions, 5 deletions
ProcessLib/DeactivatedSubdomain.cpp
ProcessLib/DeactivatedSubdomain.h
+4
-4
4 additions, 4 deletions
ProcessLib/DeactivatedSubdomain.h
with
9 additions
and
9 deletions
ProcessLib/DeactivatedSubdomain.cpp
+
5
−
5
View file @
13d5b7a1
...
@@ -24,7 +24,7 @@ namespace ProcessLib
...
@@ -24,7 +24,7 @@ namespace ProcessLib
const
std
::
string
DeactivatedSubdomain
::
zero_parameter_name
=
const
std
::
string
DeactivatedSubdomain
::
zero_parameter_name
=
"zero_for_element_deactivation_approach"
;
"zero_for_element_deactivation_approach"
;
Deactiv
e
tedSubdomainMesh
::
Deactiv
e
tedSubdomainMesh
(
Deactiv
a
tedSubdomainMesh
::
Deactiv
a
tedSubdomainMesh
(
std
::
unique_ptr
<
MeshLib
::
Mesh
>
deactivated_subdomain_mesh_
,
std
::
unique_ptr
<
MeshLib
::
Mesh
>
deactivated_subdomain_mesh_
,
std
::
vector
<
MeshLib
::
Node
*>&&
inner_nodes_
)
std
::
vector
<
MeshLib
::
Node
*>&&
inner_nodes_
)
:
mesh
(
std
::
move
(
deactivated_subdomain_mesh_
)),
:
mesh
(
std
::
move
(
deactivated_subdomain_mesh_
)),
...
@@ -35,7 +35,7 @@ DeactivetedSubdomainMesh::DeactivetedSubdomainMesh(
...
@@ -35,7 +35,7 @@ DeactivetedSubdomainMesh::DeactivetedSubdomainMesh(
DeactivatedSubdomain
::
DeactivatedSubdomain
(
DeactivatedSubdomain
::
DeactivatedSubdomain
(
std
::
unique_ptr
<
BaseLib
::
TimeInterval
>
time_interval_
,
std
::
unique_ptr
<
BaseLib
::
TimeInterval
>
time_interval_
,
std
::
vector
<
int
>&&
materialIDs_
,
std
::
vector
<
int
>&&
materialIDs_
,
std
::
vector
<
std
::
unique_ptr
<
Deactiv
e
tedSubdomainMesh
>>&&
std
::
vector
<
std
::
unique_ptr
<
Deactiv
a
tedSubdomainMesh
>>&&
deactivated_subdomain_meshes_
)
deactivated_subdomain_meshes_
)
:
time_interval
(
std
::
move
(
time_interval_
)),
:
time_interval
(
std
::
move
(
time_interval_
)),
materialIDs
(
std
::
move
(
materialIDs_
)),
materialIDs
(
std
::
move
(
materialIDs_
)),
...
@@ -83,7 +83,7 @@ static std::vector<MeshLib::Node*> extractInnerNodes(
...
@@ -83,7 +83,7 @@ static std::vector<MeshLib::Node*> extractInnerNodes(
return
inner_nodes
;
return
inner_nodes
;
}
}
static
std
::
unique_ptr
<
Deactiv
e
tedSubdomainMesh
>
createDeactivatedSubdomainMesh
(
static
std
::
unique_ptr
<
Deactiv
a
tedSubdomainMesh
>
createDeactivatedSubdomainMesh
(
MeshLib
::
Mesh
const
&
mesh
,
int
const
material_id
)
MeshLib
::
Mesh
const
&
mesh
,
int
const
material_id
)
{
{
// An element is active if its material id matches the selected material id.
// An element is active if its material id matches the selected material id.
...
@@ -104,7 +104,7 @@ static std::unique_ptr<DeactivetedSubdomainMesh> createDeactivatedSubdomainMesh(
...
@@ -104,7 +104,7 @@ static std::unique_ptr<DeactivetedSubdomainMesh> createDeactivatedSubdomainMesh(
MeshLib
::
cloneElements
(
deactivated_elements
));
MeshLib
::
cloneElements
(
deactivated_elements
));
auto
inner_nodes
=
extractInnerNodes
(
mesh
,
*
sub_mesh
,
is_active
);
auto
inner_nodes
=
extractInnerNodes
(
mesh
,
*
sub_mesh
,
is_active
);
return
std
::
make_unique
<
Deactiv
e
tedSubdomainMesh
>
(
return
std
::
make_unique
<
Deactiv
a
tedSubdomainMesh
>
(
std
::
move
(
sub_mesh
),
std
::
move
(
inner_nodes
));
std
::
move
(
sub_mesh
),
std
::
move
(
inner_nodes
));
}
}
...
@@ -137,7 +137,7 @@ std::unique_ptr<DeactivatedSubdomain const> createDeactivatedSubdomain(
...
@@ -137,7 +137,7 @@ std::unique_ptr<DeactivatedSubdomain const> createDeactivatedSubdomain(
"The program terminates now."
);
"The program terminates now."
);
}
}
std
::
vector
<
std
::
unique_ptr
<
Deactiv
e
tedSubdomainMesh
>>
std
::
vector
<
std
::
unique_ptr
<
Deactiv
a
tedSubdomainMesh
>>
deactivated_subdomain_meshes
;
deactivated_subdomain_meshes
;
deactivated_subdomain_meshes
.
reserve
(
deactivated_subdomain_meshes
.
reserve
(
deactivated_subdomain_material_ids
.
size
());
deactivated_subdomain_material_ids
.
size
());
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/DeactivatedSubdomain.h
+
4
−
4
View file @
13d5b7a1
...
@@ -35,9 +35,9 @@ class Node;
...
@@ -35,9 +35,9 @@ class Node;
namespace
ProcessLib
namespace
ProcessLib
{
{
struct
Deactiv
e
tedSubdomainMesh
struct
Deactiv
a
tedSubdomainMesh
{
{
Deactiv
e
tedSubdomainMesh
(
Deactiv
a
tedSubdomainMesh
(
std
::
unique_ptr
<
MeshLib
::
Mesh
>
deactivated_subdomain_mesh_
,
std
::
unique_ptr
<
MeshLib
::
Mesh
>
deactivated_subdomain_mesh_
,
std
::
vector
<
MeshLib
::
Node
*>&&
inner_nodes_
);
std
::
vector
<
MeshLib
::
Node
*>&&
inner_nodes_
);
...
@@ -50,7 +50,7 @@ struct DeactivatedSubdomain
...
@@ -50,7 +50,7 @@ struct DeactivatedSubdomain
DeactivatedSubdomain
(
DeactivatedSubdomain
(
std
::
unique_ptr
<
BaseLib
::
TimeInterval
>
time_interval_
,
std
::
unique_ptr
<
BaseLib
::
TimeInterval
>
time_interval_
,
std
::
vector
<
int
>&&
materialIDs_
,
std
::
vector
<
int
>&&
materialIDs_
,
std
::
vector
<
std
::
unique_ptr
<
Deactiv
e
tedSubdomainMesh
>>&&
std
::
vector
<
std
::
unique_ptr
<
Deactiv
a
tedSubdomainMesh
>>&&
deactivated_subdomain_meshes_
);
deactivated_subdomain_meshes_
);
bool
includesTimeOf
(
double
const
t
)
const
;
bool
includesTimeOf
(
double
const
t
)
const
;
...
@@ -60,7 +60,7 @@ struct DeactivatedSubdomain
...
@@ -60,7 +60,7 @@ struct DeactivatedSubdomain
/// The material IDs of the deactivated the subdomains
/// The material IDs of the deactivated the subdomains
std
::
vector
<
int
>
const
materialIDs
;
std
::
vector
<
int
>
const
materialIDs
;
std
::
vector
<
std
::
unique_ptr
<
Deactiv
e
tedSubdomainMesh
>>
const
std
::
vector
<
std
::
unique_ptr
<
Deactiv
a
tedSubdomainMesh
>>
const
deactivated_subdomain_meshes
;
deactivated_subdomain_meshes
;
static
const
std
::
string
zero_parameter_name
;
static
const
std
::
string
zero_parameter_name
;
...
...
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