View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001669 | OpenFOAM | Bug | public | 2015-04-23 13:29 | 2015-04-27 11:13 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | platform independent | OS | Other | OS Version | (please specify) |
Summary | 0001669: AMIInterpolation/AMIMethod/AMIMethod/AMIMethod.h: wrong patch type for tgtPatch_ | ||||
Description | in AMIInterpolation/AMIMethod/AMIMethod/AMIMethod.h: member tgtPatch_ is declared as of type SourcePatch (template parameter). Works o.k. as long as both source and target patch are of same type. I stumbled across this writing own code involving AMI interpolation between patches of different types, and ran into trouble. Declaring tgtPatch_ as of type TargetPatch resolved the problem. It would require posting too much of own code to reproduce this - not that I dont want to share, but nobody wants to go into that :) Anyways, I believe its obvious. Here the corresponding extract from AMIMethod.H: ============================================================== template<class SourcePatch, class TargetPatch> class AMIMethod { private: // Private Member Functions //- Disallow default bitwise copy construct AMIMethod(const AMIMethod&); //- Disallow default bitwise assignment void operator=(const AMIMethod&); protected: //- local typedef to octree tree-type typedef treeDataPrimitivePatch<TargetPatch> treeType; // Protected data //- Reference to source patch const SourcePatch& srcPatch_; //- Reference to target patch const SourcePatch& tgtPatch_; | ||||
Tags | No tags attached. | ||||