Personal tools

page 5

Step 5. Create parameter file


In C:\Program Files\Landis-II\5.1\test folder, create a new text document using Notepad:
     Name it "hello world"
     Enter these lines:
    LandisData "Hello World"
    blank line
      Timestep 3

hello world.txt


In the same folder, modify scenario.txt so that the Hello World extensions's initialization file is "hello world.txt"

scenario.txt

 
In command prompt window, rerun the scenario from the test folder. Note, that greeting is printed at time 0, 3, 6, 9, 12, and 15.
Also note, that LANDIS-II creates its log file in the same folder. Open "Landis-log.txt" file. The log file doesn't have all the console output, for example, the "Hello World!" message isn't in the log, since System.Console.WriteLine() writes just to console. Replacing System.Console class by UI class solves the problem. UI stands for User Interface and its method WriteLine() writes information to user interface (console) and the application log.
Log file below is shown for Timestep = 5.

scenario.txt


< Page 4 | Page 5
Document Actions