Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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_pdata
Commits
307117f8
Commit
307117f8
authored
Dec 15, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Grid iterator Cells
parent
5fa03e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/Amr/grid_dist_amr.hpp
src/Amr/grid_dist_amr.hpp
+19
-0
No files found.
src/Amr/grid_dist_amr.hpp
View file @
307117f8
...
...
@@ -210,6 +210,25 @@ public:
return
gd_array
.
get
(
lvl
).
getGridIterator
();
}
/*! \brief Get an iterator to the grid
*
* \return an iterator to the grid
*
*/
auto
getGridIteratorCells
(
size_t
lvl
)
->
decltype
(
gd_array
.
get
(
lvl
).
getGridIterator
())
{
grid_key_dx
<
dim
>
start
;
grid_key_dx
<
dim
>
stop
;
for
(
size_t
j
=
0
;
j
<
dim
;
j
++
)
{
start
.
set_d
(
j
,
0
);
stop
.
set_d
(
j
,
getGridInfoVoid
(
lvl
).
size
(
j
)
-
2
);
}
return
gd_array
.
get
(
lvl
).
getGridIterator
(
start
,
stop
);
}
/*! \brief Get domain iterator
*
* \return an iterator over all the grid levels
...
...
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