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
Chaofan Chen
ogs
Commits
9cc75b52
Commit
9cc75b52
authored
3 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[PL] Removed one unneeded function
parent
a0afdef1
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/Utils/CreateLocalAssemblersTaylorHood.h
+11
-27
11 additions, 27 deletions
ProcessLib/Utils/CreateLocalAssemblersTaylorHood.h
with
11 additions
and
27 deletions
ProcessLib/Utils/CreateLocalAssemblersTaylorHood.h
+
11
−
27
View file @
9cc75b52
...
@@ -20,27 +20,6 @@ namespace ProcessLib
...
@@ -20,27 +20,6 @@ namespace ProcessLib
{
{
namespace
detail
namespace
detail
{
{
template
<
typename
LocalAssemblerFactory
,
int
GlobalDim
,
template
<
typename
,
typename
,
typename
,
int
>
class
LocalAssemblerImplementation
,
typename
LocalAssemblerInterface
,
typename
...
ExtraCtorArgs
>
void
createLocalAssemblersTaylorHood
(
std
::
vector
<
MeshLib
::
Element
*>
const
&
mesh_elements
,
NumLib
::
LocalToGlobalIndexMap
const
&
dof_table
,
std
::
vector
<
std
::
unique_ptr
<
LocalAssemblerInterface
>>&
local_assemblers
,
ExtraCtorArgs
&&
...
extra_ctor_args
)
{
DBUG
(
"Create local assemblers."
);
LocalAssemblerFactory
factory
(
dof_table
);
local_assemblers
.
resize
(
mesh_elements
.
size
());
DBUG
(
"Calling local assembler builder for all mesh elements."
);
GlobalExecutor
::
transformDereferenced
(
factory
,
mesh_elements
,
local_assemblers
,
std
::
forward
<
ExtraCtorArgs
>
(
extra_ctor_args
)...);
}
/*! Creates local assemblers for each element of the given \c mesh.
/*! Creates local assemblers for each element of the given \c mesh.
*
*
* \tparam LocalAssemblerFactory the factory that will instantiate the local
* \tparam LocalAssemblerFactory the factory that will instantiate the local
...
@@ -69,16 +48,21 @@ void createLocalAssemblersTaylorHood(
...
@@ -69,16 +48,21 @@ void createLocalAssemblersTaylorHood(
std
::
vector
<
std
::
unique_ptr
<
LocalAssemblerInterface
>>&
local_assemblers
,
std
::
vector
<
std
::
unique_ptr
<
LocalAssemblerInterface
>>&
local_assemblers
,
ExtraCtorArgs
&&
...
extra_ctor_args
)
ExtraCtorArgs
&&
...
extra_ctor_args
)
{
{
using
LocAsmFac
=
LocalAssemblerFactory
<
LocalAssemblerInterface
,
LocalAssemblerImplementation
,
GlobalDim
,
ExtraCtorArgs
...
>
;
DBUG
(
"Create local assemblers."
);
DBUG
(
"Create local assemblers."
);
createLocalAssemblersTaylorHood
<
LocAsmFac
factory
(
dof_table
);
L
ocal
A
ssembler
Factory
<
LocalAssemblerInterface
,
l
ocal
_a
ssembler
s
.
resize
(
mesh_elements
.
size
());
LocalAssemblerImplementation
,
GlobalDim
,
ExtraCtorArgs
...
>
,
DBUG
(
"Calling local assembler builder for all mesh elements."
);
Global
Dim
,
LocalAssemblerImplementation
>
(
Global
Executor
::
transformDereferenced
(
mesh_elements
,
dof_table
,
local_assemblers
,
factory
,
mesh_elements
,
local_assemblers
,
std
::
forward
<
ExtraCtorArgs
>
(
extra_ctor_args
)...);
std
::
forward
<
ExtraCtorArgs
>
(
extra_ctor_args
)...);
}
}
}
// namespace detail
}
// namespace detail
template
<
int
GlobalDim
,
template
<
int
GlobalDim
,
...
...
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