Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
a874640c
Commit
a874640c
authored
Jul 15, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Finalize
parent
11b7dc34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/VCluster.cpp
src/VCluster.cpp
+1
-0
src/VCluster.hpp
src/VCluster.hpp
+14
-0
No files found.
src/VCluster.cpp
View file @
a874640c
...
...
@@ -4,3 +4,4 @@ Vcluster * global_v_cluster_private = NULL;
// number of vcluster instances
size_t
n_vcluster
=
0
;
bool
ofp_initialized
=
false
;
src/VCluster.hpp
View file @
a874640c
...
...
@@ -37,6 +37,8 @@
extern
size_t
n_vcluster
;
// Global MPI initialization
extern
bool
global_mpi_init
;
// initialization flag
extern
bool
ofp_initialized
;
///////////////////// Post functions /////////////
...
...
@@ -1004,6 +1006,16 @@ static inline Vcluster & create_vcluster()
return
*
global_v_cluster_private
;
}
/*! \brief Check if the library has been initialized
*
* \return true if the library has been initialized
*
*/
static
inline
bool
is_openfpm_init
()
{
return
ofp_initialized
;
}
/*! \brief Initialize the library
*
* This function MUST be called before any other function
...
...
@@ -1018,6 +1030,7 @@ static inline void openfpm_init(int *argc, char ***argv)
#endif
init_global_v_cluster_private
(
argc
,
argv
);
ofp_initialized
=
true
;
}
/*! \brief Finalize the library
...
...
@@ -1034,6 +1047,7 @@ static inline void openfpm_finalize()
#endif
delete_global_v_cluster_private
();
ofp_initialized
=
false
;
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment