View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003785 | OpenFOAM | Contribution | public | 2022-01-17 11:47 | 2022-01-17 11:59 |
Reporter | cgoessni | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Platform | Unix | OS | Other | OS Version | (please specify) |
Product Version | dev | ||||
Summary | 0003785: move initialisiation of topoChanger, distributor and mover in fvMesh down | ||||
Description | I want to be able to access the fully initialised fvMesh inside the constructor of the fvMover. With the current design of the fvMesh constructor, that is not possible. However, a simple delay of the inititialisation makes it possible, see attached patch. Would that be acceptable for the OF project? | ||||
Tags | No tags attached. | ||||
|
diff_fvMesh.C.txt (1,205 bytes)
--- src/finiteVolume/fvMesh/fvMesh.C 2022-01-17 12:42:52.162492195 +0100 +++ src/finiteVolume/fvMesh/fvMesh.C.new 2022-01-17 12:42:47.585614802 +0100 @@ -264,24 +264,9 @@ fvSolution(static_cast<const objectRegistry&>(*this)), data(static_cast<const objectRegistry&>(*this)), boundary_(*this, boundaryMesh()), - topoChanger_ - ( - changers - ? fvMeshTopoChanger::New(*this) - : autoPtr<fvMeshTopoChanger>(nullptr) - ), - distributor_ - ( - changers - ? fvMeshDistributor::New(*this) - : autoPtr<fvMeshDistributor>(nullptr) - ), - mover_ - ( - changers - ? fvMeshMover::New(*this) - : autoPtr<fvMeshMover>(nullptr) - ), + topoChanger_(autoPtr<fvMeshTopoChanger>(nullptr)), + distributor_(autoPtr<fvMeshDistributor>(nullptr)), + mover_(autoPtr<fvMeshMover>(nullptr)), lduPtr_(nullptr), curTimeIndex_(time().timeIndex()), VPtr_(nullptr), @@ -336,6 +321,13 @@ *this ); } + + if (changers) + { + topoChanger_ = fvMeshTopoChanger::New(*this); + distributor_ = fvMeshDistributor::New(*this); + mover_ = fvMeshMover::New(*this); + } } |
|
This part of the code is under active development and the details of the design and implementation may change. If you want to get involved in this work so that it suits your purpose better please contact CFD Direct. |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-17 11:47 | cgoessni | New Issue | |
2022-01-17 11:47 | cgoessni | File Added: diff_fvMesh.C.txt | |
2022-01-17 11:59 | henry | Note Added: 0012414 | |
2022-01-17 11:59 | henry | Assigned To | => henry |
2022-01-17 11:59 | henry | Status | new => closed |
2022-01-17 11:59 | henry | Resolution | open => no change required |