#include <G4MPIbatch.hh>
Definition at line 34 of file G4MPIbatch.hh.
G4MPIbatch::G4MPIbatch |
( |
const G4String & |
fname = "" , |
|
|
G4bool |
qbatch = false |
|
) |
| |
Definition at line 64 of file G4MPIbatch.cc.
70 G4cerr <<
"cannot open a macro file(" << fname <<
")."
std::ifstream batch_stream_
G4GLOB_DLL std::ostream G4cerr
G4MPIbatch::~G4MPIbatch |
( |
| ) |
|
Definition at line 85 of file G4MPIbatch.cc.
99 while ((nb= cmdline.find(
'\t',nb)) != G4String::npos) {
100 cmdline.replace(nb, 1,
" ");
107 if( !qcontinued && cmdline.size() == 0 )
continue;
110 if( cmdline(0) ==
'#' )
return cmdline;
113 std::vector<G4String> tokens;
116 for(
G4int i = 0; i <
G4int(tokens.size()); i++ ) {
118 if( tokens[i](0) ==
'#' )
break;
120 if( tokens[i] ==
'\\' || tokens[i] ==
'_' ) {
123 if( i !=
G4int(tokens.size())-1 ) {
125 "unexpected character after line continuation character");
129 cmdtotal += tokens[i];
133 if( qcontinued )
continue;
135 if( cmdtotal.size() != 0 )
break;
G4String strip(G4int strip_Type=trailing, char c=' ')
static void Tokenize(const G4String &str, std::vector< G4String > &tokens)
std::string::size_type str_size
G4String BypassCommand(const G4String &command) const
std::ifstream batch_stream_
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Implements G4VBasicShell.
Definition at line 154 of file G4MPIbatch.cc.
157 g4mpi_-> BcastCommand(
"exit");
166 scommand =
g4mpi_-> BcastCommand(newCommand);
167 if( scommand ==
"exit" ) {
173 if( scommand(0) ==
'#' ) {
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int ExecCommand(const G4String &acommand)
G4GLOB_DLL std::ostream G4cerr
std::ifstream G4MPIbatch::batch_stream_ |
|
protected |
G4bool G4MPIbatch::is_batch_mode_ |
|
protected |
The documentation for this class was generated from the following files:
- source/geant4.10.03.p03/examples/extended/parallel/MPI/source/include/G4MPIbatch.hh
- source/geant4.10.03.p03/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc