Skip to content

Commit

Permalink
Missed some merge conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
phlndrwd committed Oct 25, 2023
1 parent 93d6b72 commit 4bfc642
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 66 deletions.
44 changes: 0 additions & 44 deletions src/monio/AtlasReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ void monio::AtlasReader::populateFieldWithDataContainer(atlas::Field& field,
if (mpiCommunicator_.rank() == mpiRankOwner_) {
int dataType = dataContainer.get()->getType();
switch (dataType) {
<<<<<<< HEAD
case consts::eDataTypes::eDouble: {
const std::shared_ptr<DataContainerDouble> dataContainerDouble =
std::static_pointer_cast<DataContainerDouble>(dataContainer);
Expand All @@ -61,27 +60,6 @@ void monio::AtlasReader::populateFieldWithDataContainer(atlas::Field& field,
break;
}
default: {
=======
case consts::eDataTypes::eDouble: {
const std::shared_ptr<DataContainerDouble> dataContainerDouble =
std::static_pointer_cast<DataContainerDouble>(dataContainer);
populateField(field, dataContainerDouble->getData(), lfricToAtlasMap, noFirstLevel);
break;
}
case consts::eDataTypes::eFloat: {
const std::shared_ptr<DataContainerFloat> dataContainerFloat =
std::static_pointer_cast<DataContainerFloat>(dataContainer);
populateField(field, dataContainerFloat->getData(), lfricToAtlasMap, noFirstLevel);
break;
}
case consts::eDataTypes::eInt: {
const std::shared_ptr<DataContainerInt> dataContainerInt =
std::static_pointer_cast<DataContainerInt>(dataContainer);
populateField(field, dataContainerInt->getData(), lfricToAtlasMap, noFirstLevel);
break;
}
default: {
>>>>>>> 94662e8d3e65f47bd55526903c917eb1c763175c
Monio::get().closeFiles();
utils::throwException("AtlasReader::populateFieldWithDataContainer()> "
"Data type not coded for...");
Expand All @@ -96,7 +74,6 @@ void monio::AtlasReader::populateFieldWithDataContainer(atlas::Field& field,
if (mpiCommunicator_.rank() == mpiRankOwner_) {
int dataType = dataContainer.get()->getType();
switch (dataType) {
<<<<<<< HEAD
case consts::eDataTypes::eDouble: {
const std::shared_ptr<DataContainerDouble> dataContainerDouble =
std::static_pointer_cast<DataContainerDouble>(dataContainer);
Expand All @@ -116,27 +93,6 @@ void monio::AtlasReader::populateFieldWithDataContainer(atlas::Field& field,
break;
}
default: {
=======
case consts::eDataTypes::eDouble: {
const std::shared_ptr<DataContainerDouble> dataContainerDouble =
std::static_pointer_cast<DataContainerDouble>(dataContainer);
populateField(field, dataContainerDouble->getData());
break;
}
case consts::eDataTypes::eFloat: {
const std::shared_ptr<DataContainerFloat> dataContainerFloat =
std::static_pointer_cast<DataContainerFloat>(dataContainer);
populateField(field, dataContainerFloat->getData());
break;
}
case consts::eDataTypes::eInt: {
const std::shared_ptr<DataContainerInt> dataContainerInt =
std::static_pointer_cast<DataContainerInt>(dataContainer);
populateField(field, dataContainerInt->getData());
break;
}
default: {
>>>>>>> 94662e8d3e65f47bd55526903c917eb1c763175c
Monio::get().closeFiles();
utils::throwException("AtlasReader::populateFieldWithDataContainer()> "
"Data type not coded for...");
Expand Down
23 changes: 1 addition & 22 deletions src/monio/AtlasWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,7 @@ void monio::AtlasWriter::populateDataContainerWithField(
}
default: {
Monio::get().closeFiles();
<<<<<<< HEAD
utils::throwException("AtlasWriter::populateDataContainerWithField()> "
=======
utils::throwException("AtlasWriter::populateDataContainerWithField()> "
>>>>>>> 94662e8d3e65f47bd55526903c917eb1c763175c
"Data type not coded for...");
}
}
Expand Down Expand Up @@ -259,23 +255,10 @@ void monio::AtlasWriter::populateDataContainerWithField(
populateDataVec(dataContainerDouble->getData(), field, dimensions);
break;
}
<<<<<<< HEAD
default: {
Monio::get().closeFiles();
utils::throwException("AtlasWriter::populateDataContainerWithField()> "
=======
std::shared_ptr<DataContainerDouble> dataContainerDouble =
std::static_pointer_cast<DataContainerDouble>(dataContainer);
dataContainerDouble->clear();
dataContainerDouble->setSize(fieldSize);
populateDataVec(dataContainerDouble->getData(), field, dimensions);
break;
}
default: {
Monio::get().closeFiles();
utils::throwException("AtlasWriter::populateDataContainerWithField()> "
>>>>>>> 94662e8d3e65f47bd55526903c917eb1c763175c
"Data type not coded for...");
"Data type not coded for...");
}
}
}
Expand All @@ -289,11 +272,7 @@ void monio::AtlasWriter::populateDataVec(std::vector<T>& dataVec,
int numLevels = field.levels();
if ((lfricToAtlasMap.size() * numLevels) != dataVec.size()) {
Monio::get().closeFiles();
<<<<<<< HEAD
utils::throwException("AtlasWriter::populateDataVec()> "
=======
utils::throwException("AtlasWriter::populateDataVec()> "
>>>>>>> 94662e8d3e65f47bd55526903c917eb1c763175c
"Data container is not configured for the expected data...");
}
auto fieldView = atlas::array::make_view<T, 2>(field);
Expand Down

0 comments on commit 4bfc642

Please sign in to comment.