previous up next SYLLABUS  Previous: 8.1 Source code &  Up: 8 THE JBONE USER  Next: 8.3 Program structure &

8.2 Program execution

Slide : [ run - param - tags || JBONE tree - names || JAVA tutorial ]

The JBONE code can be executed either as an independent JAVA program or as an applet, the latter adding the possibility of running it in your web browser.

* There are 3 manners to execute.
On a UNIX platform, type
java jbone                      # Run program interpreter
appletviewer run.php           # Run applet with default
                                #   arguments in run.php
The third manner, of course, is to open the file run.php directly with your web browser using the address file://absolute_path/run.php. You need to recompile with the command make all after every modification. Because the web browser tend to use buffered data, you must PRESS SHIFT AND SELECT View->RELOAD to force it to load the newly compiled code.

* Preset with HTML tags.
Running applets has the advantage of choosing the run time arguments in the calling HTML file. Take for example run.html:
    <! -- @(#)run.php
    Andre JAUN ( and Johan HEDIN (
    (C) 1999-2001, all rights reserved. This shareware can be obtained 
    without fee by e-mail from the authors. Permission to use, copy, and 
    modify the source and its documentation for your own personal use is 
    granted provided that this copyright notice appears in all copies.
    <h1>JBONE scratch-pad</h1>
    Select the switches and modify the parameters to study and compare 
    different numerical schemes<br><p>
     <caption align=bottom><strong>
      <a href=../SYL/help_run.php
         onMouseover="window.status='JBONE  #  parameters'; return true"
        >JBONE applet:</a></strong>&nbsp; press <b>Start/Stop</b> 
      to run the simulation.
     <applet codebase=JBO/ code=jbone 
             align=center width=780 height=400>
       <param name=pde                 value="Advection">
       <param name=method              value="Lagrangian">
       <param name=ic                  value="Gaussian">
       <param name=Velocity            value=1.>
The default parameters are here modified to calculate the advection of a Gaussian pulse using the CIP / Lagrangian scheme from sect.6.

back up next contents bibliography Copyright © Lifelong-learners at 04:10:46, March 22nd, 2019