Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_numerics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_numerics
Commits
d2ebc57b
Commit
d2ebc57b
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing osx
parent
18cb8a75
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Solvers/petsc_solver_AMG_report.hpp
+1
-0
1 addition, 0 deletions
src/Solvers/petsc_solver_AMG_report.hpp
src/Vector/Vector_util.hpp
+33
-3
33 additions, 3 deletions
src/Vector/Vector_util.hpp
with
34 additions
and
3 deletions
src/Solvers/petsc_solver_AMG_report.hpp
+
1
−
0
View file @
d2ebc57b
...
...
@@ -95,6 +95,7 @@ class petsc_AMG_report
Vcluster
&
v_cl
=
create_vcluster
();
v_cl
.
max
(
time1
);
v_cl
.
max
(
time2
);
v_cl
.
execute
();
// Save the result
AMG_time_err_coars
tmp
;
...
...
This diff is collapsed.
Click to expand it.
src/Vector/Vector_util.hpp
+
33
−
3
View file @
d2ebc57b
...
...
@@ -23,6 +23,18 @@
template
<
typename
copy_type
,
typename
T
,
typename
Ev
,
typename
Eqs_sys
,
int
sa
>
struct
copy_ele_sca_array
{
/*! \brief Constructor
*
* It define the copy parameters.
*
* \param key destination position
* \param grid_dst grid destination
* \param x Source vector
* \param lin_id source element inside the vector
* \param gs_size grid size
* \param base_id processor id start
*
*/
template
<
typename
Grid
>
inline
static
void
copy
(
Grid
&
grid_dst
,
const
grid_dist_key_dx
<
Eqs_sys
::
dims
>
&
key
,
const
Ev
&
x
,
size_t
lin_id
,
size_t
base_id
,
size_t
gs_size
)
{
grid_dst
.
template
get
<
T
::
value
>(
key
)
=
x
(
lin_id
*
Eqs_sys
::
nvar
+
base_id
);
...
...
@@ -41,6 +53,18 @@ struct copy_ele_sca_array
template
<
typename
copy_type
,
typename
T
,
typename
Ev
,
typename
Eqs_sys
>
struct
copy_ele_sca_array
<
copy_type
,
T
,
Ev
,
Eqs_sys
,
1
>
{
/*! \brief Constructor
*
* It define the copy parameters.
*
* \param key destination position
* \param grid_dst grid destination
* \param x Source vector
* \param lin_id source element inside the vector
* \param gs_size grid size
* \param base_id processor id start
*
*/
template
<
typename
Grid
>
inline
static
void
copy
(
Grid
&
grid_dst
,
const
grid_dist_key_dx
<
Eqs_sys
::
dims
>
&
key
,
const
Ev
&
x
,
size_t
lin_id
,
size_t
base_id
,
size_t
gs_size
)
{
for
(
size_t
i
=
0
;
i
<
std
::
extent
<
copy_type
>::
value
;
i
++
)
...
...
@@ -84,13 +108,15 @@ struct copy_ele
//! source vector
const
Ev
&
x
;
/*! \brief
c
onstructor
/*! \brief
C
onstructor
*
* It define the copy parameters.
*
* \param key destination position
* \param grid_dst grid destination
* \param v Source vector
* \param x Source vector
* \param lin_id source element inside the vector
* \param gs_size grid size
*
*/
inline
copy_ele
(
const
grid_dist_key_dx
<
Eqs_sys
::
dims
>
&
key
,
S
&
grid_dst
,
const
Ev
&
x
,
size_t
lin_id
,
size_t
gs_size
)
...
...
@@ -109,7 +135,11 @@ struct copy_ele
{
std
::
cerr
<<
"Error: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" Passing a temporal object"
;};
#endif
//! It call the copy function for each property
/*! \brief It call the copy function for each property
*
* \param t property id
*
*/
template
<
typename
T
>
inline
void
operator
()(
T
&
t
)
{
...
...
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