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
Merge requests
!128
Feature/unit tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/unit tests
feature/unit-tests
into
develop
Overview
0
Commits
13
Pipelines
0
Changes
3
Merged
Feature/unit tests
Stéphane Del Pino
requested to merge
feature/unit-tests
into
develop
Feb 14, 2022
Overview
0
Commits
13
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
76c29359
Prev
Next
Show latest version
3 files
+
479
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
76c29359
Add tests for Synchronizer
· 76c29359
Stéphane Del Pino
authored
Feb 14, 2022
src/mesh/Synchronizer.hpp
+
28
−
0
View file @ 76c29359
Edit in single-file editor
Open in Web IDE
Show full file
@@ -7,9 +7,13 @@
#include
<utils/Exceptions.hpp>
#include
<utils/Messenger.hpp>
#include
<utils/pugs_config.hpp>
#include
<iostream>
#include
<map>
#ifdef PUGS_HAS_MPI
class
Synchronizer
{
template
<
ItemType
item_type
>
@@ -289,4 +293,28 @@ class Synchronizer
}
};
#else // PUGS_HAS_MPI
class
Synchronizer
{
public:
template
<
typename
DataType
,
ItemType
item_type
,
typename
ConnectivityPtr
>
PUGS_INLINE
void
synchronize
(
ItemValue
<
DataType
,
item_type
,
ConnectivityPtr
>&
)
{}
template
<
typename
DataType
,
ItemType
item_type
,
typename
ConnectivityPtr
>
PUGS_INLINE
void
synchronize
(
ItemArray
<
DataType
,
item_type
,
ConnectivityPtr
>&
)
{}
PUGS_INLINE
Synchronizer
()
{
;
}
};
#endif // PUGS_HAS_MPI
#endif // SYNCHRONIZER_HPP
Loading