Ignore:
Timestamp:
Nov 27, 2008, 4:56:05 PM (16 years ago)
Author:
garnier
Message:

make 3.80 added because 3.81 is bad

Location:
trunk/examples/advanced/cosmicray_charging
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/cosmicray_charging/CRCharging.cc

    r807 r893  
    5050#endif
    5151
     52#ifdef G4UI_USE_QT
     53#include "G4UIQt.hh"
     54#include "G4Qt.hh"
     55#include <qapplication.h>
     56#endif
    5257#include "Randomize.hh"
    5358
     
    9196
    9297 
     98  //Initialize G4 kernel
     99  runManager->Initialize();
     100
     101  // get the pointer to the User Interface manager
     102  G4UImanager* UI = G4UImanager::GetUIpointer(); 
     103
     104#ifdef G4VIS_USE
     105  // visualization manager
     106  G4VisManager* visManager = new G4VisExecutive;
     107  visManager->Initialize();
     108#endif
     109
    93110  G4UIsession* session=0;
    94111  if (argc==1) {  // Define UI session for interactive mode.
     
    96113#ifdef G4UI_USE_XM
    97114    session = new G4UIXm(argc,argv);
    98 #else           
     115#elif defined(G4UI_USE_QT)
     116    session = new G4UIQt(&argc,argv);
     117#else
    99118#ifdef G4UI_USE_TCSH
    100119    session = new G4UIterminal(new G4UItcsh);     
     
    105124  }
    106125 
    107 #ifdef G4VIS_USE
    108   // visualization manager
    109   G4VisManager* visManager = new G4VisExecutive;
    110   visManager->Initialize();
    111 #endif
    112  
    113126
    114   //Initialize G4 kernel
    115   runManager->Initialize();
    116  
    117   // get the pointer to the User Interface manager
    118   G4UImanager* UI = G4UImanager::GetUIpointer(); 
     127
    119128 
    120129  // Define UI session for interactive mode.
  • trunk/examples/advanced/cosmicray_charging/init.mac

    r807 r893  
    77#
    88# Create empty scene
    9 #/vis/scene/create
     9/vis/scene/create
    1010#
    1111# Create a scene handler for a specific graphics system
    1212# (Edit the next line(s) to choose another graphic system)
    13 /vis/open OGLSX
     13/vis/open OGLSQT
     14#/vis/open OGLSX
    1415#/vis/open OGLIX
    1516#/vis/open OGLSXm
Note: See TracChangeset for help on using the changeset viewer.