MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / read

Function read

src/parallel/reconstruct/reconstruct/processorMeshes.C:32–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
31
32void Foam::processorMeshes::read()
33{
34 // Make sure to clear (and hence unregister) any previously loaded meshes
35 // and fields
36 forAll(databases_, proci)
37 {
38 boundaryProcAddressing_.set(proci, nullptr);
39 cellProcAddressing_.set(proci, nullptr);
40 faceProcAddressing_.set(proci, nullptr);
41 pointProcAddressing_.set(proci, nullptr);
42 meshes_.set(proci, nullptr);
43 }
44
45 forAll(databases_, proci)
46 {
47 meshes_.set
48 (
49 proci,
50 new fvMesh
51 (
52 IOobject
53 (
54 meshName_,
55 databases_[proci].timeName(),
56 databases_[proci]
57 )
58 )
59 );
60
61 pointProcAddressing_.set
62 (
63 proci,
64 new labelIOList
65 (
66 IOobject
67 (
68 "pointProcAddressing",
69 meshes_[proci].facesInstance(),
70 meshes_[proci].meshSubDir,
71 meshes_[proci],
72 IOobject::MUST_READ,
73 IOobject::NO_WRITE
74 )
75 )
76 );
77
78 faceProcAddressing_.set
79 (
80 proci,
81 new labelIOList
82 (
83 IOobject
84 (
85 "faceProcAddressing",
86 meshes_[proci].facesInstance(),
87 meshes_[proci].meshSubDir,
88 meshes_[proci],
89 IOobject::MUST_READ,

Callers 1

processorMeshes.CFile · 0.70

Calls 4

forAllFunction · 0.50
fvMeshClass · 0.50
IOobjectClass · 0.50
setMethod · 0.45

Tested by

no test coverage detected