-
Notifications
You must be signed in to change notification settings - Fork 19
halo exchange integration #744
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
b78efb9
feat: added metadata info on neighbours
TomMelt 0c63053
feat: additional metadata for send recv buffers
TomMelt cec50d7
tests: update to reflect new metadata
TomMelt 057d69c
tests: update metadata file for testRectGrid
TomMelt dca50ff
chore: fix mpi.h include error
TomMelt 672e637
chore: fix CMakeLists for mpi tests
TomMelt 847ba27
test: working example of halo exchange
TomMelt fd4c916
feat: separate halo exchange logic into class
TomMelt b00e907
chore: fixes for halo logic after merge request
TomMelt 5467eb1
feat: convert ModelMetadata to singleton
TomMelt 1af24e4
Merge branch 'develop' into halo-exchange
TomMelt e217392
chore: simplify ParaGrid_test to use same metadata throughout
TomMelt d70ad3d
feat: refactor MPI metadata into singleton
TomMelt da75bdd
chore: remove unused code
TomMelt d841540
feat: only write inner block to disk
TomMelt e57ce15
test: update halo tests
TomMelt baea962
bug: forcing data is now offset correctly
TomMelt 0bbf09a
Set all ModelArray values to zero on resize()
einola 786c157
feat: refactor periodic and non-periodic metadata
TomMelt 6ae20c8
wip: initial working impl of eigenSlice
TomMelt 58c1077
wip: weird memory bug for DGField
TomMelt 3497706
wip: weird memory bug for DGField
TomMelt 02f2711
wip: tidied eigenslice test
TomMelt d7224c6
wip: fix testParaGrid_MPI2
TomMelt 271ce05
wip: eigen slice dump before removing it
TomMelt ea17449
wip: remove eigenslice
TomMelt 59b25ef
wip: halo exchange now supports all field types
TomMelt 1be8230
wip: fix most halo but some tests still broken
TomMelt afc3d55
test: ConfigOutput now uses partition_metadata for example
TomMelt 604bee4
test: fix paragrid test to run for serial case
TomMelt 2135cd1
test: remove physic tests from MPI as they are serial
TomMelt f142a56
test: remove frontmatter date and file
TomMelt 4ca7363
test: remove frontmatter blank lines
TomMelt 5ea65d0
test: author ensure 2 spaces
TomMelt b408562
Merge branch 'develop' into halo-exchange
TomMelt ae15458
tests: XIOS now uses metadata/MPI singletons
TomMelt aa02b7b
docs: add doc strings to halo.hpp
TomMelt 6863c7a
bug: make sure halo region is initialized to zero
TomMelt cae32e7
feat: use Halo::haloWidth instead of HALOWIDTH
TomMelt bed5b93
bug: remove erroneous mpi include
TomMelt 8502246
chore: remove stale comments
TomMelt 6191a33
chore: remove stale comments
TomMelt e36db54
chore: remove unnecessary ifdefs
TomMelt 6a4b03a
feat: change constructor of halo to use datatype
TomMelt dc5d320
docs: add description to halo tests
TomMelt f38263b
feat: add isDimLateral to simplify logic in paragridIO
TomMelt 80f159b
chore: remove old TODO
TomMelt 9ebbb9c
chore: remove unused file
TomMelt 769b0e0
chore: remove duplicate include
TomMelt 1830de1
feat: add runtime error if partition file is empty
TomMelt c683062
bugfix: globalLength shouldnt be padded with Halo cells
TomMelt ae334ca
docs: add doxygen info Halo, ModelMPI and ModelMetadata
TomMelt 4c39c88
docs: fix typo in comment ParaGrid_test.cpp
TomMelt 231126c
docs: fix typos raised by Joe in PR review
TomMelt 653d2b7
merge: resolve merge conflicts with develop
TomMelt 069d0b9
fix: fix Model.cpp after merge of develop
TomMelt 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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ else() | |
endif() | ||
|
||
set(BaseSources | ||
"ModelMPI.cpp" | ||
"Logged.cpp" | ||
"Model.cpp" | ||
"Iterator.cpp" | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/*! | ||
* @author Tom Meltzer <tdm39@cam.ac.uk> | ||
*/ | ||
|
||
#ifdef USE_MPI | ||
#include "include/ModelMPI.hpp" | ||
|
||
namespace Nextsim { | ||
|
||
ModelMPI::ModelMPI(MPI_Comm comm) | ||
: m_comm(comm) | ||
{ | ||
MPI_Comm_size(m_comm, &m_size); | ||
MPI_Comm_rank(m_comm, &m_rank); | ||
static bool doneOnce = doOnce(); | ||
isInitialized = true; | ||
} | ||
|
||
MPI_Comm ModelMPI::getComm() const { return m_comm; } | ||
|
||
int ModelMPI::getSize() const { return m_size; } | ||
|
||
int ModelMPI::getRank() const { return m_rank; } | ||
|
||
bool ModelMPI::doOnce() | ||
{ | ||
// Register the finalization function here | ||
Finalizer::registerUnique(finalize); | ||
return true; | ||
} | ||
|
||
void ModelMPI::finalize() { } | ||
|
||
} // namespace Nextsim | ||
|
||
#endif // USE_MPI |
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.
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.