Forward compatibility: flex
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToFieldview9 / moveMesh.H
blob68d0f6f2ccd5850c40bb50b7cce8e4af90cc1d43
2 //
3 // Check if new points (so moving mesh)
4 //
6     IOobject pointsHeader
7     (
8         "points",
9         runTime.timeName(),
10         polyMesh::defaultRegion,
11         runTime
12     );
13     if (pointsHeader.headerOk())
14     {
15         // points exists for time step, let's read them
16         Info<< "    Points file detected - updating points" << endl;
18         // Reading new points
19         pointIOField newPoints
20         (
21             IOobject
22             (
23                 "points",
24                 runTime.timeName(),
25                 polyMesh::defaultRegion,
26                 mesh,
27                 IOobject::MUST_READ,
28                 IOobject::NO_WRITE
29             )
30         );
32         mesh.polyMesh::movePoints(newPoints);
33     }