summaryrefslogtreecommitdiff
path: root/science/netcdf4/files/patch-cxx4-ncGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'science/netcdf4/files/patch-cxx4-ncGroup.cpp')
-rw-r--r--science/netcdf4/files/patch-cxx4-ncGroup.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/science/netcdf4/files/patch-cxx4-ncGroup.cpp b/science/netcdf4/files/patch-cxx4-ncGroup.cpp
new file mode 100644
index 000000000000..bf0fc7d1bb05
--- /dev/null
+++ b/science/netcdf4/files/patch-cxx4-ncGroup.cpp
@@ -0,0 +1,29 @@
+--- cxx4/ncGroup.cpp.orig
++++ cxx4/ncGroup.cpp
+@@ -218,7 +218,7 @@
+
+ // search in child groups of the children
+ if(location == ChildrenOfChildrenGrps || location == AllChildrenGrps || location == AllGrps ) {
+- map<string,NcGroup>::iterator it;
++ multimap<string,NcGroup>::iterator it;
+ multimap<string,NcGroup> groups(getGroups(ChildrenGrps));
+ for (it=groups.begin();it!=groups.end();it++) {
+ multimap<string,NcGroup> childGroups(it->second.getGroups(AllChildrenGrps));
+@@ -1251,7 +1251,7 @@
+ // search in current group and parent groups.
+ NcGroup tmpGroup(*this);
+ multimap<string,NcDim>::iterator itD;
+- map<string,NcVar>::iterator itV;
++ multimap<string,NcVar>::iterator itV;
+ while(1) {
+ // get the collection of NcDim objects defined in this group.
+ multimap<string,NcDim> dimTmp(tmpGroup.getDims());
+@@ -1289,7 +1289,7 @@
+ // search in current group and parent groups.
+ multimap<string,NcDim>::iterator itD;
+ NcGroup tmpGroup(*this);
+- map<string,NcVar>::iterator itV;
++ multimap<string,NcVar>::iterator itV;
+ while(1) {
+ // get the collection of NcDim objects defined in this group.
+ multimap<string,NcDim> dimTmp(tmpGroup.getDims());