-
Notifications
You must be signed in to change notification settings - Fork 51
Implement a region calculus #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eschnett
wants to merge
75
commits into
openPMD:dev
Choose a base branch
from
eschnett:eschnett/regioncalculus
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 66 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
47cb769
Import region calculus functions
eschnett 84796f8
Add example classes `point` and `ndpoint`
eschnett 7eb8dbe
Re-write Point class
eschnett 5d0e233
Implement Regions::Box
eschnett 40232dd
Clean up namespaces
eschnett 3e39868
First cut at bounding box sets
eschnett 83c48f4
More tests (and error corrections) for regions
eschnett 11d512d
Add example. Use C++17 for regions.
eschnett b4d05e5
Add missing include files
eschnett 860ffc4
Correct #include statements
eschnett 6e83f3a
Avoid some compiler warnings
eschnett e94bf59
Mark function argument as used
eschnett 940d57f
Avoid more compiler warnings
eschnett 5b9a95c
Avoid compiler warnings
eschnett 529b4ac
Avoid compiler warnings
eschnett 75d5661
Avoid compiler warnings
eschnett 01ff022
Avoid compiler warnings
eschnett b5c0138
Avoid compiler warnings
eschnett 1f76327
Avoid compiler warnings
eschnett e0b85dc
CI: Use GCC 7 instead of GCC 5
eschnett 483bd2a
Avoid compiler warnings
eschnett 8b3b3ad
Correct integer division by zero
eschnett 331b48b
Correct equality and comparison operators
eschnett f1f3c11
cmake: New option for C++17
eschnett cf46121
Switch back to GCC5
eschnett 0751fca
Avoid compiler warnings
eschnett ac9af25
CI: Enable C++17 where supported
eschnett e144d3a
Make comparison manifestly type-safe
eschnett c7b8cf2
Disable C++ on systems where it doesn't work
eschnett 4b373a6
Try to avoid comparison failures
eschnett bdd1971
Avoid compiler warnings
eschnett 77358ae
Try to allow comparing infinities
eschnett 99a6e62
CI: Disable C++17 for clang-tidy
eschnett 055ffb7
Update catch2 calls
eschnett 1463411
CI: Enable debug info
eschnett a689ecf
Add debug statements
eschnett fadb375
More debug tests
eschnett b145c02
Correct illegal memory access
eschnett 686d14d
Beautify output in example 13
eschnett 2ac1e7f
New constructor NDPoint(Point)
eschnett 3fb5920
Try to appease icpc
eschnett fb084cc
Complete regions example
eschnett 6fa5863
Rename set property functions
eschnett c09057f
Merge branch 'dev' into eschnett/regioncalculus
eschnett 3bedaee
Merge branch 'dev' into eschnett/regioncalculus
eschnett 3a45617
Update example
eschnett 2f5018f
Make region algebra optional
eschnett 84d9108
Require C++17 for the region algebra
eschnett e9a46cd
Remove unintended CMakeLists change
eschnett c59bc20
CI: Update regions options
eschnett 5d76387
Merge branch 'dev' into eschnett/regioncalculus
eschnett b5afb43
Implement NDBox
eschnett 5145971
CMake: Debug regions settings
eschnett 7d65e4d
CMake: Remove debug output
eschnett 6159f94
Implement NDRegion
eschnett 93cc8d3
CMake: Correct C++17 tests
eschnett aa6b0be
CI: Disable regions on icc
eschnett c435db2
Tests: Compare ndims with signed integer
eschnett 93ad888
CI: Debug
eschnett 0c46a71
CI: Disable regions on Windows
eschnett 68d409a
CI: Correct typo
eschnett 2fd5c9b
Regions: Add comments
eschnett a2f07e7
Regions: Remove unused code
eschnett 10fe81b
Regions: Document boxes
eschnett 15399b1
Document Regionss
eschnett c436db6
Merge branch 'dev' into eschnett/regioncalculus
eschnett 8d1de67
Merge branch 'dev' into eschnett/regioncalculus
eschnett 8f843cc
Remove unwanted files
eschnett 092569f
Use `#pragma once`
eschnett d617383
Abort when openPMD_USE_REGIONS is requested, but C++17 is not supported
eschnett 36551f2
Use `using` instead of `typedef`
eschnett 23f2133
cmake: Disable Regions by default
eschnett 5939968
Don't use std::ptrdiff type
franzpoeschel 368d2f3
Merge pull request #1 from franzpoeschel/regioncalculus-warnings
eschnett 32424d8
Merge branch 'dev' into eschnett/regioncalculus
eschnett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
.github/ci/spack-envs/gcc7_py36_ompi_h5_ad1_ad2/spack.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# This is a Spack environment file. | ||
# | ||
# Activating and installing this environment will provide all dependencies | ||
# that are needed for full-feature development. | ||
# https//spack.readthedocs.io/en/latest/environments.html#anonymous-environments | ||
# | ||
spack: | ||
specs: | ||
- adios | ||
- adios2 | ||
- hdf5 | ||
- openmpi | ||
|
||
packages: | ||
adios: | ||
variants: ~zfp ~sz ~lz4 ~blosc | ||
adios2: | ||
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2 | ||
cmake: | ||
externals: | ||
- spec: "cmake" | ||
prefix: /usr | ||
buildable: False | ||
openmpi: | ||
externals: | ||
- spec: "openmpi" | ||
prefix: /usr | ||
buildable: False | ||
perl: | ||
externals: | ||
- spec: "perl" | ||
prefix: /usr | ||
buildable: False | ||
python: | ||
externals: | ||
- spec: "python" | ||
prefix: /usr | ||
buildable: False | ||
all: | ||
target: ['x86_64'] | ||
variants: ~fortran | ||
compiler: [[email protected]] | ||
|
||
compilers: | ||
- compiler: | ||
environment: {} | ||
extra_rpaths: [] | ||
flags: {} | ||
modules: [] | ||
operating_system: ubuntu18.04 | ||
paths: | ||
cc: /usr/bin/gcc-7 | ||
cxx: /usr/bin/g++-7 | ||
f77: /usr/bin/gfortran | ||
fc: /usr/bin/gfortran | ||
spec: [email protected] | ||
target: x86_64 | ||
|
||
config: | ||
build_jobs: 2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.