Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 420
    • Issues 420
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2173
Closed
Open
Issue created Jul 29, 2021 by Mark OLESEN@markMaintainer

Make precision adaptors modifiable

Currently the precision adaptors are fixed at construction time. However, if we use refPtr internally, we can make them adjustable after construction.

Eg,

labelList dummyAdj;
labelList dummyXAdj;

ConstPrecisionAdaptor<SCOTCH_Num, label, List> adjncy_param(adjncy);
if (adjcny.empty())
{
    dummyAdj.resize(1, Zero);
    dummyXAdj.resize(1, Zero);

    adjncy_param.set(dummyAdj);
    ...
}
Assignee
Assign to
Time tracking