File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
basicProgrammingTutorials/basicIO/app Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments