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

Function setInstance

src/OpenFOAM/meshes/polyMesh/polyMeshIO.C:32–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31
32void Foam::polyMesh::setInstance(const fileName& inst)
33{
34 if (debug)
35 {
36 InfoInFunction << "Resetting file instance to " << inst << endl;
37 }
38
39 points_.writeOpt() = IOobject::AUTO_WRITE;
40 points_.instance() = inst;
41
42 faces_.writeOpt() = IOobject::AUTO_WRITE;
43 faces_.instance() = inst;
44
45 owner_.writeOpt() = IOobject::AUTO_WRITE;
46 owner_.instance() = inst;
47
48 neighbour_.writeOpt() = IOobject::AUTO_WRITE;
49 neighbour_.instance() = inst;
50
51 boundary_.writeOpt() = IOobject::AUTO_WRITE;
52 boundary_.instance() = inst;
53
54 pointZones_.writeOpt() = IOobject::AUTO_WRITE;
55 pointZones_.instance() = inst;
56
57 faceZones_.writeOpt() = IOobject::AUTO_WRITE;
58 faceZones_.instance() = inst;
59
60 cellZones_.writeOpt() = IOobject::AUTO_WRITE;
61 cellZones_.instance() = inst;
62
63 if (tetBasePtIsPtr_.valid())
64 {
65 tetBasePtIsPtr_->writeOpt() = IOobject::AUTO_WRITE;
66 tetBasePtIsPtr_->instance() = inst;
67 }
68}
69
70
71Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()

Callers 3

updateMeshFunction · 0.70
polyMeshIO.CFile · 0.70
resetPrimitivesFunction · 0.70

Calls 2

writeOptMethod · 0.80
validMethod · 0.45

Tested by

no test coverage detected