Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
037120da
Commit
037120da
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Rename ItemValueSynchronizer to Synchronizer
parent
895ae053
No related branches found
No related tags found
1 merge request
!11
Feature/mpi
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/ItemValueSynchronizer.hpp
+5
-5
5 additions, 5 deletions
src/mesh/ItemValueSynchronizer.hpp
src/mesh/ItemValueUtils.hpp
+1
-1
1 addition, 1 deletion
src/mesh/ItemValueUtils.hpp
with
6 additions
and
6 deletions
src/mesh/ItemValueSynchronizer.hpp
+
5
−
5
View file @
037120da
#ifndef
ITEM_VALUE_
SYNCHRONIZER_HPP
#ifndef SYNCHRONIZER_HPP
#define
ITEM_VALUE_
SYNCHRONIZER_HPP
#define SYNCHRONIZER_HPP
#include
<ItemValue.hpp>
#include
<ItemValue.hpp>
#include
<Connectivity.hpp>
#include
<Connectivity.hpp>
#include
<map>
#include
<map>
class
ItemValue
Synchronizer
class
Synchronizer
{
{
template
<
ItemType
item_type
>
template
<
ItemType
item_type
>
using
ExchangeItemTypeInfo
=
std
::
vector
<
Array
<
const
ItemIdT
<
item_type
>>>
;
using
ExchangeItemTypeInfo
=
std
::
vector
<
Array
<
const
ItemIdT
<
item_type
>>>
;
...
@@ -196,10 +196,10 @@ class ItemValueSynchronizer
...
@@ -196,10 +196,10 @@ class ItemValueSynchronizer
}
}
PASTIS_INLINE
PASTIS_INLINE
ItemValue
Synchronizer
()
Synchronizer
()
{
{
;
;
}
}
};
};
#endif //
ITEM_VALUE_
SYNCHRONIZER_HPP
#endif // SYNCHRONIZER_HPP
This diff is collapsed.
Click to expand it.
src/mesh/ItemValueUtils.hpp
+
1
−
1
View file @
037120da
...
@@ -300,7 +300,7 @@ void synchronize(ItemValue<DataType, item_type, ConnectivityPtr>& item_value)
...
@@ -300,7 +300,7 @@ void synchronize(ItemValue<DataType, item_type, ConnectivityPtr>& item_value)
{
{
static_assert
(
not
std
::
is_const_v
<
DataType
>
,
"cannot synchronize ItemValue of const data"
);
static_assert
(
not
std
::
is_const_v
<
DataType
>
,
"cannot synchronize ItemValue of const data"
);
if
(
parallel
::
size
()
>
1
)
{
if
(
parallel
::
size
()
>
1
)
{
static
ItemValue
Synchronizer
synchronizer
;
static
Synchronizer
synchronizer
;
synchronizer
.
synchronize
(
item_value
);
synchronizer
.
synchronize
(
item_value
);
}
}
}
}
...
...
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