Skip to content

Commit 806bd60

Browse files
committed
Fix a version-dependency problem
1 parent ec89956 commit 806bd60

File tree

1 file changed

+7
-6
lines changed
  • basicProgrammingTutorials/basicIO/app

1 file changed

+7
-6
lines changed

basicProgrammingTutorials/basicIO/app/basicIO.C

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,28 @@ int main(int argc, char *argv[])
3434
#include "createTime.H"
3535
#include "createMesh.H"
3636

37+
const word dictName("customProperties");
3738
// ---
3839
// Get access to a custom dictionary
39-
dictionary customDict;
40-
const word dictName("customProperties");
41-
40+
IOdictionary customDict
41+
(
4242
// Create and input-output object - this holds the path to the dict and its name
43-
IOobject dictIO
43+
IOobject
4444
(
4545
dictName, // name of the file
4646
mesh.time().constant(), // path to where the file is
4747
mesh, // reference to the mesh needed by the constructor
4848
IOobject::MUST_READ // indicate that reading this dictionary is compulsory
49+
)
4950
);
5051

5152
// Check the if the dictionary is present and follows the OF format
52-
if (!dictIO.headerOk())
53+
if (!customDict.headerOk())
5354
FatalErrorIn(args.executable()) << "Cannot open specified refinement dictionary "
5455
<< dictName << exit(FatalError);
5556

5657
// Initialise the dictionary object
57-
customDict = IOdictionary(dictIO);
58+
// customDict = IOdictionary(dictIO);
5859

5960
// ---
6061
// Read various pieces of information from the main part of the dictionary

0 commit comments

Comments
 (0)