Commit 3f9f3c6d authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

fixed maps so that they automatically read from hdf5 when needed

parent 5269a83b
...@@ -5302,6 +5302,9 @@ void ...@@ -5302,6 +5302,9 @@ void
XdmfFortran::retrieveRemoteNodeIDs(const int index, const int localNodeID, const int remoteTaskID, int * remoteNodeIDs) XdmfFortran::retrieveRemoteNodeIDs(const int index, const int localNodeID, const int remoteTaskID, int * remoteNodeIDs)
{ {
if ((int)mMaps.size()>index) { if ((int)mMaps.size()>index) {
if (!mMaps[index]->isInitialized()) {
mMaps[index]->read();
}
if (mMaps[index]->getRemoteNodeIds(remoteTaskID).count(localNodeID)>0) { if (mMaps[index]->getRemoteNodeIds(remoteTaskID).count(localNodeID)>0) {
std::set<int> returnSet = mMaps[index]->getRemoteNodeIds(remoteTaskID)[localNodeID]; std::set<int> returnSet = mMaps[index]->getRemoteNodeIds(remoteTaskID)[localNodeID];
std::set<int>::iterator walker; std::set<int>::iterator walker;
...@@ -5337,6 +5340,9 @@ int ...@@ -5337,6 +5340,9 @@ int
XdmfFortran::retrieveNumRemoteNodeIDs(const int index, const int localNodeID, const int remoteTaskID) XdmfFortran::retrieveNumRemoteNodeIDs(const int index, const int localNodeID, const int remoteTaskID)
{ {
if ((int)mMaps.size()<index) { if ((int)mMaps.size()<index) {
if (!mMaps[index]->isInitialized()) {
mMaps[index]->read();
}
if (mMaps[index]->getRemoteNodeIds(remoteTaskID).count(localNodeID)>0) { if (mMaps[index]->getRemoteNodeIds(remoteTaskID).count(localNodeID)>0) {
return mMaps[index]->getRemoteNodeIds(remoteTaskID)[localNodeID].size(); return mMaps[index]->getRemoteNodeIds(remoteTaskID)[localNodeID].size();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment