Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
openfpm
openfpm_pdata
Commits
54639409
Commit
54639409
authored
Jun 08, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing compilation in sbalzarini-mac-15
parent
dd71684e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
images/Makefile.am
images/Makefile.am
+1
-1
src/Grid/grid_dist_id.hpp
src/Grid/grid_dist_id.hpp
+15
-15
No files found.
images/Makefile.am
View file @
54639409
LINKLIBS
=
$(OPENMP_LDFLAGS)
$(LIBHILBERT_LIB)
$(PETSC_LIB)
$(METIS_LIB)
$(PARMETIS_LIB)
$(PTHREAD_LIBS)
$(OPT_LIBS)
$(BOOST_LDFLAGS)
$(BOOST_IOSTREAMS_LIB)
$(CUDA_LIBS)
LINKLIBS
=
$(HDF5_LDFLAGS)
$(HDF5_LIBS)
$(OPENMP_LDFLAGS)
$(LIBHILBERT_LIB)
$(PETSC_LIB)
$(METIS_LIB)
$(PARMETIS_LIB)
$(PTHREAD_LIBS)
$(OPT_LIBS)
$(BOOST_LDFLAGS)
$(BOOST_IOSTREAMS_LIB)
$(CUDA_LIBS)
noinst_PROGRAMS
=
cart_dec metis_dec dom_box vector_dist
cart_dec_SOURCES
=
CartDecomposition_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
...
...
src/Grid/grid_dist_id.hpp
View file @
54639409
...
...
@@ -1155,9 +1155,12 @@ public:
* \return the selected element
*
*/
template
<
unsigned
int
p
>
inline
auto
get
Prop
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
const
->
decltype
(
this
->
template
get
<
p
>(
v1
))
template
<
unsigned
int
p
>
inline
auto
get
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
const
->
typename
std
::
add_lvalue_reference
<
decltype
(
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
()))
>::
type
{
return
this
->
template
get
<
p
>(
v1
);
#ifdef SE_CLASS2
check_valid
(
this
,
8
);
#endif
return
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
());
}
/*! \brief Get the reference of the selected element
...
...
@@ -1168,12 +1171,14 @@ public:
* \return the selected element
*
*/
template
<
unsigned
int
p
>
inline
auto
get
Prop
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
->
decltype
(
this
->
template
get
<
p
>(
v1
))
template
<
unsigned
int
p
>
inline
auto
get
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
->
typename
std
::
add_lvalue_reference
<
decltype
(
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
()))
>::
type
{
return
this
->
template
get
<
p
>(
v1
);
#ifdef SE_CLASS2
check_valid
(
this
,
8
);
#endif
return
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
());
}
/*! \brief Get the reference of the selected element
*
* \tparam p property to get (is an integer)
...
...
@@ -1182,12 +1187,9 @@ public:
* \return the selected element
*
*/
template
<
unsigned
int
p
>
inline
auto
get
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
const
->
typename
std
::
add_lvalue_reference
<
decltype
(
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
()))
>::
type
template
<
unsigned
int
p
>
inline
auto
get
Prop
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
const
->
decltype
(
this
->
template
get
<
p
>(
v1
))
{
#ifdef SE_CLASS2
check_valid
(
this
,
8
);
#endif
return
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
());
return
this
->
template
get
<
p
>(
v1
);
}
/*! \brief Get the reference of the selected element
...
...
@@ -1198,14 +1200,12 @@ public:
* \return the selected element
*
*/
template
<
unsigned
int
p
>
inline
auto
get
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
->
typename
std
::
add_lvalue_reference
<
decltype
(
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
()))
>::
type
template
<
unsigned
int
p
>
inline
auto
get
Prop
(
const
grid_dist_key_dx
<
dim
>
&
v1
)
->
decltype
(
this
->
template
get
<
p
>(
v1
))
{
#ifdef SE_CLASS2
check_valid
(
this
,
8
);
#endif
return
loc_grid
.
get
(
v1
.
getSub
()).
template
get
<
p
>(
v1
.
getKey
());
return
this
->
template
get
<
p
>(
v1
);
}
//! Flag that indicate if the external ghost box has been initialized
bool
init_e_g_box
=
false
;
...
...
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