# This is a BitKeeper generated patch for the following project: # Project Name: pooma/cheetah repository tracking CVS/tarball # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.26 -> 1.27 # r2/src/Field/DiffOps/FieldShiftEngine.h 1.2 -> 1.3 # r2/src/Field/FieldEngine/FieldEngine.h 1.2 -> 1.3 # r2/src/Partition/ContextMapper.h 1.2 -> 1.3 # r2/src/Field/NearestNeighbors.h 1.2 -> 1.3 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/06/27 address@hidden 1.27 # C++ correctness fixes # -------------------------------------------- # diff --minimal -Nru a/r2/src/Field/DiffOps/FieldShiftEngine.h b/r2/src/Field/DiffOps/FieldShiftEngine.h --- a/r2/src/Field/DiffOps/FieldShiftEngine.h Thu Jun 27 13:36:27 2002 +++ b/r2/src/Field/DiffOps/FieldShiftEngine.h Thu Jun 27 13:36:27 2002 @@ -440,7 +440,7 @@ const std::vector > &vs1, const Centering ¢ering) { - typedef std::vector >::size_type size_type; + typedef typename std::vector >::size_type size_type; // Create a model field with the new centering. diff --minimal -Nru a/r2/src/Field/FieldEngine/FieldEngine.h b/r2/src/Field/FieldEngine/FieldEngine.h --- a/r2/src/Field/FieldEngine/FieldEngine.h Thu Jun 27 13:36:27 2002 +++ b/r2/src/Field/FieldEngine/FieldEngine.h Thu Jun 27 13:36:27 2002 @@ -184,8 +184,8 @@ FieldEngine(const This_t &model) : num_materials_m(model.num_materials_m), - stride_m(model.stride_m), centering_m(model.centering_m), + stride_m(model.stride_m), data_m(model.data_m), physicalCellDomain_m(model.physicalCellDomain_m), guards_m(model.guards_m), @@ -246,8 +246,8 @@ FieldEngine(const FieldEngine &model, const Domain_t &d) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), guards_m(0), mesh_m(model.mesh(), inputDomainToVertexDomain(d)) @@ -284,8 +284,8 @@ FieldEngine(const FieldEngine &model, const Domain &d) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), guards_m(0) { addSubFields(); @@ -306,8 +306,8 @@ FieldEngine(const FieldEngine &model, const INode &i) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), guards_m(0), mesh_m(model.mesh(), inputDomainToVertexDomain(i.domain())) // FIXME: should hand INode to mesh? @@ -344,8 +344,8 @@ FieldEngine(const FieldEngine &model, const EngineView &ev) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), physicalCellDomain_m(model.physicalCellDomain()), guards_m(model.guardLayers()), mesh_m(model.mesh()) @@ -368,8 +368,8 @@ FieldEngine(const FieldEngine &model, const FieldEnginePatch &p) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), guards_m(model.guardLayers()), mesh_m(model.mesh()) // FIXME: should take a view of the mesh??? { @@ -386,8 +386,8 @@ FieldEngine(const FieldEngine &model, const ComponentWrapper &cw) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), physicalCellDomain_m(model.physicalCellDomain()), guards_m(model.guardLayers()), mesh_m(model.mesh()) @@ -407,8 +407,8 @@ FieldEngine(const This_t &model, const Pooma::DontCopyRelations &d) : num_materials_m(model.numMaterials()), - stride_m(model.centeringSize()), centering_m(model.centering()), + stride_m(model.centeringSize()), physicalCellDomain_m(model.physicalCellDomain_m), guards_m(model.guardLayers()), mesh_m(model.mesh()) diff --minimal -Nru a/r2/src/Field/NearestNeighbors.h b/r2/src/Field/NearestNeighbors.h --- a/r2/src/Field/NearestNeighbors.h Thu Jun 27 13:36:27 2002 +++ b/r2/src/Field/NearestNeighbors.h Thu Jun 27 13:36:27 2002 @@ -112,7 +112,7 @@ // Determine nearest neighbors for each output value. - for (Answer_t::size_type outputIndex = 0; + for (typename Answer_t::size_type outputIndex = 0; outputIndex < outputCentering.size(); ++outputIndex) answer[outputIndex] = nearestNeighbors(inputPositions, @@ -156,7 +156,7 @@ // Determine nearest neighbors for each field offset. - for (FieldOffsetList_t::size_type folIndex = 0; + for (typename FieldOffsetList_t::size_type folIndex = 0; folIndex < outputCentering.size(); ++folIndex) { PInsist(fieldOffsetList[folIndex].subFieldNumber() < outputCentering.size(), @@ -221,7 +221,7 @@ FieldOffset_vt answerHolder; if (IntraCellOnly) { - for (MinimumSet::size_type minIndex = 0; + for (typename MinimumSet::size_type minIndex = 0; minIndex < minimumSet.size(); ++minIndex) answerHolder.push_back(FieldOffset_t(Loc(0), @@ -229,7 +229,7 @@ } else { FieldOffset_vt partialAnswer; - for (MinimumSet::size_type minIndex = 0; + for (typename MinimumSet::size_type minIndex = 0; minIndex < minimumSet.size(); ++minIndex) { diff --minimal -Nru a/r2/src/Partition/ContextMapper.h b/r2/src/Partition/ContextMapper.h --- a/r2/src/Partition/ContextMapper.h Thu Jun 27 13:36:27 2002 +++ b/r2/src/Partition/ContextMapper.h Thu Jun 27 13:36:27 2002 @@ -78,6 +78,8 @@ ContextMapper(){}; + virtual ~ContextMapper(){}; + virtual void map(const List_t & templist) const = 0;