Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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_pdata
Commits
3e8f38be
Commit
3e8f38be
authored
4 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing Sparse grid surface
parent
37db60c8
No related branches found
No related tags found
No related merge requests found
Pipeline
#2862
passed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/Makefile
+1
-1
1 addition, 1 deletion
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/Makefile
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/main.cpp
+3
-3
3 additions, 3 deletions
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/main.cpp
with
4 additions
and
4 deletions
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/Makefile
+
1
−
1
View file @
3e8f38be
...
...
@@ -16,7 +16,7 @@ gray_scott_sparse_surface_cs: $(OBJ)
all
:
gray_scott_sparse_surface_cs
run
:
gray_scott_sparse_
cs_
surface_test
run
:
gray_scott_sparse_surface_
cs_
test
mpirun
-np
4 ./gray_scott_sparse_surface_cs
.PHONY
:
clean all run
...
...
This diff is collapsed.
Click to expand it.
example/SparseGrid/5_gray_scott_3d_surface_cs_opt/main.cpp
+
3
−
3
View file @
3e8f38be
...
...
@@ -90,7 +90,7 @@ void extend(sgrid_type & grid, size_t (& sz)[3],double (& spacing)[3])
double
delta
=
1e-10
;
double
max
=
0.0
;
auto
func_extend
=
[
&
grid
,
delta
,
&
spacing
](
auto
&
grid
,
auto
&
ids
,
auto
func_extend
=
[
delta
,
&
spacing
](
auto
&
grid
,
auto
&
ids
,
unsigned
char
*
mask_sum
)
{
Vc
::
double_v
phi_c
;
...
...
@@ -238,7 +238,7 @@ int main(int argc, char* argv[])
for
(
size_t
i
=
0
;
i
<
timeSteps
;
++
i
)
{
auto
func_grad
=
[
&
grid
,
&
spacing
](
auto
&
grid
,
auto
&
ids
,
auto
func_grad
=
[
&
spacing
](
auto
&
grid
,
auto
&
ids
,
unsigned
char
*
mask_sum
){
Vc
::
double_v
n
[
3
];
...
...
@@ -302,7 +302,7 @@ int main(int argc, char* argv[])
grid
.
template
conv_cross_ids
<
1
,
double
>({
0
,
0
,
0
},{
sz
[
0
]
-
1
,
sz
[
1
]
-
1
,
sz
[
2
]
-
1
},
func_grad
);
auto
func_lap
=
[
&
grid
,
&
spacing
,
uFactor
,
vFactor
,
deltaT
,
K
,
F
](
auto
&
grid
,
auto
&
ids
,
auto
func_lap
=
[
&
spacing
,
uFactor
,
vFactor
,
deltaT
,
K
,
F
](
auto
&
grid
,
auto
&
ids
,
unsigned
char
*
mask_sum
){
Vc
::
double_v
gradU_px
;
...
...
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